setting up LEMP with ubuntu 12.04, nginx, mysql, php fastcgi
I am trying to set up a LEMP stack on my linode401891 and to run a wordpress site with domain name mysite.com.
I would also like to run an instance of discourse as a subdomain of mysite.com (forum.mysite.com or something like that).
I've been going back and forth with several startup guides. Everything I've set up so far comes from the following guides (using mysite.com as the domain name):
After more or less completing those guides, I received a 502 bad gateway error, which went away once I removed /etc/nginx/conf.d/discourse.conf. I believe the error may have been because the servername was set to mysite.com for both that configuration (at root /var/www/discourse/publichtml/) and for a configuration at /etc/nginx/sites-avaiable/mysite.com (at root /srv/www/mysite.com/public_html).
Now I am trying to set things up just for /srv/www/mysite.com/public_html.
No matter what I do, I am still presented with a "Welcome to nginx!" page upon trying to visit mysite.com or mysite.com/importbuddy.php and a php file at /usr/share/nginx/www/info.php downloads instead of displaying on my browser
So I started troubleshooting with the following guides:
Still not getting anywhere. I'll provide additional information, but I'm not sure what information would be most useful.
Thanks for any help.