0

I created a test.php file in the required /var/www folder but how do I edit the file ?It says it's only a read only file.Using chmod +rwx <filename> says 'no such file'...Please help .

3
Contributors
5
Replies
6
Views
6 Years
Discussion Span
Last Post by geekme
0

//in terminal
//if you are a sudoer or if you have a root prev
sudo chmod 777 -R /var/www //then enter youre password
//if you cant sudo, then be root
su //enter root password
chmod 777 -R /var/www
of if you are log in as admin, just go to /var right click to www>properties>permission tab> change all to create and delete files

do the same in test file inside www dir

and install php editor if dont have

0

Hey I'm the sudoer but when I type chmod -R/var/www it says '/' is an invalid option.What to do?

0

Add a space after the R. I don't know why you would want -R, but it needs a space after it :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.