Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
-1
rated 0 times [  -1] [ 0]  / answers: 1 / hits: 59943  / 1 Year ago, wed, may 3, 2023, 1:57:44

Possible Duplicate:

How to avoid using sudo when working in /var/www?






I have install PHP from this article on my ubuntu computer



http://www.howtogeek.com/howto/ubuntu/installing-php5-and-apache-on-ubuntu/



now when I tried to save a simply php file I am unable to do that. I have no access to that folder var/www



$ chmod +x /var



chmod: changing permissions of `/var': Operation not permitted



I am not sure what this command do. can someone let me know how to get it worked then I can save file from any software I use.



I just have install php and it's work fine and this post is about giving 'var/www' permission that I can save the file their.



Thanks






Now after a restart my computer I got my permission worked.


More From » 12.04

 Answers
3

The folder /var/www needs root permission to change its rights. Why not try:



sudo chmod +x /var


If that is not working for you, then try to modify only the www folder which seems to be of special interest to you, like this:



sudo chmod 777 /var/www


Hope that helped.


[#36047] Friday, May 5, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
atchcommo

Total Points: 114
Total Questions: 130
Total Answers: 101

Location: Cook Islands
Member since Sat, Oct 16, 2021
3 Years ago
atchcommo questions
Fri, May 13, 22, 08:22, 2 Years ago
Wed, Mar 9, 22, 20:14, 2 Years ago
;