Page 1 of 1
seting permissions in windows server
Posted: Tue Mar 09, 2010 2:14 pm
by m2babaey
Hi
I usually change file and directory permissions from file manager in Cpanel and sometimes by Cuteftp
But this time the host is Windows server 2008. with no Cpanel
I tried changing file permissions for php files (that were causing 500 internal server error) but they didn't change
I connected to the server by remote desktop (it was my first time) and clicked properties for one of php files. In security tab, there seems to be some useful options. I took a snapshot and you see it below
The system is showing 4 group of users:
SYSTEM
IME_ADMIN
Administrators
Users
and you see the permission checkboxes too.
How I should act to set permission 644 for php files and 755 for folders?
thanks for your assistance
Re: seting permissions in windows server
Posted: Tue Mar 09, 2010 8:39 pm
by Doug G
There is no 644 or 755 in windows permissions model, windows uses ACL's to manage permissions. You need to give the windows user account (or group) that's being used by the web server appropriate permissions to files/folders by adding that user or group and choosing the appropriate security items for the user.
If you're using IIS the normal user account for anonymous web users is the IUSR_computername user account.
Re: seting permissions in windows server
Posted: Wed Mar 10, 2010 12:29 am
by m2babaey
Thanks for your response
Can you either provide more and exact details or give me a reference that explains what are "appropriate permissions to files/folders" (for folders and php files) for different user groups?
I have searched ALC and ACL permission management but there seems to be lots of stuff that may not be helpful
and in the picture above you see there are 4 user groups:
System
IME-Admin
Administrators
Users
I should deal with "Users" only, right?
Thanks again
Re: seting permissions in windows server
Posted: Thu Mar 11, 2010 2:29 am
by Doug G
What webserver are you using? Do you know that the webserver supports php?
Re: seting permissions in windows server
Posted: Thu Mar 11, 2010 4:18 am
by papa
If you use IIS it's easy to set permissions for that site in properties.
Re: seting permissions in windows server
Posted: Thu Mar 11, 2010 6:01 am
by m2babaey
yes I am using IIS
And my question is that What are the appropriate permissions to be granted for different user groups in order to get rid of 500 internal server error?
Thanks again
Re: seting permissions in windows server
Posted: Thu Mar 11, 2010 6:13 am
by papa
I set up PHP a couple of months ago, but there's a lot of information regarding setting up PHP for IIS.
Create a specific application pool for it. Allow scripts on the site.
See if I can find the tutorial I used.
Re: seting permissions in windows server
Posted: Thu Mar 11, 2010 6:18 am
by m2babaey
If you could find a good tutorial, I would extremely appreciate it
Thank you
Re: seting permissions in windows server
Posted: Thu Mar 11, 2010 6:46 am
by papa
This is the one i used:
Tutorial
Otherwise, Google: php install with iis
And depending on your version.