WS 4.1_sp7, php-4.3.4, freetds
807567Nov 27 2003 — edited Feb 15 2004Hi all,
I need to write some php based web application that connects to a Sybase 12.5 DB server. I have successfully installed the required freetds (0.61.2)libraries and php 4.3.4. The integration of php into web server 4.1 (sp7) went flawlessy, simple things like phpinfo work.
I wrote a little test script that connects to the database. The connection gets successfully established when I run the script from the commandline (/path/to/php /path/to/script) but when the script is run from the web server, the message is "mssql_connect(): Unable to connect to server:<snip>"
I suspect that there is something wrong with the environment (although the connection gets established when I run the script from the command line as user 'nobody' - the uid under which the web server is run).
What puzzles me is that the configuration of freetds is read correctly, I truss'ed the web server process, so I believe that permissions on the files in question are set correctly.
Could somebody shed some light? If needed, I can provide the truss output.
Regards,
Lars