Post Cover

Installing Nginx with PHP the Easiest way on Ubuntu in less than 2 minutes

Most people give up when they are daunted with a lengthy documentation on how to install some of these technologies. After installing your ubuntu Server, copy and paste the following commands and you are done.

1 apt-get update
2 sudo apt-get install nginx php7.0-cli php7.0-cgi php7.0-fpm php-mysql
3 nano /etc/nginx/sites-available/default (and uncomment PHP filtering)
4 service nginx restart

Put your site files in /var/www/html/
and your site is up


Oct 22,2017 at 06:04 am

How about virtual hosts with nginx ?