unable to find libphp5.so lib with php5 installation

Hi,

I am having freebsd 7 i386 installed. I have installed apache and php 5 from the precompiled tbz packages. However after configuring httpd.conf by adding

Code:
LoadModule php5_module        libexec/apache22/libphp5.so

I have not installed apache 2.22 and php5 from ports.

Can any one please tell how can i get it installed from the precompiled packages. Which modules do I need to install additionally to get the libphp5.so lib installed from pre-compiled packages only.

Thanks
 
Packages are simply precompiled ports. They install files in the exact same place, only faster. You should find that library at /usr/local/libexec/apache22/libphp5.so. I'm assuming you installed Apache before PHP5? That is the required order.
 
The php5 port doesn't build an apache module by default so it's quite likely that the package doesn't contain it.
 
I uninstalled apache, PHP and followed following steps
1. Installed apache
2. Installed php 5

Code:
# pkg_add apache-2.2.6_2.tbz
# pkg_add php5-5.2.5.tbz

Added following line to httpd.conf

Code:
LoadModule php5_module libexec/apache22/libphp5.so

Restarted apache and still getting following error

Code:
# /usr/local/etc/rc.d/apache22 reload
Performing sanity check on apache22 configuration:
httpd: Syntax error on line 105 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/libphp5.so into server: /usr/local/libexec/apache22/libphp5.so: Undefined symbol "__h_error"
 
Where do these packages come from? They're seriously out of date. Try deinstalling them, and use:

Code:
pkg_add -r apache22 or
pkg_add -r apache-2.2.11_4
and
Code:
pkg_add -r php5 or
pkg_add -r php5-5.2.9
 
Build php5 from the ports, the apache module isn't selected by default. Hence the package doesn't contain the apache module. Probably due to the different versions of apache in the ports tree.
 
SirDice said:
Build php5 from the ports, the apache module isn't selected by default. Hence the package doesn't contain the apache module. Probably due to the different versions of apache in the ports tree.

More probably due to that fact that one might be using lighttpd, and not apache at all ;)
 
Back
Top