| Ryan O'Rourke on Thu, 06 Feb 2003 08:10:16 -0600 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: [Cialug] php and oracle |
Thank you for your response on aafugit in Decemeber, it was much appreciated. It's a bit of a long story, but when I asked the similar question on aafugit it was a slightly different scenario. That was a different machine running RedHat 7.3 on which Apache and PHP were compiled from source. In that case I was not able to make PHP work with Oracle either. I had no file called /etc/rc.d/init.d/httpd so I added the lines for ORACLE_HOME and ORACLE_SID to /usr/local/apache/bin/apachectl, exported, and restarted Apache. I'm not sure if that was the right thing to do or not. Anyway, on this machine PHP and Apache are installed from RPM, and the Oracle 9 client and libs are installed from Oracle's installer. It's possible to connect to the Oracle database from the command line, but when trying it from PHP the connection fails. I have added the lines ORACLE_HOME=/opt/oracle/OraHome1 ORACLE_SID=chprod to /etc/rc.d/init.d/httpd, exported, and restarted Apache and I still have no luck. I should also add that there is nothing for 'Oracle' in info.php Is it possible to change PHP's configuration to do the same as "./configure --with-oracle=/opt/oracle/OraHome1" when I'm working with a RPM package? Thanks again. -- Ryan On Thu, 2003-02-06 at 07:41, Dave Weis wrote: > > On 6 Feb 2003, Ryan O'Rourke wrote: > > I was wondering how I can reconfigure PHP with Oracle support if I have > > installed Apache 1.3.27 and PHP 4.1.2 from RPMs on RedHat 8. > > The Oracle client and libraries are already installed, I just need PHP > > to recognize it I guess. > > I answered this when you asked on the aafugit list. Did that not work? > > -- > Dave Weis "I believe there are more instances of the abridgment > djweis@xxxxxxxxxxxx of the freedom of the people by gradual and silent > encroachments of those in power than by violent > and sudden usurpations."- James Madison > _______________________________________________ Cialug mailing list Cialug@xxxxxxxxxx http://cialug.org/mailman/listinfo/cialug