[Sqlrelay-discussion] php and apache with LD_PRELOAD
Brought to you by:
mused
|
From: Nick W. <woo...@ho...> - 2006-06-03 16:57:51
|
Hi, I am trying to get PHP to work with the drop in replacement libraries for MySQL. I have setup the environment variable in my /etc/init.d/httpd PHP script to point to the correct library and when i set it manually in the shell and use mysql everything works fine. On using php however, i get a Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '127.0.0.1' (4) in /var/www/vhosts/boggle.caterham.kudosdesigns.com/httpdocs/index.php on line 14 on trying to connect. the getenv function does however return that the environment variable is set to: /usr/lib/libmysql41sqlrelay.so Have i setup PHP and Apache correctly to use the drop in replacement libraries or is there something else i should do? Thanks, Nick |