#1 2006-07-17 03:00:02

oldtime
New member
Ranking
Registered: 2006-07-17
Posts: 5
Reputation :  [+ 0/ -0 ]
Expertise

Chmod with Apache on Windows

Hey guys I am running apache http server on windows and I need a little help. Im familiar with CHmodding with linux systems but how do you CHMOD or do the CHMOD equilivent on windows. more specifically with APACHE web servers. Get what im saying.. thanks


Like i said right now my site is being hosted on a linux machine. I can change CHMOD with FTP.. With the types of scripts im using.. CHMODDING is pretty essential. I dont really want people to just index all my folders. u know so 777 isnt gona work. I was hoping there was like some software i could get to work with apache to change that.. How exactly would u set folder/file permissions with windows you know?

Last edited by oldtime (2006-07-17 03:01:16)

Offline

 

#2 2006-07-18 04:06:17

G-Stress
New member
Ranking
Registered: 2006-07-18
Posts: 1
Reputation :  [+ 0/ -0 ]
Expertise

Re: Chmod with Apache on Windows

Hi guys, I'm havin a bit of a problem as well with Apache and I guess file permissions since I'm running windows. What I've done is installed Apache 2.0.55 and php 5.1.4. For Apache I created a directory on my C:\ partition (C:\myserver) to host the files for my web server.

The problem I'm having is on my index.htm page when trying to authenticate a username & password log in I get the following Not Found error:

The requested URL /php/php.exe/save.php was not found on this server.

After installing php it installed to C:\php so I have the files php.exe and save.php both in C:\php and my web server directory C:\myserver. I was told to chmod to 777, but I'm not sure how to do such a thing as I'm just now starting php. Then I stumbled across this post and saw the add permissions for "IUSR_MACHINE". I made that change on 3 different files and the problem still persists. I was told to make the change for a text file that will store the usernames and passwords. I tried that with the same result, then I added the permissions to save.php and php.exe and I still get the same error.

I would really appreciate it if someone could lead me in the right direction to correcting my problem.

Offline

 

#3 2006-07-20 05:39:19

Carnix
New member
Ranking
Registered: 2006-07-20
Posts: 2
Reputation :  [+ 0/ -0 ]
Expertise

Re: Chmod with Apache on Windows

You right click on the file, select properties, the the security tab, then pick the users or groups that have permissions, and what those permissions are. 777 is the same as Full Control. 755 would, I think, be Read/Write/Modify. But it's a misnomer, because that unix convention doesn't really translate to Windows the same way. The Anon user that IIS impersonates for every non-authenticated web session is IUSER_MachineName (if you're machine is named XIN, as my home system is, then it would be IUSER_XIN)

In general, the IUSER should only have Read Only permissions set. In rare cases, you can give the IUSER higher permissions.

However. The 755 convention also incorprorates whether the user can execute scripts. Windows doesn't do it that way. You set that in the IIS website admin panel instead. There's a dropdown under, I think, the Home Directory tab, that lest you select Script Access (or something) from None, Scripts Only, or Scripts and Executables. If you're doing CGI, you must select the last one. If you install PHP on IIS, it runs as CGI, so... there you go.

Perl CGI runs like crap (in my opinion) on windows, and it's a pain to install and configure... it was for me anyway, although it's been years since I tried. PHP works fine though.. I suggest you ditch Perl CGI unless you have absolutly no other choice.

Offline

 

Board footer

OPML feedsRSS feeds



Powered by WWWThreads Forum
© Copyright 2006, WWWThreads