Home » Php » php – How to install module libphp5.so in Apache serve CentOS 7

php – How to install module libphp5.so in Apache serve CentOS 7

Posted by: admin July 12, 2020 Leave a comment

Questions:

I have installed php 5.6.27 in Cent OS 7. Also I uncommented configurtion line in:

LoadModule php5_module       modules/libphp5.so

But I does not have this file in directory modules/.

How can I install this?

How to&Answers:

The exact source and name of the PHP version installed is important. I too had this problem and had installed php56.x86_64 from remi-safe repo. However it wasn’t until I installed php.x86_64 from remi-php56 repo that things worked (and libphp5.so showed up).

I recommend revisiting the version installed and repo source (yum list installed), and then look for an alternative of one or the other, or both (version/repo source).