Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.