![]() |
| Home | Apache | PHP | Ubuntu | MySQL | Linux | HTML | Win | CSS | Perl | Javascript | Rants | Retro |
|
||
| Unable to upload via ssh and ftp Then read: https://help.ubuntu.com/community/FilePermissions This will teach you how to interpret the drwxr-xr-x sequence you see next to www. Note that it's NOT a good idea to make you www directory world writable for security reasons. You will probably need to opload the files here as the user which owns /var/www or as root and than finish by giving the user www-data the permissions to read these file and folders. Which user do you use to log in over ftp? I hope it's a normal user and not root? Suppose the user's name is john. Over ssh while being in /var/www: Code: sudo mkdir website sudo chown john website This makes john owner of the website dir and you can upload files here. After uploading you can give ownership to Apache (user www-data): Code: sudo chown www-data -vR /var/www/website And check permissions to see none of the files are world writable, because that's generally a bad thing. Good luck with your server! |