I would take what's behind door number 2: Apache was not compiled with DSO support
When you open up your Apache config file, do you have this line in there? AddModule mod_so.c If you don't, then you'll need to either recompile Apache for DSO's (recommended), or you can compile Apache and PHP "statically", which also involves re-making Apache: ----- SNIPPET ----- QUICK INSTALL (Static) $ gunzip -c apache_1.3.x.tar.gz | tar xf - $ cd apache_1.3.x $ ./configure $ cd .. $ gunzip -c php-4.0.x.tar.gz | tar xf - $ cd php-4.0.x $ ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars $ make $ make install $ cd ../apache_1.3.x $ ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a (The above line is correct! Yes, we know libphp4.a does not exist at this stage. It isn't supposed to. It will be created.) $ make (you should now have an httpd binary which you can copy to your Apache bin dir if is is your first install then you need to "make install" as well) $ cd ../php-4.0.x $ cp php.ini-dist /usr/local/lib/php.ini You can edit /usr/local/lib/php.ini file to set PHP options. Edit your httpd.conf or srm.conf file and add: AddType application/x-httpd-php .php ----- SNIPPET ----- - Jonathan -----Original Message----- From: Stuart Grimshaw [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 7:34 AM To: [EMAIL PROTECTED] Subject: [PHP-INST] Problem installing 4.1.0 with Apache 1.3.22 I'm trying to install the latest PHP after I've upgraded Apache. The Apache install works OK. When I try & configure PHP, I get the following from ./configure garner:/home/downloads/Linux/php-4.1.0# ./configure --with-apxs=/usr/local/apache/bin/apxs --enable-force-cgi-redirect --enable-ftp --enable-gd-native-ttf --with-pgsql=/usr/local/pgsql/lib --enable-trans-sid --with-png-dir=/usr/lib --with-zlib-dir=/usr/lib --with-gd --enable-magic-quotes --with-mysql=/usr/local/mysql loading cache ./config.cache checking for a BSD compatible install... /usr/bin/ginstall -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... missing checking for working autoconf... missing checking for working automake... missing checking for working autoheader... missing checking for working makeinfo... missing checking whether to enable maintainer-specific portions of Makefiles... no checking host system type... i686-pc-linux-gnu checking for gawk... no checking for mawk... mawk checking for bison... bison -y checking bison version... 1.28 (ok) checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking how to run the C preprocessor... gcc -E checking for AIX... no checking for gcc option to accept ANSI C... none needed checking for ranlib... ranlib checking whether gcc and cc understand -c and -o together... yes checking whether ln -s works... yes checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for working const... yes checking for pthreads_cflags... -pthread checking for pthreads_lib... Configuring SAPI modules checking for AOLserver support... no checking for Apache module support via DSO through APXS... 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. Try to use --with-apxs=/path/to/apxs The output of /usr/local/apache/bin/apxs follows 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> ... configure: error: Aborting I installed 4.1.0 on my old Apache install the other day, and that worked fine, so all I can assume is that there something different about Apache 1.3.22's apxs? I've read the suggestions in the FAQ about apxs, and the first problem was present, but adding the entries suggested made no difference. -- | Stuart Grimshaw <[EMAIL PROTECTED]> | Chief Operations Officer | Football Networks Ltd |- | t:07976 625221 | f:0870 7060260 -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]