|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-07-11 04:12 UTC] kara at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jun 18 07:00:01 2026 UTC |
Problem: when php 3.0.7 is compiled as an apache module (with openlink odbc support), dsn can't be found.. Basically, it seems that ~apache_user_as/.odbc.ini doesn't not get read. however, when php 3.0.7 is compiled as a cgi program, it is able to read ~apache_user_as/.odbc.ini problem and the test script works.. ------------------- Example Script <?php $connId =odbc_connect("dsn=template1",$user,$passwd); odbc_close($connId) ?> Works when php 3.0.7 is compiled as cgi, not as an apache module.. Apache is set to run as (on both instances) User www group www ~www/.odbc.ini is properly setup and working as verified by php compiled as a cgi and the openlink odbctest program. Compile Line: apache module (doesn't work) ./configure --with-apxs=/opt/apache/bin/apxs --with-openlink=/home/openlink --with-config-file-path=/opt/apache/conf as a cgi (works) ./configure --with-openlink=/home/openlink --with-config-file-path=/opt/apache/conf ------------------------------- PHP3.ini is not relevant, same copy used under cgi and apache module testing.. ------------------------------- only change on apache 1.3.6 is [module version - httpd.conf] LoadModule php3_module libexec/libphp3.so AddType application/x-httpd-php3 .php3 [cgi version - httpd.conf] commented out LoadModule php3_module_libexec/libphp3.so ScriptAlias /php/ "/opt/apache/php/" AddType application/x-httpd-php3 .php3 Action application/x-httpd-php3 "/php/php"