I’m Back

First let me say that I hope everyone had a nice Memorial Day. Even if you ignored the true meaning of the day, and you relaxed like I did.
OK, secondly, you might have noticed my site has not been working for the past 14 hours or so. Or if it did, it was not this familiar blog but rather a static page that I whipped up in HTML that said I’d be back soon. I tried updated my uNSLUg installation, using their ipkg system. I simply ran:

ipkg update; ipkg upgrade

and the whole thing dies on me. Apache wouldn’t run. Once I compiled my own version of Apache, I was able to serve straight HTML, but not php pages, since I think my PHP install got hosed also. So I recompiled my own PHP to work with Apache. I forgot to mention that I did check out MySQL from the command line and all was well, I could run select statements and so forth.
So what you’re getting now is a fresh Apache and PHP install, with the previously installed MySQL, from an ipkg.
The procedure (hopefully not for future reference, but to help someone else out) :

  1. Unpack all bzipped tarballs.
  2. cd into the apache directory (httpd-2.0.54 in my case)
  3. ./configure –prefix=/opt/httpd-2.0.54-homemade –enable-mods-shared=most; make; make install
  4. Edit httpd.conf to Listen on 80, and set ServerName to my domain
  5. cd into the php directory (php-5.0.4 in my case)
  6. ./configure –prefix=/opt/php-5.0.4-homemade –with-apxs2=/opt/httpd-2.0.54-homemade/bin/apxs –with-mysql –disable-libxml –with-mysql=/opt –with-zlib-dir=/opt; make; make install
  7. cp php.ini-dist /opt/php-5.0.4-homemade/lib/php.ini and add these two lines to httpd.conf:
    LoadModule php5_module /usr/local/apache2/modules/libphp5.so
    AddType application/x-httpd-php .php .phtml
  8. /opt/httpd-2.0.54-homemade/bin/apachectl restart

That’s “it??. Yeah, it took a while but was worth it. Enjoy…

Next post:

Previous post: