nginx:centmin PHP downloading install of executing centos 6

November 18, 2016 141 views
Nginx PHP CentOS

So when i go to account.php it loads but when i go to site.com/account it downloads account.php this is my current config please help!

# Centmin Mod Getting Started Guide
# must read http://centminmod.com/getstarted.html

# redirect from non-www to www 
# uncomment, save file and restart Nginx to enable
# if unsure use return 302 before using return 301
#server {
#            listen   80;
#            server_name trinityrsps.com;
#            return 301 $scheme://www.trinityrsps.com$request_uri;
#       }

server {
  server_name trinityrsps.com www.trinityrsps.com;

# ngx_pagespeed & ngx_pagespeed handler
#include /usr/local/nginx/conf/pagespeed.conf;
#include /usr/local/nginx/conf/pagespeedhandler.conf;
#include /usr/local/nginx/conf/pagespeedstatslog.conf;

  # limit_conn limit_per_ip 16;
  # ssi  on;

  access_log /home/nginx/domains/trinityrsps.com/log/access.log combined buffer=256k flush=60m;
  error_log /home/nginx/domains/trinityrsps.com/log/error.log;

  root /home/nginx/domains/trinityrsps.com/public;

  # prevent access to ./directories and files
  location ~ (?:^|/)\. {
   deny all;
  }  

  location / {

# block common exploits, sql injections etc
#include /usr/local/nginx/conf/block.conf;

  # Enables directory listings when index file not found
  #autoindex  on;

  # Shows file listing times as local time
  #autoindex_localtime on;

  # Enable for vBulletin usage WITHOUT vbSEO installed
  # More example Nginx vhost configurations at
  # http://centminmod.com/nginx_configure.html
  #try_files        $uri $uri/ /index.php;

  }

  include /usr/local/nginx/conf/staticfiles.conf;
  include /usr/local/nginx/conf/php.conf;
  include /usr/local/nginx/conf/drop.conf;
  #include /usr/local/nginx/conf/errorpage.conf;
  include /usr/local/nginx/conf/vts_server.conf;
}

Be the first one to answer this question.