What is it that tells Apache that "application/x-httpd-php" means "php5_module"?
The code in the module.
Well you just have a smart answer for everything, don't you.
I have randomly decided it's the fault of the stupid cobalt .pkg so I'm gonna just SSH in and build PHP from the source, like a real man. The pkg probably installed the i686 binaries because I'm running the Raq550 OS. The Raq4 hardware is only i386 (K6-2 450mhz!). I was warned this might be an issue. Good thing I pay such close attention to warnings. Also, good thing I've decided to use a weird server appliance as my second Linux experience, rather than a nice vanilla white box PC with a common distro. At least it's a step up from my previous Linux server, a Cobalt Qube2 with a 250mhz MIPS. Talk about SLOW.
Here is my script:
#!/bin/sh php=`ls -1b | grep php | grep -v tar | sort -r | head -n 1` apache=`ls -1b | grep httpd | grep -v tar | sort -r | head -n 1` #apachedir="/usr/local/apache-test" #phpdir="/usr/local/php-test" apachedir="/usr/local/apache" phpdir="/usr/local" noapache=0 nophp=0 error=0 if [ $noapache -eq 0 ] ; then echo $apache echo cd $apache rm -r docs/docroot/* touch docs/docroot/$apache ./configure --prefix=$apachedir \ --enable-rewrite \ --enable-ext-filter \ --with-suexec-uidmin=80 \ --with-suexec-gidmin=80 \ --enable-ssl \ --with-ssl=/usr/local/ssl \ || error=1 make clean make || error=1 echo echo ok read echo make install || error=1 cd .. echo echo ok read echo fi if [ $error -eq 0 ]; then if [ $nophp -eq 0 ] ; then echo $php echo cd $php ./configure --prefix=$phpdir \ --with-apxs2=$apachedir/bin/apxs \ --with-mysql=/usr/local/mysql \ --with-openssl=/usr/local/ssl \ --with-pspell \ --with-zlib \ --with-gd \ --with-jpeg-dir=/usr/lib \ --with-png-dir=/usr/lib \ --with-imap=/usr/src/imap-2004d \ --with-imap-ssl=/usr/src/imap-2004d \ --enable-sockets \ --enable-track-vars \ --enable-trans-sid \ --enable-inline-optimization || error=1 make clean make || error=1 echo make install || error=1 echo echo Installation Complete echo fi fi
php=`ls -1b | grep php | grep -v tar | sort -r | head -n 1`
apache=`ls -1b | grep httpd | grep -v tar | sort -r | head -n 1`
#apachedir="/usr/local/apache-test"
#phpdir="/usr/local/php-test"
apachedir="/usr/local/apache"
phpdir="/usr/local"
noapache=0
nophp=0
error=0
if [ $noapache -eq 0 ] ; then
echo $apache
echo
cd $apache
rm -r docs/docroot/*
touch docs/docroot/$apache
./configure --prefix=$apachedir \
--enable-rewrite \
--enable-ext-filter \
--with-suexec-uidmin=80 \
--with-suexec-gidmin=80 \
--enable-ssl \
--with-ssl=/usr/local/ssl \
|| error=1
make clean
make || error=1
echo ok
read
make install || error=1
cd ..
fi
if [ $error -eq 0 ]; then
if [ $nophp -eq 0 ] ; then
echo $php
cd $php
./configure --prefix=$phpdir \
--with-apxs2=$apachedir/bin/apxs \
--with-mysql=/usr/local/mysql \
--with-openssl=/usr/local/ssl \
--with-pspell \
--with-zlib \
--with-gd \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-imap=/usr/src/imap-2004d \
--with-imap-ssl=/usr/src/imap-2004d \
--enable-sockets \
--enable-track-vars \
--enable-trans-sid \
--enable-inline-optimization || error=1
echo Installation Complete