After setting up a web server on my pi following the instructions here - http://www.wikihow.com/Make-a-Raspberry-Pi-Web-Server, everything goes fine except for when I view the web server. The test file loaded fine, but when I uploaded my own files via FTP they were not displayed in my browser, although it loaded the link. A blank page would just come up. After trying to create a new HTML file, Apache error 403 appeared on my screen.
(I installed VSFTP)
Any help with written ssh commands would be much appreciated. Thanks.
1 Answer 1
You need to change the permissions of the files you uploaded. Try using this command to make your files accessible:
sudo chmod 755 -R /var/www
-
1To automate this you can use set group permissions on
/val/www
. Make sure that /var/www has group ownership by the web-server. Thenchgrp -R web-owner /var/www && chmod -R g+s /var/www
whereweb-owner
is what ever it was before.ctrl-alt-delor– ctrl-alt-delor2014年06月10日 17:39:35 +00:00Commented Jun 10, 2014 at 17:39