0

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

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
  • 1
    To automate this you can use set group permissions on /val/www. Make sure that /var/www has group ownership by the web-server. Then chgrp -R web-owner /var/www && chmod -R g+s /var/www where web-owner is what ever it was before. – ctrl-alt-delor Jun 10 '14 at 17:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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