diff --git a/Nginx-Configuration.asciidoc b/Nginx-Configuration.asciidoc index 1e661c0..68a61cd 100644 --- a/Nginx-Configuration.asciidoc +++ b/Nginx-Configuration.asciidoc @@ -1,9 +1,11 @@ -. `service lighttpd stop` #stop default lighttpd +*NOTE: This guide is currently not working* + +. `service lighttpd stop` #stop default lighttpd . `apt-get -y install nginx php5-fpm apache2-utils` #install necessary packages . `systemctl disable lighttpd` #disable lighttpd at startup . `systemctl enable php5-fpm` #enable php5-fpm at startup . `systemctl enable nginx` #enable nginx at startup -. edit `/etc/nginx/conf.d/default` to: +. edit `/etc/nginx/sites-available/default` to: ``` server { @@ -31,5 +33,7 @@ server { ``` . `htpasswd -c /etc/nginx/.htpasswd exampleuser` #create username for authentication for the admin - we don't want other people in our network change our black and whitelist ;) +. `chown -R www-data:www-data /var/www/html` #change ownership of html directory to nginx user +. `chmod -R 755 /var/www/html` #make sure html directory is writable . `service php5-fpm start` #start php5-fpm daemon . `service nginx start` #start nginx webserver \ No newline at end of file