[Gllug] installing PHP with Apache

will will at hellacool.co.uk
Tue Apr 16 16:17:36 UTC 2002


Richard Pounder wrote:
> On Mon, 15 Apr 2002, will wrote:
>>I am trying to install PHP/MySQL and apache on my home machine and have
>>run into a problem.  I have done this a couple of times before without
>>too much problem but I get an error this time.  The latest versions of
>>Apache and MySQL have gone on there no problem and are working, but not
>>PHP.  First I unpack it and do a configure:
>>
>>./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql
>>
>>which results in success but with the following warning:
>>
>>+--------------------------------------------------------------------+
>>| WARNING: Your /usr/local/apache/bin/apxs script is most likely broken.
>>|                                                                    |
>>| Please go read http://www.php.net/manual/en/faq.build.php#AEN61338 |
>>| and make the changes described there and try again.                |
>>+--------------------------------------------------------------------+
>>
>>I have checked the page referenced but the apxs errors/changes do not
>>seem to apply, the sections of the /usr/local/apache/bin/apxs file are
>>either correct or do not exist.  So I ran a make, but it gets to this bit:
>>
>>Making all in sapi
>>make[1]: Entering directory `/home/will/packages/php/php-4.1.2/sapi'
>>Making all in apache
>>make[2]: Entering directory `/home/will/packages/php/php-4.1.2/sapi/apache'
>>make[3]: Entering directory `/home/will/packages/php/php-4.1.2/sapi/apache'
>>/bin/sh /home/will/packages/php/php-4.1.2/libtool --silent
>>--mode=compile gcc  -I. -I/home/will/packages/php/php-4.1.2/sapi/apache
>>-I/home/will/packages/php/php-4.1.2/main
>>-I/home/will/packages/php/php-4.1.2 -I/usr/local/apache/include
>>-I/home/will/packages/php/php-4.1.2/Zend
>>-I/home/will/packages/php/php-4.1.2/ext/mysql/libmysql
>>-I/home/will/packages/php/php-4.1.2/ext/xml/expat
>>-I/home/will/packages/php/php-4.1.2/TSRM -g -O2 -prefer-pic  -c
>>sapi_apache.c
>>sapi_apache.c: In function `apache_php_module_main':
>>sapi_apache.c:81: `NOT_FOUND' undeclared (first use in this function)
>>sapi_apache.c:81: (Each undeclared identifier is reported only once
>>sapi_apache.c:81: for each function it appears in.)
>>make[3]: *** [sapi_apache.lo] Error 1
>>make[3]: Leaving directory `/home/will/packages/php/php-4.1.2/sapi/apache'
>>make[2]: *** [all-recursive] Error 1
>>make[2]: Leaving directory `/home/will/packages/php/php-4.1.2/sapi/apache'
>>make[1]: *** [all-recursive] Error 1
>>make[1]: Leaving directory `/home/will/packages/php/php-4.1.2/sapi'
>>make: *** [all-recursive] Error 1
>>
>>and dies.  Does anyone have any ideas what I am doing wrong here?
>>(HINT: 'Installing PHP' is not an answer :-)

 >Did you compile dynamic module support into apache.... apxs handles 
 >this if you didn't then you need to compile php staticaly into apache 
 >or recompile apache with dso support.

I configured apache with the command:

./configure --enable-so --prefix-/usr/local/apache

Will.



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




More information about the GLLUG mailing list