English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

The error that I get is:
'chmod: failed to get attributes of 'www':No such file or directory'.Plz help.
I want to set write permission bacause of the following:

I have got Apache working in linux platform.I am getting the appropriate page on localhost.But I cannot save a file to /var/www/html because I am told: Could not save the file "/var/www/html/first.php".

2006-08-22 23:41:34 · 5 answers · asked by aspirant 1 in Computers & Internet Programming & Design

5 answers

hi friend,

It seems the commnd that you are running is ok.

you need to run this commnd from the directory var to change the permission of the file or otherwise you should sepcify the complete path of the directory from root.

like chmod 775 /root/.../var/www if you are ruuning the command from outside.

goto directory var from there ececute the command that were executing it will work fine.

2006-08-22 23:59:46 · answer #1 · answered by hrushi 2 · 0 0

This means that the www folder can not be found, I've got two tips for you:
1) Make sure you're in the right folder
2) You might want to do recursive to get everything under it


The EXACT command I would use is:
chmod --recursive 775 /var/www

2006-08-22 23:50:04 · answer #2 · answered by cc c 2 · 0 0

instead of adjusting permissions by way of an octal variety, you're able to do it like this: chmod o+r filename "o" right here skill "different" or every physique else. Others are "u" for the report proprietor and "g" for the gang proprietor. Examples: chmod u+rw filename: gadgets the examine and write bits for the report's proprietor. chmod bypass-x filename: eliminates the execute bit for the gang proprietor and all and sundry else. There are greater strategies as nicely those that I won't bypass into right here, such because of the fact the sticky bit and the setuid and setgid bits. you may style "guy chmod" to get greater data, or look up greater strategies approximately chmod on google. solid success!

2016-12-11 13:40:46 · answer #3 · answered by ? 4 · 0 0

Are you root on the linux box when you are trying to execute the command?

2006-08-22 23:49:42 · answer #4 · answered by Anonymous · 0 0

aspirant here mate your link

http://www.google.co.uk/search?hl=en&q=chmod+to+775+to+get+permission+for+writing&btnG=Search&meta=

2006-08-22 23:47:28 · answer #5 · answered by Joe_Young 6 · 0 0

fedest.com, questions and answers