Hello group!
I'm having a problem and I hope some of you may be able to point me in the
right direction.
I inherited a web site using php, running on Windows 2000 & IIS. The site
was developed by a consulting firm about a year before I came on board, the
consultant has since gone out of business. Overall, I've never had a
problem with the site and have been able to figure out nearly everything
they configured on it.
The server with the site is getting old, so I'm trying to migrate it to a
new box. I've configured the new box to be identical to the old one - in
terms of partition layout, directory structure, NTFS users / groups & NTFS
permissions, php.ini, etc. I have php installed with IIS & it is working
properly. All aspects of the site work, except for one. We have a feature
that allows users to log in to a file manager & edit existing pages. When I
try to edit one of thes pages, I get an fopen error, complaining that
permission is denied.
To reach this file manager, the users log in twice. They first log in using
a web-based form, which pulls their user details from MySQL. To reach the
file manager itself, they have to enter a username / password using basic
IIS authentication (the pop-up box). The username / password they use to
access the file manager is a local account on the web server.
The user they are logging in as has full NTFS permission on the web root.
When they attempt to edit a file, the php script is supposed to create a
temp "lock" file in the current directory. When the script attempt to
create this temp file, the "permission denied" error is generated.
If I set the Everyone group to have write permission on the web root, the
problem goes away. Obviously, I don't want to do this. This was not needed
on the old server.
My question, seeing as my users / permissions / etc on the new machine match
what I have on the old machine, why would I be having this "permission
denied" error. What user would php try to create the file as??
The files, as well as the directories, in question here have the proper
permissions set - at least they match what I have on the old server.
Doing a phpinfo(); on the old server & new server shows identical values for
temp files, etc etc.
What could I be missing here?
Thanks a bunch!
(reply to group only please)
I'm having a problem and I hope some of you may be able to point me in the
right direction.
I inherited a web site using php, running on Windows 2000 & IIS. The site
was developed by a consulting firm about a year before I came on board, the
consultant has since gone out of business. Overall, I've never had a
problem with the site and have been able to figure out nearly everything
they configured on it.
The server with the site is getting old, so I'm trying to migrate it to a
new box. I've configured the new box to be identical to the old one - in
terms of partition layout, directory structure, NTFS users / groups & NTFS
permissions, php.ini, etc. I have php installed with IIS & it is working
properly. All aspects of the site work, except for one. We have a feature
that allows users to log in to a file manager & edit existing pages. When I
try to edit one of thes pages, I get an fopen error, complaining that
permission is denied.
To reach this file manager, the users log in twice. They first log in using
a web-based form, which pulls their user details from MySQL. To reach the
file manager itself, they have to enter a username / password using basic
IIS authentication (the pop-up box). The username / password they use to
access the file manager is a local account on the web server.
The user they are logging in as has full NTFS permission on the web root.
When they attempt to edit a file, the php script is supposed to create a
temp "lock" file in the current directory. When the script attempt to
create this temp file, the "permission denied" error is generated.
If I set the Everyone group to have write permission on the web root, the
problem goes away. Obviously, I don't want to do this. This was not needed
on the old server.
My question, seeing as my users / permissions / etc on the new machine match
what I have on the old machine, why would I be having this "permission
denied" error. What user would php try to create the file as??
The files, as well as the directories, in question here have the proper
permissions set - at least they match what I have on the old server.
Doing a phpinfo(); on the old server & new server shows identical values for
temp files, etc etc.
What could I be missing here?
Thanks a bunch!
(reply to group only please)
Comment