compiling PHP 4.04pl1 as dymanic module with Apache 1.3.19

From: Date: Sat, 21 Apr 2001 10:15:20 +0000
Subject: compiling PHP 4.04pl1 as dymanic module with Apache 1.3.19
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49657@lists.php.net to get a copy of this message
Hi there, Till now I have always compiled and used PHP as an static module with Apache.. For the experience and to make it a little easier to compile different PHP packages I want to use PHP as an dynamic module.. Reading the documentation this seems easy... First I got apache 1.3.19 and ran: ./configure --target=/var/apache --enable-module=so Compiled and did a make install Did a ./httpd -l in the /var/apache/bin directory and got: Compiled-in modules: -- Cut out other listed modules -- mod_so.c suexec: disabled; invalid wrapper /var/apache/bin/suexec Looks great ... Then I got PHP-4.04pl and ran: ./configure --with-mysql --with-apxs --with-pdflib After starting I get the error: checking for AOLserver support... no checking for Apache module support via DSO through APXS... ./configure: apxs: command not found Sorry, I was not able to successfully run APXS. Possible reasons: 1. Perl is not installed; 2. Apache was not compiled with DSO support (--enable-module=so); 3. 'apxs' is not in your path. configure: error: ; Well, O.K, /var/apache/bin isn't a place PHP will probably look, so I run it again with: ./configure --with-mysql --with-apxs=/var/apache/bin/apxs --with-pdflib And then I got the error: checking for Apache module support via DSO through APXS... Usage: apxs -g [-S <var>=<val>] -n <modname> apxs -q [-S <var>=<val>] <query> ... apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]] [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>] [-Wl,<flags>] <files> ... apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ... apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ... Sorry, I was not able to successfully run APXS. Possible reasons: 1. Perl is not installed; 2. Apache was not compiled with DSO support (--enable-module=so); 3. 'apxs' is not in your path. configure: error: ; What is my problem: It looks as if apxs is found and that PHP configure tries to invoke it.. Looks like PHP configure needs to add a flag.. ?? Am I doing something wrong, or is this some king of 'changed' feature in Apache 1.3.19?? I have Perl installed... Also I am running everything on a Redhat 6.2 machien.. Thanks for all help.. Bye Bye David

« previous php.general (#49657) next »