You are here: Re: phpinfo issue !! « All PHP « IT news, forums, messages
Re: phpinfo issue !!

Posted by Jerry Stuckle on 01/21/08 13:15

Bucker wrote:
> On Jan 20, 2:47 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> Bucker wrote:
>>> On Jan 15, 11:55 am, "Steve" <no....@example.com> wrote:
>>>> "Aaron Saray" <102degr...@102degrees.com> wrote in message
>>>> news:7f94ec6f-21d8-493b-bc18-6f31050c627c@q39g2000hsf.googlegroups.com...
>>>>> On Jan 12, 12:30 pm, Jez <jerryyang_...@yahoo.com> 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 :
>>>>>> <?php
>>>>>> 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_<computer name>- 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
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация