[ACCEPTED]-libphp5.so missing-linux

Accepted answer
Score: 23

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

sudo apt-get install libapache2-mod-php5

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

Score: 14

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

$ which apxs

Find which version 5 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 4 the PHP install with the location to your 3 apxs, and your version of apache.

For Apache 2 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 1 it's building, you should see the line:

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

Original solution here

Score: 2

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

Score: 1

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

Score: 0

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

Score: 0
find / -name libphp*

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

Score: 0

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

sudo apt install 1 php-module

Score: 0

I realize this is an old question but in 7 the process of upgrading an old MediaWiki 6 site to something new, I needed PHP 5.6 5 on Fedora 35. After installing remi PHP5.6 4 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 3 will give it to you.

dnf --enablerepo=remi install php56-mod_php

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

Score: 0

I did a try with php 5.6.36.

I agree, libphp5.so is 7 not provided if you build like that:

$ ./configure
$ make
$ make install INSTALL_ROOT=/tmp/php
$ ls -R /tmp/php | grep libphp

However, libphp5.so is 6 provided if you build like that:

$ ./configure --with-apxs2=/usr/bin/apxs
$ make
$ make install INSTALL_ROOT=/tmp/php
$ ls -R /tmp/php | grep libphp

So, you 5 just have to add the --with-apxs2=/usr/bin/apxs option to the configure 4 script.

You can get the help for this option 3 like that:

$ ./configure --help | grep -A 1 with-apxs2=
  --with-apxs2=FILE       Build shared Apache 2.0 Handler module. FILE is the optional
                          pathname to the Apache apxs tool apxs

You can find the location of apxs on 2 your system like that:

$ which apxs

If you want to know 1 more about apxs, I recommend this: https://httpd.apache.org/docs/2.4/en/programs/apxs.html

More Related questions