Question

Installed LEMP with ubuntu 14.04. But, now what?

Posted December 17, 2014 3.2k views

Installed LEMP with ubuntu 14.04. There’s no ‘html’ or 'www’ folder in 'var’ folder like I see in other people’s droplet as example. How can I start uploading my website to the server?

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.

×
3 answers

Hello,
NGINX has as document root the folder /usr/share/nginx/html/. To change your folder edit /etc/nginx/sites-available/default and set root to /var/www/html. I think you will need to create by your self the folder with sudo mkdir -p /var/www/html

I made the folder, but now ssh account can’t upload to the server.

Error Directory /var/www: permission denied

Installed LEMP with ubuntu 14.04.
Created the /var/www folder
Allow my ssh user to write to /var/www
Uploaded everything, but now I’m getting 403 Forbidden

Submit an Answer