HI , I setting up LEMP on Ubuntu 14.04 by using this tutorial , https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-14-04
I am also hosting 2 domain name on a single droplet . I have successfully setup Nginx virtual host .
Any idea why does info.php download rather than opening. Can you guys guide me on how to troubleshoot the issue .
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi Joss! <br> <br>Could you post your Nginx configuration? The location block should look something like: <br> <br><pre> <br> location ~ .php$ { <br> try_files $uri =404; <br> fastcgi_split_path_info ^(.+.php)(/.+)$; <br> fastcgi_pass unix:/var/run/php5-fpm.sock; <br> fastcgi_index index.php; <br> include fastcgi_params; <br> } <br></pre> <br> <br>
HI Andrew ,
<br>please see below my Ngix configuration .
<br>
<br># pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
<br> #
<br> #location ~ .php$ {
<br> # fastcgi_split_path_info ^(.+.php)(/.+)$;
<br> # # NOTE: You should have “cgi.fix_pathinfo = 0;” in php.ini
<br> #
<br> try_files $uri =404;
<br> # # With php5-cgi alone:
<br> # fastcgi_pass 127.0.0.1:9000;
<br> # # With php5-fpm:
<br> # fastcgi_pass unix:/var/run/php5-fpm.sock;
<br> # fastcgi_index index.php;
<br> # include fastcgi_params;
<br>
<br>is it correct ? looks the same to me , I am not sure . What do you think Andrew.
You need to uncomment the lines, as in delete the <strong>#</strong> at the beginning of each line. So it should look like this: <br><pre>#pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 <br> <br>location ~ .php$ { <br> fastcgi_split_path_info ^(.+.php)(/.+)$; <br> # NOTE: You should have “cgi.fix_pathinfo = 0;” in php.ini <br> <br> try_files $uri =404; <br> # With php5-cgi alone: <br> fastcgi_pass 127.0.0.1:9000; <br> # With php5-fpm: <br> fastcgi_pass unix:/var/run/php5-fpm.sock; <br> fastcgi_index index.php; <br> include fastcgi_params; <br>}</pre>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.