'libphp5.so missing

i installed php-5.2.17 with the following commands

./configure
make
make install

installation went fine. but i dont find libphp5.so file can any one suggest me what went wrong and how to fix this error.



Solution 1:[1]

Try libapache2-mod-php5 package, it'll probably resolve it.

sudo apt-get install libapache2-mod-php5

(assuming you're already after: sudo apt-get install php5)

Solution 2:[2]

First find out the location of apxs (apache auto configuration system):

$ which apxs
/usr/bin/apxs

Find which version of apache you have installed:

$ apachectl -v
Server version: Apache/2.4.7 (Unix)
Server built:   Nov 30 2013 00:31:59

Then you configure the PHP install with the location to your apxs, and your version of apache.

For Apache 2.X, run

$ ./configure --with-apxs2=/usr/bin/apxs

For Apache 1.X, run

$ ./configure --with-apxs=/usr/bin/apxs

Followed by

$ make
$ make install

When it's building, you should see the line:

...
libtool: install: install .libs/libphp5.so /usr/lib/httpd/modules/libphp5.so
...

Original solution here

Solution 3:[3]

I had this same problem. I had installed php56.x86_64 from remi-safe, but when I installed php.x86_64 from remi-php56, then the library downloaded properly.

Solution 4:[4]

You want to type updatedb and then type locate libphp5.so.

Solution 5:[5]

you should see the output of what is installing during the 'make install' phase. Look for your file there. Usually the target directory is /usr/local/lib (or /usr/local/lib64), so you can try 'find' utility to look for your file in there.

Solution 6:[6]

find / -name libphp*

Should locate it for you. It will be in your apache modules directory, probably: /usr/lib/httpd/modules

Solution 7:[7]

You have to install the php-apache module. In Debian for example should be:

sudo apt install php-module

Solution 8:[8]

I realize this is an old question but in the process of upgrading an old MediaWiki site to something new, I needed PHP 5.6 on Fedora 35. After installing remi PHP5.6 with

dnf install http://rpms.remirepo.net/fedora/remi-release-35.rpm

followed by

dnf --enablerepo=remi install php56

I could not find libphp*.so. This will give it to you.

dnf --enablerepo=remi install php56-mod_php

Restart httpd after and phpinfo() will display what you want it to.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 oori
Solution 2 Community
Solution 3 jeffmcneill
Solution 4
Solution 5 Tomáš Kouba
Solution 6 Steve Claridge
Solution 7 Antonio
Solution 8 wofat