I've been trying to follow some of the PHP/MySQL tutorials. But I've come across some problems when trying to install PHP as a dynamically linked object.
I use Red Hat 6.2, Apache 1.3.12, and PHP4.0.2.
I can run the ./configure script (below) no problems.
The 'make' command also does not produce any errors. But when I enter the 'make install' command, it goes through the normal screens full of data then ends with the following:
...
make[1]: Entering directory `/tmp/downloads/php-4.0.1pl2'
/usr/sbin/apxs -i -a -n php4 libs/libphp4.so
cp libs/libphp4.so /usr/lib/apache/libphp4.so
cp: cannot create regular file `/usr/lib/apache/libphp4.so': No such file or directory apxs:Break: Command failed with rc=65536 make[1]: ***
[install-sapi] Error 1 make[1]: Leaving directory `/tmp/downloads/php-4.0.1pl2'
make: *** [install-recursive] Error 1
[root@localhost php-4.0.1pl2]#
I have tried everything, read the README files, other tutorials, but still nothing.
If anyone could help out it would greatly appreciated.
THANKS!
PS. I finally got it set up as a static module, but would really like to know what is wrong with the dynamic module! And aparently, the dynamic module is the better way to go.
I noticed the error happens a little bit after apxs does it's thing. You might be having a problem with apxs.
Normally should only be a problem in RHL6.1 but you might try checking out your apxs (in /usr/sbin/apxs).
The apxs script RedHat ships is broken. Look for this line:
my $CFG_LIBEXECDIR = 'modules';
If you see the above line, change it to this:
my $CFG_LIBEXECDIR = '/usr/lib/apache';
check out the PHP FAQ... it talks about that problem and another problem that you might be having with apxs http://www.php.net/FAQ.php#6.11
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote/font><HR>Originally posted by Candy: I've been trying to follow some of the PHP/MySQL tutorials. But I've come across some problems when trying to install PHP as a dynamically linked object.
I use Red Hat 6.2, Apache 1.3.12, and PHP4.0.2.
I can run the ./configure script (below) no problems.
The 'make' command also does not produce any errors. But when I enter the 'make install' command, it goes through the normal screens full of data then ends with the following:
...
make[1]: Entering directory `/tmp/downloads/php-4.0.1pl2'
/usr/sbin/apxs -i -a -n php4 libs/libphp4.so
cp libs/libphp4.so /usr/lib/apache/libphp4.so
cp: cannot create regular file `/usr/lib/apache/libphp4.so': No such file or directory apxs:Break: Command failed with rc=65536 make[1]: ***
[install-sapi] Error 1 make[1]: Leaving directory `/tmp/downloads/php-4.0.1pl2'
make: *** [install-recursive] Error 1
[root@localhost php-4.0.1pl2]#
I have tried everything, read the README files, other tutorials, but still nothing.
If anyone could help out it would greatly appreciated.
THANKS!
PS. I finally got it set up as a static module, but would really like to know what is wrong with the dynamic module! And aparently, the dynamic module is the better way to go.<HR></BLOCKQUOTE>
------------------
Paul F. De La Cruz
Sr. Programmer For The Dream Center & Missionary to the Inner-City of Los Angeles
I get the same error, except an apxs warning appears aswell as the error you are getting Candy:
apxs:Warning: Sorry, no DSO support for Apache available
apxs:Warning: under your platform. Make sure the Apache
apxs:Warning: module mod_so is compiled into your server
apxs:Warning: binary `/usr/local/apache'.
apxs:Warning: Continuing anyway...
I still can't figuree it out as I have tried everything, including the suggestions posted here and at the php site. Someone please help?
Did you compile/install the copy of Apache you're using yourself? It looks like there is no dynamic module support in it! What distribution/version of Linux are you using?
Bookmarks