seting permissions in windows server

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

seting permissions in windows server

Post 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
Attachments
permit.JPG
permit.JPG (41.24 KiB) Viewed 5012 times
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: seting permissions in windows server

Post 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.
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

Re: seting permissions in windows server

Post 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
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: seting permissions in windows server

Post by Doug G »

What webserver are you using? Do you know that the webserver supports php?
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: seting permissions in windows server

Post by papa »

If you use IIS it's easy to set permissions for that site in properties.
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

Re: seting permissions in windows server

Post 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
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: seting permissions in windows server

Post 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.
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

Re: seting permissions in windows server

Post by m2babaey »

If you could find a good tutorial, I would extremely appreciate it
Thank you
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: seting permissions in windows server

Post by papa »

This is the one i used:
Tutorial

Otherwise, Google: php install with iis

And depending on your version.
Post Reply