Question

404 Error with existing files

  • Posted June 26, 2013

Hi, I just start a new server and had installed LAMP and Proftpd on UBUNTU, I do some test and work great but now I can’t view any page on my server; it always give me the 404 Not Found error even when the files exist on the server.

What I’ve to do?

Subscribe
Share

Same issue here. And cannot solve it =/

Already tried https://www.digitalocean.com/community/questions/ubuntu-14-04-apt-get-update-404-not-found-issue with kakeiso97’ comment. But no change.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Awesome, glad you got it working @csmatar! :]

Thanks you for help me @Kamal Nasser, I solve the problem with: sudo chown -R username:username /var/www. <br> <br>DO is great!

Ok, the problem is that Proftpd upload the files to Home>USER and dont let me upload to var>www because the USER I using have no Permission. But how can I add the USER to the same group that owns /var/www and then setting /var/www to group writeable?

“even when the files exist on the server.” <br> <br>Are you sure the files exist? They don’t seem to exist in /var/www - please make sure they exist.

This is the error.log: <br> <br>[Thu Jun 27 01:00:19 2013] [error] [client 186.6.217.38] File does not exist: /var/www/om.html <br>[Thu Jun 27 02:03:09 2013] [error] [client 173.199.114.51] script ‘/var/www/login.php’ not found or unable to stat <br>[Thu Jun 27 02:14:04 2013] [error] [client 173.199.114.51] script ‘/var/www/service.php’ not found or unable to stat <br>[Thu Jun 27 08:46:57 2013] [error] [client 173.199.114.51] script ‘/var/www/login.php’ not found or unable to stat <br>[Thu Jun 27 13:57:59 2013] [error] [client 190.166.47.185] File does not exist: /var/www/favicon.ico <br>[Thu Jun 27 13:58:06 2013] [error] [client 190.166.47.185] File does not exist: /var/www/om.html <br>[Thu Jun 27 13:58:06 2013] [error] [client 190.166.47.185] File does not exist: /var/www/om.html <br>[Thu Jun 27 13:58:07 2013] [error] [client 190.166.47.185] File does not exist: /var/www/favicon.ico <br>[Thu Jun 27 14:22:59 2013] [error] [client 173.199.114.51] script ‘/var/www/mystery.php’ not found or unable to stat <br>[Thu Jun 27 14:25:40 2013] [error] [client 42.156.138.62] File does not exist: /var/www/users

Check Apache’s error logs: “tail /var/log/apache2/error.log” - do you see any errors there?