Reputation: 619
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.
Upvotes: 17
Views: 62605
Reputation: 423
I did a try with php 5.6.36.
I agree, libphp5.so
is 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 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
libphp5.so
So, you just have to add the --with-apxs2=/usr/bin/apxs
option to the configure script.
You can get the help for this option 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 your system like that:
$ which apxs
/usr/bin/apxs
If you want to know more about apxs
, I recommend this: https://httpd.apache.org/docs/2.4/en/programs/apxs.html
Upvotes: 0
Reputation: 1
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.
Upvotes: 0
Reputation: 65
You have to install the php-apache module. In Debian for example should be:
sudo apt install php-module
Upvotes: 0
Reputation: 2260
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.
Upvotes: 2
Reputation: 141
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
...
Upvotes: 14
Reputation: 5711
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)
Upvotes: 23
Reputation: 11080
find / -name libphp*
Should locate it for you. It will be in your apache modules directory, probably: /usr/lib/httpd/modules
Upvotes: 0
Reputation: 1
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.
Upvotes: 0