I have installed MySQL and PHP, and I tried restarting apache and here what happens when I run
# service httpd restart:
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /usr/lib64/libmysqlclient.so.18: file too short
I have spent the whole day trying to solve it, reinstalled MySQL a couple of times, as well as PHP, and still nothing.
When I run
# ldconfig -v |grep mysql, here is what I get:
libmysqlclient.so.16 -> libmysqlclient.so.16.0.0
libmysqlclient_r.so.16 -> libmysqlclient_r.so.16.0.0
ldconfig: Cannot stat /usr/lib/libltdl.so: No such file or directory
ldconfig: File /usr/lib64/libmysqlclient.so.18 is empty, not checked.
libmysqlclient.so.16 -> libmysqlclient.so
libmysqlclient.so.15 -> libmysqlclient.so.15
Oviously, there is an error with libltdl.so file, but I don't think it matters in this case. I'm more concerned with libmysqlclient.so.18. The file exists but it's empty, and I suspect that's why the error appears when I try to start httpd.
Please help, I'm going insane...
PHP 5.4.11 (cli) (built: Feb 16 2013 08:42:08) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
EDIT After copying the source libmysqlclient.so.18 to the directory, the error changed to:
Starting httpd: httpd: Syntax error on line 17 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: undefined symbol: client_errors