Moved Site - Now cannot protect folders

Discussion in 'Troubleshooting' started by pascalevdb, Jan 8, 2009.

  1. pascalevdb

    pascalevdb Member

    Joined:
    May 30, 2007
    Messages:
    41
    We moved our site to another server and now when we try to protect a folder we get this set of errors:

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


    Protect Folder
    Cannot open file /var/www/vhosts/workoutsondemand.com/httpdocs/PROMOTION_ONE//.htaccess for write

    ------------------------------------------------------

    Can anyone help please! All my members are calling me non stop!!!
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Does the directory already have a .htacess file in it? Try deleting it and then protecting again. Or try setting the directory to chmod 777, then set back to 666 or 755 when done.

    David
  3. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    also, are you trying to modify an existing protected folder? The path stored in the database probably points to the path from your old server.

    You may be better off deleting the protection entry and recreating.

Share This Page