XF 1.1 Cannot install on Ubuntu + NGINX

OK, so I have no idea what I am doing wrong as this is heavily documented. Everything I try however, is not working...

This is where I am at right now:

http://www.bestgaminghosts.com << all it does is download the 404 page...odd right?

I got the files for the forums right on the root of the directory. I am using NGINX with the following rules:
server {
        listen; ## listen for ipv4; this line is default and implied
        root /srv/www/bestgaminghosts.com;
        server_name bestgaminghosts.com www.bestgaminghosts.com;
location / {
        try_files $uri $uri/ /index.php?$uri&$args;
        index index.php index.html;
location ~ \.php$ {
                try_files $uri /index.php
                # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
                fastcgi_index index.php;
                include fastcgi_params;
Can you let me know what I am doing wrong as I seriously cannot figure this out.

Jake Bunce

XenForo moderator
Staff member
The PHP code is showing when I try to load your URL. That means PHP is not working or is not installed. Be sure to setup PHP on your server.


Well-known member
Assuming you're using php-fpm for the other sites as well, check your permissions. Can the php-fpm user run and execute on those folders?