Date: 04/29/99
- Next message: slash <email protected>: "[PHP-DEV] Bug #1361: SELECT MULTIPLE & 2 dimension array."
- Previous message: Uwe Steinmann: "[PHP-DEV] Question: two optional arguments"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: slash <email protected>: "[PHP-DEV] Bug #1361: SELECT MULTIPLE & 2 dimension array."
- Previous message: Uwe Steinmann: "[PHP-DEV] Question: two optional arguments"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

