Results 1 to 7 of 7

Thread: How to chmod files on IIS?

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2003
    Location
    Sweden
    Posts
    53

    Question How to chmod files on IIS?

    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.
    You are reading my signature! :-)

    My WIP site

    Three Great bands:
    Beseech
    Meshuggah
    Opeth

  2. #2
    New Member
    Join Date
    Jan 2004
    Posts
    13
    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/ .

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2003
    Location
    Sweden
    Posts
    53
    I downloaded Apache 2.0.48 two days ago so try that one first.
    If not working i try the one you recommend.
    You are reading my signature! :-)

    My WIP site

    Three Great bands:
    Beseech
    Meshuggah
    Opeth

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    chmod = unix server, not a windows server. I think you have to change the file permissions manually on a windows server. Not sure, though.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5

    Thread Starter
    Member
    Join Date
    Jun 2003
    Location
    Sweden
    Posts
    53
    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...
    You are reading my signature! :-)

    My WIP site

    Three Great bands:
    Beseech
    Meshuggah
    Opeth

  6. #6
    Frenzied Member numtel's Avatar
    Join Date
    Apr 2000
    Location
    CA
    Posts
    1,163
    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.

  7. #7
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    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.
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width