Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Cannot load modules/libphp5.so into server: when I installed php5-gd

Tags:

php

apache

php-gd

I was trying to install php5-gd but after ran this command:

yum install php-gd php-tidy

and tried to restart 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

Any of you knows why or how can I fix this error?

like image 809
user2924482 Avatar asked Dec 11 '13 04:12

user2924482


2 Answers

It could be because openSSL hasn't been updated. Could you try updating openSSL via yum and let us know if it works?

yum update openssl
like image 136
Joseph Christopher Avatar answered Oct 26 '22 05:10

Joseph Christopher


The php you are trying to load is compiled with more recent version of openssl than you have installed. Most probably you have messed installation using repositories with different versions of openssl libs. Or else for different versions of OS.

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

like image 44
Michael Tabolsky Avatar answered Oct 26 '22 03:10

Michael Tabolsky