the following sequence as described in the INSTALL pages.
configure --with-mysql --with-apxs
make
make install
install fails with this error message..
the following sequence as described in the INSTALL pages.
configure --with-mysql --with-apxs
make
make install
install fails with this error message..
sorry the error message didn't get put in ..
here it is..
make[1]:Entering directory '/export/src/php-4.0.1.pl2.
apxs -i -a -n php4 libs/libphp4.so
cp libs/libphp4.so /usr/lib/apache/libphp4.so
cp: libs/libphp4.so: No such file or directory
apxs:Break: Command failed with rc=65536
make[1]: *** install-sapi Error 1
of course the libs directory does not contain the file libphp4.so..
does this mean the make failed even though there were no error messages.
Make sure that the mod_so module is enabled in Apache.
brad.
The only thing you have to do, is to point the --with-apxs to the apxs file. You configure line should look like this..
./configure --with-apxs=/usr/local/apache/bin/apxs...or wherever your apache bin directory is. That should do it. If you read the documentation, it will tell you the same thing.
It would be nice if it were that easy, but alas, it is not.
I'm getting the same error. If manually run it:
cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so
cp: libs/libphp4.so: No such file or directory
apxs:Break: Command failed with rc=65536
I get the same error because there is no file named libphp4.so in the libs subdir.
ideas?
libphp4.so is the Apache module created by apxs. The reason apxs is not working is becasue you have not configured Apache with DSO support. Look in in the Apache documention for instructions on how to do this, recompile Apache, the install PHP.
brad.
i found that if i had changed some configuration options with the configure command, after i had done configure once, they apparently didn't get acknowledged or processed correctly.
I had to untar the source again, configure with the correct options, to get the code to install correctly. this was true even if it would 'make' correctly
Hi,
If you do a
make clean
or better,
make distclean
before reconfiguring, it will work.
brad.
I'm compiling php4 on BSDi. Apache was installed with apxs enabled, but php4 still fails in the same spot in the make install.
/usr/local/src/php-4.1.1/build/shtool mkdir -p "/usr/var/www/apache/libexec" && /usr/var/www/apache/bin/apxs -S LIBEXECDIR="/usr/var/www/apache/libexec" -i -a -n php4 libs/libphp4.so
[activating module `php4' in /usr/var/www/apache/conf/httpd.conf]
cp libs/libphp4.so /usr/var/www/apache/libexec/libphp4.so
cp: libs/libphp4.so: No such file or directory
apxs:Break: Command failed with rc=1
*** Error code 1
Stop.
*** Error code 1
Stop.
Any ideas?
kris
When I had the exact same problem ages ago, it was because the Apache mod_so wasn't enabled.
Run your Apache binary with the -l option, which will list all of the modules complied into Apache.
If mod_so isn;t installed, try recompiling Apache with mod_so support (see Apache's README.configure) for instructions, if you need them.
If mod_so is installed, I can't help you - that was the cuase of the problem for me.