Discover Centmin Mod today
Register Now

Xenforo new website, fresh xenforo install 404 error

Discussion in 'Forum software usage' started by dotpro, Dec 12, 2019.

  1. dotpro

    dotpro New Member

    8
    0
    1
    Dec 5, 2017
    Ratings:
    +0
    Local Time:
    3:24 PM
    Hi,

    CentOS Version: CentOS Linux 7.4.1708, 64Bit
    Centmin Mod Version Installed: 123.09beta01.b337
    Nginx Version Installed: 1.17.6
    PHP Version Installed: 7.4
    MariaDB MySQL Version Installed: 10.1.30
    When was last time updated Centmin Mod code base: latest version


    I am trying to setup a new domain on a server with a few xenforo and wordpress installs already functioning without any issue.
    I created the vhost using option #2, SSL through cloudflare, created mariadb db/user, etc.
    The default centiminmod page loads when i got to the site.

    I uploaded the xenforo files to install the forum but when I go into the /install/ folder it gives me 404 error. I know I am missing something but can't really pin point what it is!

    Here is the config:
    Code:
    server {
               listen   80;
               listen [::]:80;
               server_name www.domain.com;
               return 301 https://domain.com$request_uri;
          }
    
    #server {
    #            listen   80;
    #            listen [::]:80;
    #            server_name domain.com;
    #            return 301 https://domain.com$request_uri;
    #       }
    
    server {
            listen 443 ssl;
            listen [::]:443 ssl;
            server_name www.domain.com;
    
            ssl_certificate      /usr/local/nginx/conf/ssl/domain.crt;
            ssl_certificate_key  /usr/local/nginx/conf/ssl/domain.key;
    
            ssl_client_certificate /usr/local/nginx/conf/ssl/cloudflare.crt;
            ssl_verify_client on;
    
            return 301 https://domain.com$request_uri;
    }
    
    server {
    
            listen 443 ssl;
            listen [::]:443 ssl;
    
            server_name domain.com;
    
            ssl_certificate      /usr/local/nginx/conf/ssl/domain.crt;
            ssl_certificate_key  /usr/local/nginx/conf/ssl/domain.key;
    
            ssl_client_certificate /usr/local/nginx/conf/ssl/cloudflare.crt;
            ssl_verify_client on;
    
    
    
      include /usr/local/nginx/conf/503include-main.conf;
    
      # prevent access to ./directories and files
      #location ~ (?:^|/)\. {
      # deny all;
      #}
    
      location / {
       try_files $uri $uri/ /index.php?$uri&$args;
       index index.php index.html;
    
     include /usr/local/nginx/conf/503include-only.conf;
    
    # 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;
    
      # Wordpress Permalinks example
    #try_files $uri $uri/ /index.php?q=$uri&$args;
    
      }
    
      include /usr/local/nginx/conf/pre-staticfiles-local-domain.com.conf;
      include /usr/local/nginx/conf/pre-staticfiles-global.conf;
      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;
    }
     
  2. eva2000

    eva2000 Administrator Staff Member

    42,798
    9,693
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,956
    Local Time:
    6:24 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x