RE: [PHP] Re: mod_php4.c errors on Apache Complie

From: Date: Mon, 29 Jul 2002 04:05:48 +0000
Subject: RE: [PHP] Re: mod_php4.c errors on Apache Complie
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-110090@lists.php.net to get a copy of this message
problem solved!!! thanks for your help Dave :D Cheers Peter > -----Original Message----- > From: David Robley [mailto:robleyd@paradise.net.nz] > Sent: Monday, 29 July 2002 2:02 PM > To: php-general@lists.php.net > Subject: [PHP] Re: mod_php4.c errors on Apache Complie > > > In article <DPEPKCNEFOKBCNNANCIPEEGACHAA.php@vfsa.com.au>, > php@vfsa.com.au > says... > > Howdy, > > > > I've successfully complied PHP and the straight cigfiguration of apache > > 1.3.26 but when i go to configure php as a module in apache using > > > > #./configure --enable-module=max --enable-shared=max > --activate-module=src/m > > odules/php4/libmodphp4.a > > > > i get the following error > > > > mod_php4.c:28:18: zend.h: No such file or directory > <SNIP more of the same> > > > > does any one have any idea's on why it is and what i can do about it? > > I was under the (possibly wrong) understanding that .a libraries are > static, not dynamically loadable. > > The way I usually get apache/php as a DSO is to compile apache > first, with > --enable-modules=max --enable-shared=max blah blah whatever else you > need (but not -activate-module) > > Then copmile php with whatever config options you need _and_ > --with-apxs=/full/path/to/apxs > --with-apache-conf=/dir/where/your/apacheconf/files > > Last config item might be slightly different - can't remember exactly :-) > Try ./configure --help |grep apache for the correct syntax. > > Then when you do make install for php it will install libphp4.so in the > correct place and also amend your httpd.conf to activate php as DSO. The > nyou just (re)start apache and off you go. > > Cheers > -- > David Robley > Temporary Kiwi! > > Quod subigo farinam > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#110090) next »