• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Cannot install on Ubuntu + NGINX

#1
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:
Code:
server {
        listen  76.73.7.118:80; ## 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_pass 127.0.0.1:9000;
                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
#2
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.
 

shawn

Well-known member
#4
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?