PDA

Click to See Complete Forum and Search --> : How to chmod files on IIS?


hellisher
Feb 15th, 2004, 12:00 PM
Hi, im totally new to php programming. Im trying to make a simple counter that:
1. Reads number of visists from a file.
2. Increase the number by one.
3. Write to file the new number.

But when im trying to load the "counter.txt" file with "r+", itīs say: Permission denied...

Im have tried to use:
chmod ("counter.txt", 0777);
But then again: "Permission denied".

How can i give permission to modify that textfile?
I donīt belive i got a ftp account to my iis server so connecting with a ftp client is not a option...
Unless someone know who to add ftp support.

tempest1
Feb 15th, 2004, 02:15 PM
Ok first off i see one problem, you are using IIS with php. Bad idea. IIS is a bad idea all together, get apache. Hell get the pre-bundled php/apache package at http://www.firepages.com.au/ .

hellisher
Feb 15th, 2004, 02:47 PM
I downloaded Apache 2.0.48 two days ago so try that one first.
If not working i try the one you recommend.

The Hobo
Feb 15th, 2004, 04:58 PM
chmod = unix server, not a windows server. I think you have to change the file permissions manually on a windows server. Not sure, though.

hellisher
Feb 15th, 2004, 07:20 PM
You can choose properties on files & folders in IIS, and select Write & Read options. But nothing happens if i choose write?!?

tempest1 - The boundle works great.. But can i move the "www" dir too example: "E:\www"?
If answer = Yes Then how?

Didnīt install apache 2.x.xx becuase i read in the php-install.txt that the apache 2 support is experimental so i choose not to use it...

numtel
Mar 2nd, 2004, 09:53 PM
You can easily make the file writable for IIS and PHP in windows using the security tab on the file's properties. Add modify/write access for [servername]\IUSR_[servername]. So for example if your server was called cheese: cheese\IUSER_cheese.

ober0330
Mar 3rd, 2004, 08:57 AM
Originally posted by tempest1
Ok first off i see one problem, you are using IIS with php. Bad idea. IIS is a bad idea all together, get apache. Hell get the pre-bundled php/apache package at http://www.firepages.com.au/ . I know this thread is old but I thought I'd reply to this...

There is nothing wrong with using IIS and PHP. I use it just fine. Granted, I too am an Apache junkie, but my company only supports IIS (go figure). So that's what I use. It's not horrible (except I had a little bit of a problem getting PHP to talk to MS SQL Server, although it was only because a php dll was missing, but still).

Also, I've used the latest 2.x.x.x version of Apache and it works great.