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.
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)
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
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.
You want to type updatedb and then type locate libphp5.so.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With