I deleted the file “default” in that directory /etc/nginx/sites-available and create a new file with the name of my site, but I think the information are incomplete now, because when I access my site in php I get download the site, don’t show the page!
How I fix it?
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
Did you set up nginx to pass php files to php5-fpm? There should be something like this in your nginx virtualhost’s config:
If not, install php5-fpm and add the
location {}
block inside theserver {}
block and restart Nginx.