cannot stat libs/libphp4.so

nemonoman

Verified User
Joined
Apr 7, 2007
Messages
26
After successfully following instructions for adding freetype to gd, adding conf info to php and apache, after building php successfully, I get this error message. Installing php...
Installing PHP SAPI module: apache
[activating module `php4' in /etc/httpd/conf/httpd.conf]
cp libs/libphp4.so /usr/lib/apache/libphp4.so
cp: cannot stat `libs/libphp4.so': No such file or directory
apxs:Break: Command failed with rc=1
make: *** [install-sapi] Error 1

*** The install has failed, do you want to try to install it again? (y,n):


I have spent most of 24 hours trying to figure this out. I give up!!! HELP!!
I can't figure out where libs/libphp4.so is supposed to be! libphp4.so already exists in /usr/lib/apache/libphp4.so, and I have moved copies to a variety of libs directories in various locations hoping to outfox the error.

Note a similar thread was posted in the Apache forum. I know crossposting is a Bad Thing, but is this an Apache or a PHP error?
 
After successfully following instructions for adding freetype to gd, adding conf info to php and apache, after building php successfully, I get this error message. Installing php...
Installing PHP SAPI module: apache
[activating module `php4' in /etc/httpd/conf/httpd.conf]
cp libs/libphp4.so /usr/lib/apache/libphp4.so
cp: cannot stat `libs/libphp4.so': No such file or directory
apxs:Break: Command failed with rc=1
make: *** [install-sapi] Error 1

*** The install has failed, do you want to try to install it again? (y,n):


I have spent most of 24 hours trying to figure this out. I give up!!! HELP!!
I can't figure out where libs/libphp4.so is supposed to be! libphp4.so already exists in /usr/lib/apache/libphp4.so, and I have moved copies to a variety of libs directories in various locations hoping to outfox the error.

Note a similar thread was posted in the Apache forum. I know crossposting is a Bad Thing, but is this an Apache or a PHP error?


So u say libphp4.so exist in /usr/lib/apache/libphp4.so and it should be in libs/ ?

Maybe u could check the httpd.conf where it states the location of libphp4.so?

Did u previous try to update php4 to php5?
In my httpd.conf the php4 location is also /usr/lib/apache/libphp4.so

Please post your httpd.conf
 
After successfully following instructions for adding freetype to gd, adding conf info to php and apache, after building php successfully, I get this error message. Installing php...
Installing PHP SAPI module: apache
[activating module `php4' in /etc/httpd/conf/httpd.conf]
cp libs/libphp4.so /usr/lib/apache/libphp4.so
cp: cannot stat `libs/libphp4.so': No such file or directory
apxs:Break: Command failed with rc=1
make: *** [install-sapi] Error 1

*** The install has failed, do you want to try to install it again? (y,n):


I have spent most of 24 hours trying to figure this out. I give up!!! HELP!!
I can't figure out where libs/libphp4.so is supposed to be! libphp4.so already exists in /usr/lib/apache/libphp4.so, and I have moved copies to a variety of libs directories in various locations hoping to outfox the error.

Note a similar thread was posted in the Apache forum. I know crossposting is a Bad Thing, but is this an Apache or a PHP error?


You should recompile php, recompiling every module and making sure there are no errors. At the last bit of the compile libhp4.so is moved into place. It should reside in /usr/lib/apache/ and the corresponding httpd.conf entry will be added or modified.

Does apxs exist on the box? Type locate apxs. Whats your result?

...and in your customapache/configure.php does the first line say;

--with-apxs=/usr/local/apache/bin/apxs \
 
Last edited:
Try running the configure/make command in the php source folder manually and see if there is an error occuring during the compile of PHP as that could explain why there is no libphp4.so being created.
 
Back
Top