Apache Unable to load / libphp 5.so modules on server: when I installed php5-gd

I tried to install php5-gd, but after running this command:

yum install php-gd php-tidy 

and tried restarting apache:

 httpd -k restart 

I got the following error:

 httpd: Syntax error on line 56 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.modules.d/10-php.conf: Cannot load modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: symbol SSLeay_version, version OPENSSL_1.0.1 not defined in file libcrypto.so.10 with link time reference 

Do any of you know why and how I can fix this error?

+6
source share
5 answers

This may be because openSSL is not updated. Could you try updating openSSL via yum and tell us if it works?

 yum update openssl 
+8
source

The php you are trying to download is compiled with a newer version of openssl than you installed. Most likely you have a confusing installation using repositories with different versions of openssl libs. Or for different OS versions.

yum list php-gd and yum list openssl rpm -qf /etc/httpd/modules/libphp5.so should give you a hint or two.

+1
source

yum remove httpd

yum clear everything

Step1: install Fedora 19

Step2: install the repository

 rpm -Uvh http://rpms.famillecollet.com/remi-release-19.rpm 

Step 3. Install Apache (httpd) web server and PHP 5.5.9

 yum --enablerepo=remi install httpd php php-common 

Step4: Install PHP 5.5.9 Modules

 yum --enablerepo=remi install php-pecl-apc php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml 

Step 5: enable the service and run its systemctl enable httpd.service

 /etc/init.d/httpd start ## use restart after update 

OR service httpd start ## use restart after update

Step 6: Create a PHP test page to verify that the Apache, PHP, and PHP modules are working.

 add test page to /var/www/html/test.php file and run using localhost/test.php 
0
source

Just comment on this libphp5.so file in the error.conf file and try restarting the httpd server, for example:

 /etc/init.d/httpd start 

If you encounter a problem again, check the certificate at a specific location where the .crt and .jks files .jks .

0
source

Fedora 25:

 sudo dnf -y remove httpd sudo dnf -y install httpd 

I would recommend having a backup of all files and configurations, albeit just in case.

0
source

All Articles