Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am new with servers and I started learning about Cloud servers. My server has Debian.

I installed apache, php, and vsftpd and I added users with adduser <user>.

Then I gave permission:

ln -s /var/www www
chown -R <user> /var/www 
chmod -R 755 /var/www**

Now, I logged in through FTP and I went to the directory /var/www where index.html and test.php were. I deleted both files and upload another test.html file. When I try to access it I get:

You don't have permission to access /test.html on this server.

What do I have to do?

share|improve this question

1 Answer 1

You need to modify the permissions on the file so your web server can read it again - you deleted the version with correct permissions.

share|improve this answer
    
No. If I do that, the next file I upload still has permission 600 –  jQuerybeast Dec 17 '11 at 15:46
    
chmod so that "other" users have read access to the file, or change the owner to the server user, and make sure the permissions allow the owner to read the file. –  James McLeod Dec 17 '11 at 17:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.