Re: OCI8 , PHP and APACHE issue

From: Date: Mon, 01 Sep 2008 13:00:51 +0000
Subject: Re: OCI8 , PHP and APACHE issue
References: 1 2 3 4 5 6 7  Groups: php.db 
Request: Send a blank email to php-db+get-45300@lists.php.net to get a copy of this message
It's usually easy as that. Good to hear you got it to work. On Mon, Sep 1, 2008 at 2:59 PM, Jack van Zanen <jack@vanzanen.com> wrote: > Funny you should mention that. > > Could not load the extension. > > I tried putting c:\php\ext as extension_dir but that resulted in apache being unable to start > at all. > > Than I remembered that on this particular machine we were running as a different user and not > local system. When I changed that it worked ok > > I really need to understand more about windows I guess > > Jack > > -----Original Message----- > From: Evert Lammerts [mailto:evert.lammerts@gmail.com] > Sent: Monday, September 01, 2008 10:32 PM > To: Jack van Zanen > Cc: php-db@lists.php.net > Subject: Re: [PHP-DB] OCI8 , PHP and APACHE issue > > No interesting entries in the logs? > > On Mon, Sep 1, 2008 at 2:27 PM, Jack van Zanen <jack@vanzanen.com> wrote: >> I have the phpinidir directive set in apache so it loads the exact same >> php.ini as the cli >> >> Jack >> >> 2008/9/1 Evert Lammerts <evert.lammerts@gmail.com> >>> >>> I see that in both cases c:\PHP\php.ini is loaded. Are you sure that >>> after trying the command line you didn't cut - paste the file to >>> c:\windows? What do apache's and PHP's logs say? >>> >>> On Mon, Sep 1, 2008 at 1:25 PM, Jack van Zanen <jack@vanzanen.com> wrote: >>> > Attached is phpinfo() both from the command line and from apache on the >>> > same >>> > machine >>> > >>> > >>> > I have done the exact same setup on my laptop and it works fine from >>> > apache >>> > and cli. >>> > I even copied over the httpd.conf and the php.ini file from my laptop as >>> > all >>> > paths and versions were identical. >>> > >>> > Oracle 10.2.0.4 client >>> > apache 2.2 >>> > php 5.2.6 >>> > >>> > Thanks >>> > >>> > >>> > On 01/09/2008, Evert Lammerts <evert.lammerts@gmail.com> wrote: >>> >> >>> >> Can you send your and the output of phpinfo when run from the command >>> >> line and when run from the browser? >>> >> >>> >> On Mon, Sep 1, 2008 at 6:35 AM, Jack van Zanen <jack@vanzanen.com> >>> >> wrote: >>> >> > Hi List, >>> >> > >>> >> > >>> >> > I have installed Oracle, PHP and apache on my windows machine and >>> >> > have >>> >> > the >>> >> > following issue >>> >> > >>> >> > If I run phpinfo() from the command line it shows OCI8 as enabled and >>> >> > I >>> >> > can >>> >> > connect to oracle databases. >>> >> > >>> >> > When I copy my php.ini to my windows directory (from my php >>> >> > directory) >>> >> > and >>> >> > start apache and than run phpinfo() from a php page in my browser it >>> >> > does >>> >> > not show me that OCI8 is enabled and also does not allow me to >>> >> > connect >>> >> > to >>> >> > databases. It does show it is using the right php.ini from my windows >>> >> > directory >>> >> > >>> >> > I'm sure this must be an environment setting somewhere but I >>> >> > can't >>> >> > work >>> >> > this out. >>> >> > >>> >> > Anybody with some more experience in configuring this combo can shed >>> >> > some >>> >> > light on this?? >>> >> > >>> >> > >>> >> > >>> >> > Brgds >>> >> > >>> >> > >>> >> > Jack >>> >> > >>> > >>> > >>> > >>> > -- >>> > J.A. van Zanen >> >> >> >> -- >> J.A. van Zanen >> > >

« previous php.db (#45300) next »