Page 1 of 1

Basic question on IUSER_MACHINENAME permissions

Posted: Mon Feb 06, 2006 10:14 pm
by bluerattle
I have been using PHP for a while on Apple OS X / Apache, but now
I am installing it on a new Windows XP notebook. So far it's all installed
but I am getting Error 404 when I try to open a PHP file on localrot.

I think it may be a permission problem. I figure I need to give
IUSR_MACHINENAME permission to read (and execute) certain
files, like php.ini.

I have IIS 5.1 (and PHP 5). I'm stuck on how one sets permissions
for IUSR_MACHINENAME on these files (which are outside the
wwwroot hierarchy, by the way). I've searched for explicit instructions
but every source just says to go do it, as though the steps are
obvious. They probably are, but not to me as yet.

thanx,
br

Posted: Mon Feb 06, 2006 10:17 pm
by feyd

Thanks

Posted: Mon Feb 06, 2006 10:50 pm
by bluerattle
Thanks that was helpful. Since my computer was not on a shared domain,
I needed to change folder options to see the Security tab.

I was able to set Read/Execute privileges for IUSR_MACHINENAME for
a number of files, but the .PHP file will won't display (the 404 error
displays instead).

I gave permissions to php.exe, php.ini, and the wwwroot directory. The
instructions I have from php.net also says I need to give permission to
the "session tmp directory". Does someone know what that is?

thanx,
BR

Fixed, now a new question

Posted: Mon Feb 06, 2006 11:04 pm
by bluerattle
I should probably post this in a separate thread, but here goes...

The final problem that prevented my phpinfo.php file from running
was separate from any permission issues I have been trying to fix.

The .php file was continuing to show a 404 error until I moved it
from its location in a "virtual directory" to a physical location in the
the wwwroot folder.

I was hoping to use the virtual directory feature to store my
development in folders outside the wwwroot hierarchy, and link
them in with the IIS Manager's virtual directory tool. Is this
a known limitation with PHP and IIS 5?