Save info   Get password
Home Submit your blog Edit Account Rules RSS-Archive Contact


Installing suPHP on cPanel
2007-12-05 21:07:41
I wrote this tutorial a while back and figured it would be good to post because suPHP is growing more popular as an alternative to phpSuExec. The instructions assume that you are on a Linux cPanel server and are familiar with how to install PHP, but do not want to use EasyApache’s suPHP installer in WHM (you stubborn bitches) Note also that these instructions use suPHP 0.6.1 with a cPanel patch that makes it equivalent to 0.6.2. I personally have had issues with the actual 0.6.2 version installing, so I stuck with the patch. Next, download suPHP and the apply the patch: wget http://v-nessa.net/imh_files/suphp-0.6.1.tar.gz tar -xvzf suphp-0.6.1.tar.gz cd suphp-0.6.1 wget http://v-nessa.net/imh_files/suphp-0.6.1-cpanel.patch patch -p1 < suphp-0.6.1-cpanel.patch Then compile the binary: ./configure –prefix=/usr –sysconfdir=/etc –with-apxs=/usr/local/apache/bin/apxs –with-apache-user=nobody make && make install Now locate your PHP binaries for in


SHOUTcast is Soooo Easy to Install — Are You Kidding Me?
2007-12-04 21:38:00
It surprises me how often people get nervous over installing things just because it’s new to them. The other day I had a guy harass our technical support for 20 minutes on the phone because he was wanted to install SHOUTcast. Honestly, before then I had never installed SC simply because I don’t use it, but all he had to do was RTFM (which is what I did)…but we all know that customers don’t like to read documentation and would rather you do everything for them.  Don’t get me wrong, I mean, part of my job is consulting with people on things like this and I enjoy doing it, but there’s a line to draw when the answer is right in front of you and you just don’t want to look. So, here it is…a dumbed down and simplified tutorial for SHOUTcast. Yes, you can do this without the help of your hosting company, only you might need to the open your SC port in the firewall (don’t expect them to do this if you’re on a shared server) Crea
Read more: mdash

Upgrade to Subversion 1.4.x on CentOS
2007-12-04 14:57:56
I don’t know if it’s just me, but it seems that CentOS is kinda slow with their software updates. It’s not too big of a deal since CentOS is based off of RHEL so you can usually use RHEL 4-5 RPM’s, but those usually bombard me with failed dependencies. I find that the generic x86 RPMs do the trick, so for any of you trying to update your Subversion installations to a more recent version, here’s what you have to do on CentOS: Optionally remove the old version by running yum remove subversion (assuming you installed with Yum) wget http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/rhel-4/i386/subversion-1.4.5-1.i386.rpm wget http://www.eu.apache.org/dist/apr/binaries/rpm/i386/apr-1.2.8-1.i386.rpm wget http://www.eu.apache.org/dist/apr/binaries/rpm/i386/apr-util-1.2.8-1.i386.rpm rpm -i subversion-1.4.5-1.i386.rpm rpm -i apr-1.2.8-1.i386.rpm rpm -i apr-util-1.2.8-1.i386.rpm


How to Upgrade PHP
2007-12-04 11:21:21
Whether you compiled manually or with EasyApache, running a PHP upgrade from a previous version is super easy but also one of the most common questions I get. There are 3 likely assumptions about your current environment (specific to Linux servers, sorry Windows users): 1. You are running a cPanel server and have PHP compiled by EasyApache 2. You compiled PHP manually from source 3. You used Yum, Aptitude, or another package manager EasyApache Perhaps the easiest (but least efficient time-wise), simply log into WebHost Manager > Apache Update and select “Previously Saved Config” option and “Start Customizing Based on Profile“. The next screen should take you to the Apache version, which you can keep the same or upgrade as well. Then you’ll be taken to select either PHP 4 or PHP 5, proceeded by the actual version you wish to run and then the options for both Apache and PHP on the next two steps (Advanced Configuration). You usually do not need to


Capone Goes to See Santa
2007-12-03 18:58:38
A lot of my friends have kids, so this year when they all wanted to go to Lynnhaven Mall to get their kids some pictures with Santa I felt a little left out. I really have no desire to ever have kids, nevertheless to take them to see some creepy old man who likes to have little kids sitting on his lap all the time. But since we were going anyways and I decided to take Capone for his first Christmas with Santa. I put on his little Santa slippers and took him to the mall where all the little kids were in line to take pictures and stuff, only I was standing there will a little pit bull who was growling and scaring all the kids away. Then I found out that Mr. Santa is allergic to dogs, so he refused to hold Capone on his lap and insisted that I duck into the picture to make sure that he didn’t bite his head off. They also made me sign a waiver so that I would be responsible if he attacked anyone. Apparently Capone doesn’t like Santa either, because we couldn’t even g


How to Rearrange Your Package
2007-12-20 00:35:22
For some odd reason, Ubuntu and other Debian-based distros don’t like the standard x86 RPMs that most vendors package their software in. If you want to install a third-party RPM, you have to use alien to repackage the RPM into a .deb file before you can install it: sudo apt-get install alien alien -k your-rpm-file.rpm This will convert the RPM to a .deb file. From here you can use dpkg to install it: sudo dpkg -i your-rpm-file.deb


Whitespace is Evil
2007-12-19 00:23:40
I have this recurring nightmare of PHP apps that don’t trim whitespace when entering info. As a habitual copy and paster, it would be nice if some programmers could tend to my laziness and reluctance to type. Yes, Tony, I’m talking about you. Ever hear of the trim() function? Yea, it’s the Brazilian wax of PHP you inconsiderate bastard. $text = "some text with extra spaces "; $trimmed = trim($text); echo $trimmed;


More of Using PHP for Server Info
2007-12-16 23:53:32
I’ll eventually get the whole thing up here, but I’ve been working on a simple server info script to help me and the other members of the system admin team keep up with the gazillion servers we have and all their different configurations. One of the reasons it’s taking so long (aside from my recent alcohol binges) is that it has to be portable to every server without the need for specific modifications, regardless of their setup. This eventually calls for using a simple if statement and empty() function to decide what info to output. Really, it’s so easy that I don’t even know why I’m posting it, but it kinda supplements this and this. I’ll take the Ruby example I used earlier to find out what version of Ruby is installed: $rubyver = exec("ruby -v |awk {'print $2'}"); ?> Most of our servers don’t have Ruby installed, so I instead of getting an ugly ass error or nothing at all, I’d rather the script gracefully output its ab
Read more: Using PHP

Working with Permissions in PHP
2007-12-20 20:01:08
PHP uses the same command as *nix systems when dealing with changing permissions for files: chown - changes ownership, but can only be done by a root user chgrp - changes group ownership, can be done by a user who is a member of the new group chmod - changes permissions, can be done by the user (and sometimes the group) that owns the file These commands are particularly useful in situations where PHP runs as a different user on the system, which is common when PHP is compiled as an Apache user. A lot of our customers get frustrated at the fact that once they use PHP to create a file, their user can’t touch it. That’s why whenever you have PHP create a file that needs to be neutral, its permissions have to be set accordingly. The syntax of those commands are simple: chown($file, $user) chgrp($file, $group) chmod($file, $permissions) The simplest example of using these commands is a follows: <?php $file = “myfile.txt”; $handler = fopen($file, ‘w’)


Capone is Blood-Hungry
2008-03-08 09:26:21
My house is right in front of the Tallwood woodlands so it’s not uncommon for me to wake up to find possums, squirrels, and raccoons in my garage or upstairs where they come in through the attic. There’s also the rare occasion of snakes on the patio and in the trash cans. [...]
Read more: Capone , Blood , Hungry

Rejected Tax Return?
2008-02-10 23:49:47
For the last four years by dad has been filing my taxes for me so I was all proud to be doing them myself this year…that is, until I got a letter from the IRS stating that I’d miscalculated my Federal tax return and I have another chance to get it right before they order [...]
Read more: Return , Rejected

The Return of Stylish Web Design
2008-02-01 21:39:24
Not everyone has the talent or patience required to design a good site. I’ve been referring people to template services for years, but I recently came across this site that caught my eye. What sucks about most design services is that their sites are not caught up enough with the modern Web 2.0 [...]
Read more: Return , Stylish

How to Add Services to Chkservd
2008-01-28 19:45:00
Chkservd is the service in cPanel that checks to make sure that services are running, then restarts them if necessary. It’s also responsible for the ‘Service Manager’ section in cPanel, which is an interface where added services can be easily checked on and off. To add a new service, create a line in /etc/chkserv.d/chkservd.conf in the [...]
Read more: Services

Fedora Chokes on Firefox
2008-01-17 11:17:39
We use Fedora in my Linux classes at school, so I was equally pissed off of when I found out that the stock firefox installation doesn’t support ssl…in other words you can’t get to secure pages. Since the entire schooli ntranet is on a secure connection it pretty much sucks when you can’t access [...]
Read more: Firefox

Creating and Installing an SPF Record
2008-01-09 12:36:35
Have you ever received a bounce for spam that was sent by you…only it wasn’t sent by you? Email spoofing is one of the easiest concepts to understand for us, but the hardest to explain to end users who confuse spoofing with email hacking and hijacking. The way I explain it to our [...]
Read more: Creating , Record

The [pretty much] Complete Guide to Installing ffMPEG and Audio Binaries
2008-01-07 12:39:40
I know you’ve provably seen a lot of guides on how to install ffMPEG, but I’ve noticed that most of them are incomplete and don’t cover the possible issues that can arise during installation. I’ve installed ffMPEG on dozens of servers and have devised a standardized procedure on what I feel is the best [...]
Read more: Guide , Audio , Complete Guide

Christmas Party Pics
2008-01-01 19:03:03
I know, I know, I took forever posting these after filtering out the ones that were NQSFW.  I hosted a Christmas party at my house last week where my sister was the designated photographer, so you can see the pictures she took here. p.s., don’t ask me any specifics…I wish I could remember the context of [...]
Read more: Party , Christmas Party

Moving Towards PHP 6
2007-12-27 00:13:21
Back in the day I posted my horror of upgrading my server to PHP 6.  You might as well face it — PHP 5 is going to be dead in a few years just like PHP 4 is now, so it’s a good idea for all you programmers and server admins to start making your [...]
Read more: Moving

Someone’s Got the Internet AIDS…
2008-03-23 08:05:39
I knew something was fishy when I got an IM from my ex whom I haven’t spoken to in over a year on bad terms: hey How are you???? this is ur pic rite?! Worse enough I can’t believe I clicked on that shit.. I thought maybe it was one of those pictures from [...]
Read more: Internet , AIDS

I got Blogged-eded.
2008-03-27 13:47:41
…And for the first time I had my clothes on during. The good people over at blogged.com ranked me at an 8.2 out of 10. I never even heard of blogged.com until I got an email from one of their editors yesterday stating: “We evaluated your blog based on the following criteria: Frequency of Updates, [...]


Alternative PHP Caching FTW
2008-03-27 07:24:47
We get a TON of requests for the PHP APC pecl module because after having adopted suPHP into our configuration, eAccelerator is worthless. It’s quick to install, and especially if you’re running suPHP or phpsuexec, each user can maintain their own settings within their local php.ini without me having to do anything — basically [...]
Read more: Alternative

An Investigation of Sexual Chocolate
2008-04-14 05:39:11
My phrase last week was “sexual chocolate” — I have no idea where I heard it from or why I had such an urge to repeat it and linger on the laughter and dirty looks. I though it was something like chocolate that you use during, um, relations, but it appears that I was sooooo [...]
Read more: Sexual , Chocolate

Moving Towards PCI Compliance with cPanel
2008-04-14 04:31:50
Those of you who are server admins or use certain merchant services know what I’m taking about — it’s that dreaded security scan that picks apart your server to tell you everything that it thinks is wrong, assuming you have the knowledge or access to fix it: yes, the PCI scan. PCI compliancy [...]
Read more: Moving , Compliance , cPanel

The Super-Duper Way to Run Backups
2008-04-15 01:49:12
I often worry about my PC at work — it’s about 3 or 4 years old now and I’ve already crashed it twice by running Ubuntu updates and not letting them finish. Luckily I have my home drive mounted as a separate partition so reinstalling the OS isn’t a huge inconvenience aside from having [...]
Read more: Super , Backups

The Big 21
2008-04-21 10:42:32
Well, my 21st birthday is finally here…yay! Of course, all that means to me is that I can now do everything I’ve already been doing for the last four years, only now I’d be doing it legally. So happy birthday to me, I’m getting plastered tonight. FYI, no pics yet — the party is [...]


Sexifying WHM with XML API
2008-05-07 04:33:30
I don’t know about you other cPanel system admins out there, but I find WHM to be very useful for the more advanced and time-consuming tasks, such as installing SSL certificates. However, the easy stuff like changing an account’s package and resetting passwords is a royal pain in the ass as far as convenience [...]
Read more: XML

Nomao is Probably the Sexiest Thing I’ve Seen All Week
2008-05-06 04:58:47
I came across nomao.com today and I must say that it’s probably the best non-social networking site I’ve see so far. It’s basically a website where you sign up and add your favorite hot spots and important locations so your friends can look at your profile and get directions to wherever. It’s kind [...]
Read more: Probably , Thing

WHM APF Plugin
2008-06-05 23:48:09
I’m happy to announce my first ever perl-written plugin for WebHost Manager, which was developed by myself and one of my fellow sysadmins at InMotion Hosting. The first release is available here: Download v.1.05 To explain a little bit of background here, many hosting companies that give some sort of **** about security will leave SSH [...]
Read more: Plugin

Dual Monitor Setup in Ubuntu 7.10, ATI Radeon
2008-06-12 23:50:50
The company just bought our department brand hooked up PC’s that include ATI Radeon dual output graphics cards with massive monitors.  This is probably the only time I’d willingly admit that Windows came out ahead, as I spent a good 2 days trying to get my dual monitors to work with Ubuntu .  I finally got [...]
Read more: Monitor , ATI Radeon

DreamTemplate.com FTW
2008-06-22 01:24:30
One of my blog sponsors gave me the opportunity to write an unbiased review about DreamTemplate.com. You’ll have to forgive me for my lack of ‘reviewing’ experience, because I don’t do these very often. Overview: DreamTemplate.com is a service that offers thousands of “exclusive premium web content solutions” for webmasters that are created by professional arti


Page 4 of 5 « < 2 3 4 5 > »
eXTReMe Tracker