[PHP-DEV] Bug #1360: openlink doesn't read .odbc.ini when compiled as an apache mod From: gdaswani <email protected>
Date: 04/29/99

From: gdaswani <email protected>
Operating system: Linux
PHP version: 3.0.7
PHP Bug Type: ODBC related
Bug description: openlink doesn't read .odbc.ini when compiled as an apache mod

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"

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>