phpinfo issue !!
am 12.01.2008 19:30:10 von jerryyang_la1
IIS6 - Windows 2003 SP2.
PHP 5.2.5 Manual install using php5isapi.dll
PHP seems to be installed and working OK.
Yet I have a slight issue !!
I've created a page (test.php) with just this in it :
phpinfo();
?>
When run via my browser the php.ini settings are shown as:
Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File (none)
Yet if I launch the test.php page via a command line:
php C:\Inetpub\wwwroot\test.php the php.ini settings are shown as:
Configuration File (php.ini) Path => C:\WINDOWS
Loaded Configuration File => C:\WINDOWS\php.ini
The php.ini is located in C:\Windows
Why the difference ??
Will this cause me any problems ?
Thanks
Re: phpinfo issue !!
am 13.01.2008 02:55:44 von nc
On Jan 12, 10:30 am, Jez wrote:
>
> IIS6 - Windows 2003 SP2.
> PHP 5.2.5 Manual install using php5isapi.dll
>
> PHP seems to be installed and working OK.
>
> Yet I have a slight issue !!
>
> I've created a page (test.php) with just this in it :
>
>
> phpinfo();
> ?>
>
> When run via my browser the php.ini settings are shown as:
>
> Configuration File (php.ini) Path C:\WINDOWS
> Loaded Configuration File (none)
>
> Yet if I launch the test.php page via a command line:
>
> php C:\Inetpub\wwwroot\test.php the php.ini settings are shown as:
>
> Configuration File (php.ini) Path => C:\WINDOWS
> Loaded Configuration File => C:\WINDOWS\php.ini
>
> The php.ini is located in C:\Windows
>
> Why the difference ??
Sounds like a permissions issue. The user on behalf of which IIS is
running does not have read access to C:\WINDOWS...
Cheers,
NC
Re: phpinfo issue !!
am 13.01.2008 16:31:18 von coolsti
On Sat, 12 Jan 2008 10:30:10 -0800, Jez wrote:
> IIS6 - Windows 2003 SP2.
> PHP 5.2.5 Manual install using php5isapi.dll
>
> PHP seems to be installed and working OK.
>
> Yet I have a slight issue !!
>
> I've created a page (test.php) with just this in it :
>
>
> phpinfo();
> ?>
>
> When run via my browser the php.ini settings are shown as:
>
> Configuration File (php.ini) Path C:\WINDOWS
> Loaded Configuration File (none)
>
> Yet if I launch the test.php page via a command line:
>
> php C:\Inetpub\wwwroot\test.php the php.ini settings are shown as:
>
> Configuration File (php.ini) Path => C:\WINDOWS
> Loaded Configuration File => C:\WINDOWS\php.ini
>
> The php.ini is located in C:\Windows
>
> Why the difference ??
> Will this cause me any problems ?
>
> Thanks
I do not know if this will solve your problem but it might. I work with
PHP on Linux, not windows. Recently I had a need to use PHP from the
command line in addition to accessing PHP scripts via the apache server. I
had some difficulties in getting this set up, as it required some things
to be installed which were not installed up to that point.
In all this fiddling about, I found out that for some situations, perhaps
depending on the platform or perhaps the operating machine, by default the
php.ini file which is used by the Command Line Interpreter for PHP is not
the same as the php.ini file used by the apache server.
Perhaps this is also the case on Windows? You might indeed be accessing
two different php.ini files. Or at least your system is expecting there to
be two different ones.
Steve, Denmark
Re: phpinfo issue !!
am 15.01.2008 04:10:03 von Aaron Saray
On Jan 12, 12:30 pm, Jez wrote:
> IIS6 - Windows 2003 SP2.
> PHP 5.2.5 Manual install using php5isapi.dll
>
> PHP seems to be installed and working OK.
>
> Yet I have a slight issue !!
>
> I've created a page (test.php) with just this in it :
>
>
> phpinfo();
> ?>
>
> When run via my browser the php.ini settings are shown as:
>
> Configuration File (php.ini) Path C:\WINDOWS
> Loaded Configuration File (none)
>
> Yet if I launch the test.php page via a command line:
>
> php C:\Inetpub\wwwroot\test.php the php.ini settings are shown as:
>
> Configuration File (php.ini) Path => C:\WINDOWS
> Loaded Configuration File => C:\WINDOWS\php.ini
>
> The php.ini is located in C:\Windows
>
> Why the difference ??
> Will this cause me any problems ?
>
> Thanks
The PHP binary will run as the currently logged in user. The IIS
server should be running as a different user - most likely an IWAM_XXX
user or something. Make sure that they have access to the php.ini
file in the Windows directory - not the entire directory tho! :)
Re: phpinfo issue !!
am 15.01.2008 17:55:29 von Steve
"Aaron Saray" <102degrees@102degrees.com> wrote in message
news:7f94ec6f-21d8-493b-bc18-6f31050c627c@q39g2000hsf.google groups.com...
> On Jan 12, 12:30 pm, Jez wrote:
>> IIS6 - Windows 2003 SP2.
>> PHP 5.2.5 Manual install using php5isapi.dll
>>
>> PHP seems to be installed and working OK.
>>
>> Yet I have a slight issue !!
>>
>> I've created a page (test.php) with just this in it :
>>
>>
>> phpinfo();
>> ?>
>>
>> When run via my browser the php.ini settings are shown as:
>>
>> Configuration File (php.ini) Path C:\WINDOWS
>> Loaded Configuration File (none)
>>
>> Yet if I launch the test.php page via a command line:
>>
>> php C:\Inetpub\wwwroot\test.php the php.ini settings are shown as:
>>
>> Configuration File (php.ini) Path => C:\WINDOWS
>> Loaded Configuration File => C:\WINDOWS\php.ini
>>
>> The php.ini is located in C:\Windows
>>
>> Why the difference ??
>> Will this cause me any problems ?
>>
>> Thanks
>
> The PHP binary will run as the currently logged in user. The IIS
> server should be running as a different user - most likely an IWAM_XXX
> user or something. Make sure that they have access to the php.ini
> file in the Windows directory - not the entire directory tho! :)
IIS by default uses IUSR_
Re: phpinfo issue !!
am 20.01.2008 18:52:56 von Bucker
On Jan 15, 11:55=A0am, "Steve" wrote:
> "Aaron Saray" <102degr...@102degrees.com> wrote in message
>
> news:7f94ec6f-21d8-493b-bc18-6f31050c627c@q39g2000hsf.google groups.com...
>
>
>
>
>
> > On Jan 12, 12:30 pm, Jez wrote:
> >> IIS6 - Windows 2003 SP2.
> >> PHP 5.2.5 Manual install using php5isapi.dll
>
> >> PHP seems to be installed and working OK.
>
> >> Yet I have a slight issue !!
>
> >> I've created a page (test.php) with just this in it :
>
> >>
> >> phpinfo();
> >> ?>
>
> >> When run via my browser the php.ini settings are shown as:
>
> >> Configuration File (php.ini) Path =A0C:\WINDOWS
> >> Loaded Configuration File =A0(none)
>
> >> Yet if I launch the test.php page via a command line:
>
> >> php C:\Inetpub\wwwroot\test.php =A0the php.ini settings are shown as:
>
> >> Configuration File (php.ini) Path =3D> C:\WINDOWS
> >> Loaded Configuration File =3D> C:\WINDOWS\php.ini
>
> >> The php.ini is located in C:\Windows
>
> >> Why the difference ??
> >> Will this cause me any problems ?
>
> >> Thanks
>
> > The PHP binary will run as the currently logged in user. =A0The IIS
> > server should be running as a different user - most likely an IWAM_XXX
> > user or something. =A0Make sure that they have access to the php.ini
> > file in the Windows directory - not the entire directory tho! :)
>
> IIS by default uses IUSR_- Hide quoted text -
>
> - Show quoted text -
On My Windows XP Professional I've tried installing PHP 5.2.5
Default install is OK. Installing in c:\PHP directory.
echo phpinfo(); says loaded configuration file (NONE)
When I copied the php.ini to the windows directory, set the file so
IWAM and IUSR had
god privledges to the file and reboot the system, I get a blank screen
when loading the sample php page with just
a echo phpinfo();
Looks like the interpreter didn't compile the page.
When I remove the php.ini from the windows directory and reboot the
computer, every is OK except the
loaded configuration file (NONE).
Anyone have any ideas.
J
Re: phpinfo issue !!
am 20.01.2008 20:47:32 von Jerry Stuckle
Bucker wrote:
> On Jan 15, 11:55 am, "Steve" wrote:
>> "Aaron Saray" <102degr...@102degrees.com> wrote in message
>>
>> news:7f94ec6f-21d8-493b-bc18-6f31050c627c@q39g2000hsf.google groups.com...
>>
>>
>>
>>
>>
>>> On Jan 12, 12:30 pm, Jez wrote:
>>>> IIS6 - Windows 2003 SP2.
>>>> PHP 5.2.5 Manual install using php5isapi.dll
>>>> PHP seems to be installed and working OK.
>>>> Yet I have a slight issue !!
>>>> I've created a page (test.php) with just this in it :
>>>>
>>>> phpinfo();
>>>> ?>
>>>> When run via my browser the php.ini settings are shown as:
>>>> Configuration File (php.ini) Path C:\WINDOWS
>>>> Loaded Configuration File (none)
>>>> Yet if I launch the test.php page via a command line:
>>>> php C:\Inetpub\wwwroot\test.php the php.ini settings are shown as:
>>>> Configuration File (php.ini) Path => C:\WINDOWS
>>>> Loaded Configuration File => C:\WINDOWS\php.ini
>>>> The php.ini is located in C:\Windows
>>>> Why the difference ??
>>>> Will this cause me any problems ?
>>>> Thanks
>>> The PHP binary will run as the currently logged in user. The IIS
>>> server should be running as a different user - most likely an IWAM_XXX
>>> user or something. Make sure that they have access to the php.ini
>>> file in the Windows directory - not the entire directory tho! :)
>> IIS by default uses IUSR_- Hide quoted text -
>>
>> - Show quoted text -
>
> On My Windows XP Professional I've tried installing PHP 5.2.5
>
> Default install is OK. Installing in c:\PHP directory.
>
> echo phpinfo(); says loaded configuration file (NONE)
>
> When I copied the php.ini to the windows directory, set the file so
> IWAM and IUSR had
> god privledges to the file and reboot the system, I get a blank screen
> when loading the sample php page with just
> a echo phpinfo();
>
> Looks like the interpreter didn't compile the page.
>
> When I remove the php.ini from the windows directory and reboot the
> computer, every is OK except the
> loaded configuration file (NONE).
>
> Anyone have any ideas.
>
> J
>
The IIS user is typically IUSR_(machine_name), not just IUSR.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Re: phpinfo issue !!
am 21.01.2008 13:14:25 von Bucker
On Jan 20, 2:47=A0pm, Jerry Stuckle wrote:
> Bucker wrote:
> > On Jan 15, 11:55 am, "Steve" wrote:
> >> "Aaron Saray" <102degr...@102degrees.com> wrote in message
>
> >>news:7f94ec6f-21d8-493b-bc18-6f31050c627c@q39g2000hsf.goog legroups.com..=
..
>
> >>> On Jan 12, 12:30 pm, Jez wrote:
> >>>> IIS6 - Windows 2003 SP2.
> >>>> PHP 5.2.5 Manual install using php5isapi.dll
> >>>> PHP seems to be installed and working OK.
> >>>> Yet I have a slight issue !!
> >>>> I've created a page (test.php) with just this in it :
> >>>>
> >>>> phpinfo();
> >>>> ?>
> >>>> When run via my browser the php.ini settings are shown as:
> >>>> Configuration File (php.ini) Path =A0C:\WINDOWS
> >>>> Loaded Configuration File =A0(none)
> >>>> Yet if I launch the test.php page via a command line:
> >>>> php C:\Inetpub\wwwroot\test.php =A0the php.ini settings are shown as:=
> >>>> Configuration File (php.ini) Path =3D> C:\WINDOWS
> >>>> Loaded Configuration File =3D> C:\WINDOWS\php.ini
> >>>> The php.ini is located in C:\Windows
> >>>> Why the difference ??
> >>>> Will this cause me any problems ?
> >>>> Thanks
> >>> The PHP binary will run as the currently logged in user. =A0The IIS
> >>> server should be running as a different user - most likely an IWAM_XXX=
> >>> user or something. =A0Make sure that they have access to the php.ini
> >>> file in the Windows directory - not the entire directory tho! :)
> >> IIS by default uses IUSR_- Hide quoted text -
>
> >> - Show quoted text -
>
> > On My Windows XP Professional I've tried installing PHP 5.2.5
>
> > Default install is OK. =A0Installing in c:\PHP directory.
>
> > echo phpinfo(); =A0says loaded configuration file (NONE)
>
> > When I copied the php.ini to the windows directory, set the file so
> > IWAM and IUSR had
> > god privledges to the file and reboot the system, I get a blank screen
> > when loading the sample php page with just
> > a echo phpinfo();
>
> > Looks like the interpreter didn't compile the page.
>
> > When I remove the php.ini from the windows directory and reboot the
> > computer, every is OK except the
> > loaded configuration file (NONE).
>
> > Anyone have any ideas.
>
> > J
>
> The IIS user is typically IUSR_(machine_name), not just IUSR.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================- Hide quoted text -=
>
> - Show quoted text -
I've got the IUSR_(machine_name) and IUSR_(machine_name_account_name),
specified. Doesn't seem to matter.
Tried the PHPRC environmental variable added to the list of system
variables, that doesn't seem to help.
Also added regedit keys to no avail.
Reviewed Error Log files and don't see anything. related to PHP or any
modules.
Any other ideas, I'm desperately monitoring this thread.
Regards,
J
Re: phpinfo issue !!
am 21.01.2008 14:15:54 von Jerry Stuckle
Bucker wrote:
> On Jan 20, 2:47 pm, Jerry Stuckle wrote:
>> Bucker wrote:
>>> On Jan 15, 11:55 am, "Steve" wrote:
>>>> "Aaron Saray" <102degr...@102degrees.com> wrote in message
>>>> news:7f94ec6f-21d8-493b-bc18-6f31050c627c@q39g2000hsf.google groups.com...
>>>>> On Jan 12, 12:30 pm, Jez wrote:
>>>>>> IIS6 - Windows 2003 SP2.
>>>>>> PHP 5.2.5 Manual install using php5isapi.dll
>>>>>> PHP seems to be installed and working OK.
>>>>>> Yet I have a slight issue !!
>>>>>> I've created a page (test.php) with just this in it :
>>>>>>
>>>>>> phpinfo();
>>>>>> ?>
>>>>>> When run via my browser the php.ini settings are shown as:
>>>>>> Configuration File (php.ini) Path C:\WINDOWS
>>>>>> Loaded Configuration File (none)
>>>>>> Yet if I launch the test.php page via a command line:
>>>>>> php C:\Inetpub\wwwroot\test.php the php.ini settings are shown as:
>>>>>> Configuration File (php.ini) Path => C:\WINDOWS
>>>>>> Loaded Configuration File => C:\WINDOWS\php.ini
>>>>>> The php.ini is located in C:\Windows
>>>>>> Why the difference ??
>>>>>> Will this cause me any problems ?
>>>>>> Thanks
>>>>> The PHP binary will run as the currently logged in user. The IIS
>>>>> server should be running as a different user - most likely an IWAM_XXX
>>>>> user or something. Make sure that they have access to the php.ini
>>>>> file in the Windows directory - not the entire directory tho! :)
>>>> IIS by default uses IUSR_- Hide quoted text -
>>>> - Show quoted text -
>>> On My Windows XP Professional I've tried installing PHP 5.2.5
>>> Default install is OK. Installing in c:\PHP directory.
>>> echo phpinfo(); says loaded configuration file (NONE)
>>> When I copied the php.ini to the windows directory, set the file so
>>> IWAM and IUSR had
>>> god privledges to the file and reboot the system, I get a blank screen
>>> when loading the sample php page with just
>>> a echo phpinfo();
>>> Looks like the interpreter didn't compile the page.
>>> When I remove the php.ini from the windows directory and reboot the
>>> computer, every is OK except the
>>> loaded configuration file (NONE).
>>> Anyone have any ideas.
>>> J
>> The IIS user is typically IUSR_(machine_name), not just IUSR.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================- Hide quoted text -
>>
>> - Show quoted text -
>
> I've got the IUSR_(machine_name) and IUSR_(machine_name_account_name),
> specified. Doesn't seem to matter.
> Tried the PHPRC environmental variable added to the list of system
> variables, that doesn't seem to help.
> Also added regedit keys to no avail.
>
> Reviewed Error Log files and don't see anything. related to PHP or any
> modules.
>
> Any other ideas, I'm desperately monitoring this thread.
>
> Regards,
>
> J
>
Well, if it says the config path is c:\windows, then it's looking for
the file in c:\windows.
And if it says there is no configuration file loaded, it means it can't
find the file in the config path. Either the file doesn't exist, the
security is not set properly, or you have a problem with your OS. And I
don't expect it's the OS.
What user for IIS?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================