Question
Unable to install Wordpress on Ubuntu 15.04
Okay, so the title is a little misleading.
I have fully installed WP on my server, but when I try to connect to it, it just downloads the index.php file, and doesn’t actually run the website. I have ensured that it is executable.
server {
listen 80 default_server; ## listen for ipv4; this line is default and implied
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6
root /var/www/html;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.php?q=$uri&$args;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
This is the only thing I have changed, the rest is default nginx config.
One thing at a time, I’ll be asking further questions soon.
P.S. there is no errors in the log.
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.
×