On top of installing Nginx, you will need to install PHP to make it work. You may also want to install a database server like MariaDB or PostgreSQL to have a full LEMP stack.

sudo ln -s /etc/nginx/sites-available/  /etc/nginx/sites-enabled/

To disable the website, delete the symlink in /etc/nginx/sites-enabled/.

    nginx -t

All the files Nginx access are stored here. You want them to be accessible by Nginx:

sudo chown -R www-data:www-data /var/www
Enter your comment. Wiki syntax is allowed:
If you can't read the letters on the image, download this .wav file to get them read to you.
  • Last modified: 10 months ago
  • by Olivier Simard-Casanova