Closed Thread
Results 1 to 6 of 6

Thread: Lost write access to .htaccess

  1. #1
    soulflare3 is offline x10Hosting Member soulflare3 is an unknown quantity at this point
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    41

    Lost write access to .htaccess

    I can no longer modify entries in my .htaccess file.
    cPanel says unable to write to .htaccess when I try to modify it, and it won't let me fix it via FTP. Is there any way someone could fix this for me?

  2. #2
    CWeb Creative's Avatar
    CWeb Creative is offline x10 Lieutenant CWeb Creative is an unknown quantity at this point
    Join Date
    Dec 2009
    Location
    *nix
    Posts
    321

    Re: Lost write access to .htaccess

    Make sure you have given yourself write permissions to the file in cpanel filemanager (eg. user has the write box checked)
    If you feel my post is useful in any way then please click on to give me Reputation! Its Key!
    Remember to read all of my post and ask coherent questions.
    Check out my Website (Still A Work in Progress)
    X10 Links: TOS Wiki IRC

  3. #3
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: Lost write access to .htaccess

    .htaccess should be 0644
    public_html should be 0755 and type publichtml

    Sometimes the Legacy File Manager will work when the newer File Manager does not. No idea why.

    Also, via FTP, check the owner of both public_html and .htaccess. public_html should be XXXX/99 where XXXX will be your id (don't worry). .htaccess should be XXXX/YYYY with the same for all your other files. The XXXX should be the same as for public_html. YYYY should not be 99.
    Nothing is always absolutely so.

  4. #4
    soulflare3 is offline x10Hosting Member soulflare3 is an unknown quantity at this point
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    41

    Re: Lost write access to .htaccess

    Quote Originally Posted by CWeb Creative View Post
    Make sure you have given yourself write permissions to the file in cpanel filemanager (eg. user has the write box checked)
    This has not changed :/ It has been checked the whole time. I don't normally modify permissions of files, so whatever they are *should* stay the same.

    Quote Originally Posted by descalzo View Post
    .htaccess should be 0644
    public_html should be 0755 and type publichtml

    Sometimes the Legacy File Manager will work when the newer File Manager does not. No idea why.

    Also, via FTP, check the owner of both public_html and .htaccess. public_html should be XXXX/99 where XXXX will be your id (don't worry). .htaccess should be XXXX/YYYY with the same for all your other files. The XXXX should be the same as for public_html. YYYY should not be 99.
    Before changing anything, perms are as follows:
    .htaccess 644
    public_html 750

    I changed public_html to 755, but I am still having the error. I checked the owner of public_html, and see my ID/99, but when I check the owner for .htaccess within public_html it says 0/0? I do not have a way to change it to my ID via Filezilla or cPanel. :/ Any Ideas?
    Hey there!
    x10Hosting member for 2 years :D

  5. #5
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: Lost write access to .htaccess

    1. Make a copy (cut/paste) of the contents of .htaccess
    2. Change permissions on public_html to 777
    3. Try to delete .htaccess. FTP, FileManager, and/or Legacy File Manager
    4. Create new .htaccess
    5. Change permissions on public_html bact to 750
    Nothing is always absolutely so.

  6. #6
    soulflare3 is offline x10Hosting Member soulflare3 is an unknown quantity at this point
    Join Date
    Apr 2010
    Location
    North Carolina
    Posts
    41

    Re: Lost write access to .htaccess

    Thank you so much! It worked perfectly and I can now manage it from cPanel again
    Closing topic and added rep ;)

    Thanks again
    Hey there!
    x10Hosting member for 2 years :D

Closed Thread

Similar Threads

  1. Cannot Create or edit File (No write access)
    By shahalpk82 in forum Free Hosting
    Replies: 0
    Last Post: 04-06-2011, 09:14 AM
  2. Cronjob Need write Access
    By andyedwardsa20 in forum Free Hosting
    Replies: 5
    Last Post: 08-05-2010, 05:02 AM
  3. Chopin: Lost Data in .htaccess during upgrade
    By techairlines in forum Free Hosting
    Replies: 1
    Last Post: 01-18-2010, 08:18 AM
  4. http access and php read/write permissions.... one question !!
    By careerbridge in forum Scripts & 3rd Party Apps
    Replies: 8
    Last Post: 06-18-2006, 07:35 AM
  5. lost htaccess
    By d30john in forum Free Hosting
    Replies: 4
    Last Post: 11-02-2005, 08:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers