PHP error in module mode and not in cgi mode

Hi all,

I use apache 2.0 with php 5.1.6.
When this one is mounted as CGI script, php_oci8.dll works well (in version
5.1.2 !!?)
But in module mode this same dll (and version 5.1.6 too) can't be loaded.

What the difference between those modes ?
Where can I search to solve my problem ?

Thx all.

Machaon
Machaon [ Di, 09 Oktober 2007 12:03 ] [ ID #1840231 ]

Re: PHP error in module mode and not in cgi mode

On Tue, 9 Oct 2007 12:03:23 +0200, "Machaon"
<jpalayodan [at] e-cml.org> wrote:

>Hi all,
>
>I use apache 2.0 with php 5.1.6.
>When this one is mounted as CGI script, php_oci8.dll works well (in version
>5.1.2 !!?)
>But in module mode this same dll (and version 5.1.6 too) can't be loaded.
>
>What the difference between those modes ?
>Where can I search to solve my problem ?
>
>Thx all.
>
>Machaon

Commandline PHP (CGI mode) often refers to another php.ini file
then the Apache PHP module does. Perhaps the module mode php.ini
doesn't have php_oci8 enabled.
--
( Kees
)
c[_] I'm not a vegetarian, but I eat animals who are.
(Julius Henry "Groucho" Marx) (#478)
Kees Nuyt [ Di, 09 Oktober 2007 14:14 ] [ ID #1840232 ]

Re: PHP error in module mode and not in cgi mode

"Kees Nuyt" <k.nuyt [at] nospam.demon.nl> a écrit dans le message de news:
r1smg3dst3upgjjhp3m1c7nq98s77biit9 [at] dim53.demon.nl...
> On Tue, 9 Oct 2007 12:03:23 +0200, "Machaon"
> <jpalayodan [at] e-cml.org> wrote:
>
>>Hi all,
>>
>>I use apache 2.0 with php 5.1.6.
>>When this one is mounted as CGI script, php_oci8.dll works well (in
>>version
>>5.1.2 !!?)
>>But in module mode this same dll (and version 5.1.6 too) can't be loaded.
>>
>>What the difference between those modes ?
>>Where can I search to solve my problem ?
>>
>>Thx all.
>>
>>Machaon
>
> Commandline PHP (CGI mode) often refers to another php.ini file
> then the Apache PHP module does. Perhaps the module mode php.ini
> doesn't have php_oci8 enabled.
> --
> ( Kees
> )
> c[_] I'm not a vegetarian, but I eat animals who are.
> (Julius Henry "Groucho" Marx) (#478)


Thx Kees,

but I compared the php configuration with phpinfo() and the ini file used is
the same !

Machaon
Machaon [ Di, 09 Oktober 2007 17:07 ] [ ID #1840233 ]

Re: PHP error in module mode and not in cgi mode

On Tue, 9 Oct 2007 17:07:02 +0200, "Machaon"
<jpalayodan [at] e-cml.org> wrote:

>"Kees Nuyt" <k.nuyt [at] nospam.demon.nl> a écrit dans le message de news:
>r1smg3dst3upgjjhp3m1c7nq98s77biit9 [at] dim53.demon.nl...
>> On Tue, 9 Oct 2007 12:03:23 +0200, "Machaon"
>> <jpalayodan [at] e-cml.org> wrote:
>>
>>>Hi all,
>>>
>>>I use apache 2.0 with php 5.1.6.
>>>When this one is mounted as CGI script, php_oci8.dll
>>>works well (in version 5.1.2 !!?)
>>>But in module mode this same dll (and version 5.1.6 too)
>>>can't be loaded.
>>>
>>>What the difference between those modes ?
>>>Where can I search to solve my problem ?
>>>
>>>Thx all.
>>>
>>>Machaon
>>
>> Commandline PHP (CGI mode) often refers to another php.ini file
>> then the Apache PHP module does. Perhaps the module mode php.ini
>> mode php.ini doesn't have php_oci8 enabled.
>
>Thx Kees,
>
>but I compared the php configuration with phpinfo() and
>the ini file used is the same !

It might have to do with access rights, but that's just a
guess. Another possibility is environment variables,
doesn't Oracle expect some, and are they set?

There is a discussion about it in the PHP manual,
Chapter CVII. Oracle Functions / Requirements

I have no experience with PHP / Oracle. If the abvove
doesn't help, perhaps you should ask in comp.lang.php
--
( Kees
)
c[_] My software never has bugs. It just develops random features. (#51)
Kees Nuyt [ Mi, 10 Oktober 2007 11:21 ] [ ID #1841202 ]
Webserver » alt.apache.configuration » PHP error in module mode and not in cgi mode

Vorheriges Thema: mod_rewrite help
Nächstes Thema: Japan japanes girls getting fucked free japanes harcore sex pictures