Permissions in Bluefish HTML editor

0

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.

winarm

Posted 2010-09-11T13:45:41.113

Reputation: 189

Answers

0

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.

hotei

Posted 2010-09-11T13:45:41.113

Reputation: 3 645

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 – 2010-09-11T14:23:52.650

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 – 2010-09-11T20:13:52.253