not able to protect folders via new_rewrite

Discussion in 'Setting-up protection' started by pascalevdb, Oct 19, 2011.

  1. pascalevdb

    pascalevdb Member

    Joined:
    May 30, 2007
    Messages:
    41
    hi,

    Im trying to protect a new folder and am getting the following error message:

    WARNING: fopen(\Inetpub\vhosts\workoutsondemand.com\httpdocs\WORKOUTS_ON_TV\/.htaccess) [function.fopen]: failed to open stream: Permission denied in line 149 of file protection_methods.inc.php

    Cannot open file \Inetpub\vhosts\workoutsondemand.com\httpdocs\WORKOUTS_ON_TV\/.htaccess for write

    Thanks in advance for your help.
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Did you try changing chmod to 777 before protecting?

    David
  3. pascalevdb

    pascalevdb Member

    Joined:
    May 30, 2007
    Messages:
    41
    yes, the permissions are set up correctly -- any ideas?
    FYI - I use a Windows server - and to make the htaccess work I use IIS Mod-Rewrite

    thanks!
  4. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    1. Double check both the permissions (CHMOD 777) AND the owner (CHOWN) of the .htaccess file. You can try renaming it to let aMember create a new one.

    2. Something odd that jumps out to me is the path and the \/ at the end before .htaccess.

    \Inetpub\vhosts\workoutsondemand.com\httpdocs\WORK OUTS_ON_TV\/.htaccess

    3. Oh, IIS.. can probably disregard #1 and #2 above :)

Share This Page