PHP4 install as so dies if apache2 not compiled with default layout

From: Date: Tue, 18 Jun 2002 00:20:27 +0000
Subject: PHP4 install as so dies if apache2 not compiled with default layout
Groups: php.install 
Request: Send a blank email to php-install+get-7360@lists.php.net to get a copy of this message
I'm sorry if this has been answered; I've seen what purport to be answers but none of them have actually worked so far. After untarring apache 2.0.36 source, cd httpd-2.0.36 ./configure \ --enable-layout={Anything but "Apache"} \ --enable-file-cache=shared \ --enable-cache=shared \ --enable-mem-cache=shared \ --enable-example=shared \ --enable-ext-filter=shared \ --enable-deflate=shared \ --enable-mime-magic=shared \ --enable-cern-meta=shared \ --enable-expires=shared \ --enable-headers=shared \ --enable-usertrack=shared \ --enable-unique-id=shared \ --enable-proxy=shared \ --enable-proxy-connect=shared \ --enable-proxy-http=shared \ --enable-static-support \ --enable-asis=shared \ --enable-info=shared \ --enable-http \ --enable-vhost-alias=shared \ --enable-rewrite=shared \ --enable-ssl \ --enable-so \ --with-ssl=/usr/local/ssl make make install cd .. cd php-4.2.1 ./configure --with-apxs2=/usr/local/apache2/sbin/apxs \ --enable-track-vars \ --enable-safe-mode \ --enable-debugger \ --enable-magic-quotes \ --enable-sysvsem \ --enable-sysvshm \ --with-ftp \ --enable-sigchild \ --enable-sockets \ --enable-memory-limit \ --enable-calendar \ --enable-dbase \ --without-mysql \ --without-msql Result: checking for Apache 2.0 module support via DSO through APXS... Sorry, I cannot run apxs. Possible reasons follow: 1. Perl is not installed 2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs 3. Apache was not built using --enable-so (the apxs usage page is displayed) The output of /usr/local/apache2/sbin/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 well. Perl is installed. apxs was obviously found. Apache2 was built using --enable-so, even though it should not have been needed - it was automatically added with the first "=shared" module in the config. The PHP install dies like a dog if anything but the absolute standard "Apache" layout is used to compile apache2. I don't know if this is the PHP, Apache, or apxs's fault, but something seems totally screwed up. Does anyone know why this keeps biting me in the butt no matter what I try? Unfortunately, compile and installing Apache2 in the "standsrd" place is unacceptable because it will happily wipe out existing install, that will be needed unless this *experimental* compile just happens to turn out perfect and not need major reconfiguration. I *have* to configure Apache 2.0.36 with other than that layout. Please, please, can someone tell me what magickal trick I need to do to get this to work?!? It's driving me totally insane with its stupid screwups!

« previous php.install (#7360) next »