Click to See Complete Forum and Search --> : PROBLEM: Installing PHP4 as a Dynamic Module


Candy
07-13-2000, 08:47 PM
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 with Apache.
I use Red Hat 6.2, Apache 1.3.12, and PHP4.0.2.

I can run the ./configure script (below) no problems.

./configure --prefix=/usr/local/php \
--with-apxs=/usr/sbin/apxs --with-xml

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! Because aparently, the dynamic module is the better way to go.