[Gllug] Apache 2 + PHP

Jonathan Harker jon at jonathanharker.co.uk
Tue Mar 4 00:32:42 UTC 2003


On Sunday March 2 2003 07:07, Xander D Harkness wrote:
> I am running apache2 for webmail and things.
>
> The gotcha I got stuck on was that not only did I have to change the
> php.ini file but there is also a php config file in /etc/httpd/conf/ that
> had the size and post settings.
>
> Aside from that it has been perfectly well behaved even under heavy loads.

Great! Maybe you can help me out...
I've had a go at the DIY compile thing rather than relying on someone else's 
rpms. Here's roughly what I did:

tar -zxf httpd-2.0.44.tar.gz && cd httpd-2.0.44
./configure --prefix=/opt/apache2 --enable-so --enable-module=all \
    --enable-shared=max
make
make install
ln -s /opt/apache2/bin/apachectl /usr/sbin/apache2ctl

This went swimmingly. and apachectl start works. Then I did PHP:

tar -jvf php-4.3.1.tar.bz2 && cd php-4.3.1
./configure --prefix=/opt/php --with-apxs2=/opt/apache2/bin/apxs \
    --with-mysql=/usr --with-pgsql=/usr
make
make install

This also went fine.
So I dutifully fiddled thus, as per the www.php.net FAQ:

cp php.ini-dist /opt/php/lib/php.ini
$EDITOR /opt/apache2/conf/httpd.conf
    LoadModule php4_module modules/libphp4.so
    AddType application/x-httpd-php .php

Now, apachectl start says:
Syntax Error on line 234 of /opt/apache2/conf/httpd.conf:
Cannot load /opt/apache2/modules/libphp4.so into server: 
/opt/apache2/modules/libphp4.so: undefined symbol: compress

Line 234 is the LoadModule line above.

Luv Jon

-- 
Jonathan Harker
www.jonathanharker.co.uk

Someone is speaking well of you. How unusual!


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list