Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.