Hello all. I have a Solaris 10/Sun Ultra10 box and I am trying to build a SAMP server.
The MySQL portion is working and Apache2 seems to be working. However after installing PHP5 I get the following error:
# ./apachectl start
httpd: Syntax error on line 115 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: ld.so.1: httpd: fatal: libmysqlclient.so.15: open failed: No such file or directory
# cd /usr/local/apache2/modules
# ls -l libphp5.so
-rwxr-xr-x 1 bin bin 7157740 Sep 28 2008 libphp5.so
The crazy thing is, the file libphp5.so is there in the /modules directory as the output shows.
Google is not very helpful. I was wondering if anyone here might have some ideas as to why I am getting this when trying to restart Apache.
I have the following two lines in my httpd.conf file to load php:
It is complaining on being unable to load the mysql dynamic library. Check that the file exists on your system and verify with commands such as ldd (not sure if exists on Solaris).
I really appreciate all of your help! Here is what I have done, I have added a link in my /usr/lib directory to point to the libmysqlclient.so.15 file.
Now when attempting to start apache I get the following:
/usr/local/apache2/bin>./apachectl start
httpd: Syntax error on line 114 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: ld.so.1: httpd: fatal: relocation error: file /usr/local/lib/libgd.so.2: symbol png_get_error_ptr: referenced symbol not found
/usr/local/apache2/bin>
I did a system reboot and tried to start apache again. It looks like I get the same libgd error:
Cannot load /usr/local/apache2/modules/libphp5.so into server: ld.so.1: httpd: fatal: relocation error: file /usr/local/lib/libgd.so.2: symbol png_get_error_ptr: referenced symbol not found
It looks like the /usr/local/lib/libgd.so.2 library file you have is not up to date enough and therefore does not include the symbol required. If you do an "ls -l of /usr/local/lib/libgd.so.2" you may find it a link to a library with more version information, e.g. /usr/local/lib/libgd.so.2.0.1, you can then locate a more up to date version and move the "/usr/local/lib/libgd.so.2" link to point to the newer version.
Hello all. Apologies for not following-up sooner. Family responsibilities kind of took over.
I finally got Apache and PHP to work together.
I was using precompiled packages of Apache 2.2.11 and PHP 5.2.6. When I could not get Apache and PHP to work together I uninstalled the PHP package and compiled it myself with the following options: