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.

asked May 10, 2014 at 17:08

1 Answer 1

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
answered May 10, 2014 at 21:15
1
  • 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. Commented Jun 10, 2014 at 17:39

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.