Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

libphp5.so missing

Tags:

linux

php

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.

like image 216
rashmi Avatar asked Mar 30 '11 08:03

rashmi


4 Answers

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)

like image 91
oori Avatar answered Nov 06 '22 07:11

oori


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

like image 14
digitally404 Avatar answered Nov 06 '22 05:11

digitally404


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.

like image 2
jeffmcneill Avatar answered Nov 06 '22 05:11

jeffmcneill


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

like image 1
Micromega Avatar answered Nov 06 '22 07:11

Micromega