php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1360 openlink doesn't read .odbc.ini when compiled as an apache mod
Submitted: 1999-04-29 02:48 UTC Modified: 1999-07-11 04:12 UTC
From: gdaswani at odc dot net Assigned:
Status: Closed Package: ODBC related
PHP Version: 3.0.7 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: gdaswani at odc dot net
New email:
PHP Version: OS:

 

 [1999-04-29 02:48 UTC] gdaswani at odc dot net
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"


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-11 04:12 UTC] kara at cvs dot php dot net
Probably a problem with environment varisables.
There is a variable like ODBCINI that can be set to point to
the file or use the system default location.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 14:01:36 2025 UTC