Hi, i'm running SQLAnywhere, (18.104.22.16823) on Fedora 16 (3.4.2-1.fc16.x86_64) and I can't connect with PHP in the browser. http://thesite/phpinfo.php gives me the following:
"The SQLAnywhere client libraries could not be loaded. Please ensure that libdbcapi.so can be found in your LD_LIBRARY_PATH environment variable."
I have my usual config & setup on Fedora ... as shown here:
in directory /usr/lib64/php/modules i have the following: php-5.3.2_sqlanywhere.so -> /opt/sqlanywhere12/lib64/php-5.3.2_sqlanywhere.so in /etc/php.ini I have: extension=php-5.3.2_sqlanywhere.so
in /etc/sysconfig/httpd i have: source /opt/sqlanywhere12/bin64/sa_config.sh
If i run the same phpinfo.php from a shell, it works .. as shown here: SQLAnywhere client version => 22.214.171.12423
I can't figure out what I'm missing for apache to load the client libraries.
Any help will be greatly appreciated!
Just finished Fedora16 install on virtual machine and did some digging around system configuration.
My solution is to create a custom shell script file to 1) prepare SA12
environment and 2) to start httpd service. I pastebined it here:
http://pastebin.com/iyS3XnY0 Put it in, let's say, /usr/sbin and
Restart httpd.service (via systemctl) and hopefully it should work now.
answered 10 Jul '12, 10:05
Check after apache restart your
answered 06 Jul '12, 07:16
I just added env[LD_LIBRARY_PATH] = /opt/sqlanywhere12/lib64
To my php-fpm.conf file.
answered 11 May '13, 00:57