Re: [PHP-DB] OCI8 , PHP and APACHE issue
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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> >>> >>> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> >>> >> 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 >> > > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] OCI8 , PHP and APACHE issue
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:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> >> >> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> >> >> 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 > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> >> >> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> >> >> 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 > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] OCI8 , PHP and APACHE issue
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 <[EMAIL PROTECTED]> > 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> > 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
Re: [PHP-DB] OCI8 , PHP and APACHE issue
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] OCI8 , PHP and APACHE issue
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 phpinfo() PHP Version => 5.2.6 System => Windows NT D1LTYW1S 5.1 build 2600 Build Date => May 2 2008 18:01:20 Configure Command => cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" "--with-extra-includes=C:\Program Files (x86)\Microsoft SDK\Include;C:\PROGRA~2\MICROS~2\VC98\ATL\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\MFC\INCLUDE" "--with-extra-libs=C:\Program Files (x86)\Microsoft SDK\Lib;C:\PROGRA~2\MICROS~2\VC98\LIB;C:\PROGRA~2\MICROS~2\VC98\MFC\LIB" Server API => Command Line Interface Virtual Directory Support => enabled Configuration File (php.ini) Path => C:\WINDOWS Loaded Configuration File => C:\PHP\php.ini PHP API => 20041225 PHP Extension => 20060613 Zend Extension => 220060519 Debug Build => no Thread Safety => enabled Zend Memory Manager => enabled IPv6 Support => enabled Registered PHP Streams => php, file, data, http, ftp, compress.zlib Registered Stream Socket Transports => tcp, udp Registered Stream Filters => convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.* This program makes use of the Zend Scripting Language Engine: Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies ___ Configuration PHP Core Directive => Local Value => Master Value allow_call_time_pass_reference => Off => Off allow_url_fopen => On => On allow_url_include => Off => Off always_populate_raw_post_data => Off => Off arg_separator.input => & => & arg_separator.output => & => & asp_tags => Off => Off auto_append_file => no value => no value auto_globals_jit => On => On auto_prepend_file => no value => no value browscap => no value => no value default_charset => no value => no value default_mimetype => text/html => text/html define_syslog_variables => Off => Off disable_classes => no value => no value disable_functions => no value => no value display_errors => STDOUT => STDOUT display_startup_errors => Off => Off doc_root => no value => no value docref_ext => no value => no value docref_root => no value => no value enable_dl => On => On error_append_string => no value => no value error_log => no value => no value error_prepend_string => no value => no value error_reporting => 0 => 0 expose_php => On => On extension_dir => ./ext/ => ./ext/ file_uploads => On => On highlight.bg => #FF => #FF highlight.comment => #FF8000 => #FF8000 highlight.default => #BB => #BB highlight.html => #00 => #00 highlight.keyword => #007700 => #007700 highlight.string => #DD => #DD html_errors => Off => Off ignore_repeated_errors => Off => Off ignore_repeated_source => Off => Off ignore_user_abort => Off => Off implicit_flush => On => On include_path => .;C:\php5\pear => .;C:\php5\pear log_errors => On => On log_errors_max_len => 1024 => 1024 magic_quotes_gpc => Off => Off magic_quotes_runtime => Off => Off magic_quotes_sybase => Off => Off mail.force_extra_parameters => no value => no value max_execution_time => 0 => 0 max_input_nesting_level => 64 => 64 max_input_time => -1 => -1 memory_limit => 128M => 128M open_basedir => no value => no value output_buffering => 0 => 0 output_handler => no value => no value post_max_size => 8M => 8M precision => 14 => 14 realpath_cache_size => 16K => 16K realpath_cache_ttl => 120 => 120 register_argc_argv => On => On register_globals => Off => Off register_long_arrays => Off => Off report_memleaks => On => On report_zend_debug => Off => Off safe_mode => Off => Off safe_mode_exec_dir
Re: [PHP-DB] OCI8 , PHP and APACHE issue
at home now, will log on maybe later and get these Thanks so far 2008/9/1 Evert Lammerts <[EMAIL PROTECTED]> > 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 <[EMAIL PROTECTED]> 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
Re: [PHP-DB] OCI8 , PHP and APACHE issue
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 <[EMAIL PROTECTED]> 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 > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php