Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to Linux, just installed Fedora 13 and am trying to teach myself LAMP. I installed the Bluefish editor and when I try to save the file, I receive the following error:

Could not save file script1.php Error opening file '/var/www/html/script1.php': Permission denied

Any help is appreciated.

share|improve this question
up vote 0 down vote accepted

You probably just need to give your user write permissions to the /var/www/html directory. You could do this on a file by file basis, but if you're the only one modifying the files then the easiest way is make yourself the owner of the directory.

share|improve this answer
Thank you. For my edification, would I need to change the permissions for each directory, e.g. '/var', '/var/www',... or just the last one? I guess I am asking what the best practice is. Thanks again. – winarm Sep 11 '10 at 14:23
Not sure what the "best" practice is, but for me this works: chown -R myuserid /var/www/html If you've got multiple userids with data under html then you'll need to go down to the first directory for which you have personal ownership. – hotei Sep 11 '10 at 20:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.