Tech Journal Back to Tech Journal

Upgrading Apache and PHP isn't working! (For Apache 2.0.x and PHP5)

There's a page that details how to compile & install apache 2.0.x with SSL, PHP5: I pulled some info from there.

Compile Apache 2
./configure --enable-suexec --with-suexec-docroot=/usr/local --enable-cgi --enable-rewrite --enable-so --enable-logio --prefix=/usr/local/apache --enable-module=most --enable-shared=max --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc/httpd

[the last few options place httpd in the correct place like RedHat does. But if you don't give them , it defaults to putting evething into /usr/local/ - and subdirs from there]

Compile PHP5
./configure --with-apxs2=/usr/local/bin/apxs --with-mysql=/var/lib/mysql --enable-track-vars --enable-sockets --with-config-file-path=/etc --enable-ftp --with-zlib --enable-force-cgi-redirect --enable-exif --with-gd --enable-memory-limit --disable-debug --disable-rpath --disable-static --with-pic --with-layout=GNU --enable-calendar --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-trans-sid --enable-bcmath --with-bz2 --enable-ctype --with-db4 --with-iconv --enable-filepro --with-gettext --enable-mbstring --enable-shmop --enable-wddx --disable-xml --with-xmlrpc --enable-yp --with-zlib --without-pgsql --enable-dbx --enable-experimental-zts --without-mm --enable-gd-native-ttf --enable-soap --enable-dbase --with-pear

Make sure that php.ini is in the expected location (with the above code, it expects to find it in /etc/php.ini). Try running php from the command-line, to see error messages.

Last updated on 2006-02-23 14:00:00 -0700, by Shalom Craimer

Back to Tech Journal