Archive for October, 2010

compile php-cgi

If you’re compiling PHP and you can’t find the php-cgi binary, remove ‐‐with-aspx2 from the config params and you should be good to go.

php ubuntu error: xml2-config not found.

You need to install libxml2-dev

sudo apt-get install libxml2-dev

_trackEvent not working

label can not be an integer or Google’s _trackEvent function fails silently.

pageTracker._trackEvent('VLP', 'click-out', 12345);

Fixed as

pageTracker._trackEvent('VLP', 'click-out', '12345');

Freelance Camp Santa Cruz 2010

I had a great time at Freelance Camp Santa Cruz this year.
Thanks guys! Looking forward to next year =)

Goodbye, Slicehost.

After 2 years with Slicehost, I’ve finally just finished migrating all my stuff to my own box and deleted my last slice.

Thank you SliceHost for your awesome articles and awesome support. You helped me get off of shared hosting and learn what it takes to manage a real server. I’ve outgrown your services, but I highly recommend you to any developers out their who want to take their game to the next level.

You stay classy, SliceHost.

Sincerely,
- Kevin M. Burns Jr

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

Wordpress is throwing an error:

Your PHP installation appears to be missing the MySQL extension 
which is required by WordPress.

PHP 5.3.2 is compiled from source on CentOS 5.4 configured ‐‐with-mysql ‐‐with-mysql-pdo…

#> php -i | grep -i 'mysql support'
MySQL Support => enabled

mysqld is running…

#> /etc/init.d/mysqld status
mysqld (pid 21104) is running...

I’ve been googling around for 2 hours now.

What the hell is going on?

UPDATE

Took me 4 hours, but I finally got it working.

The problem is I wasn’t using ‐‐with-aspx2

  1. Deleted all PHP bin, lib, includes, ini, everything
  2. Removed Apache libphp5.so
  3. Compiled PHP 5.3.3 from source
    • ‐‐with-aspx2 (this is required to generate a new .so apache module)
    • ‐‐prefix=/usr/local/php (this installs everything into 1 directory making it easier to uninstall later)
  4. Copied in a fresh php.ini from source to /usr/local/php/lib
  5. Set up symlinks at /usr/sbin/php for php cli
  6. Restarted Apache

BLING BLANG BLAOW