Get the most out of your Centmin Mod LEMP stack
Become a Member

Upgrade No Input File Specified - Logs?

Discussion in 'Install & Upgrades or Pre-Install Questions' started by BigIron, Dec 2, 2015.

  1. BigIron

    BigIron Member

    62
    15
    8
    Sep 18, 2015
    Ratings:
    +18
    Local Time:
    1:41 AM
    Ah I actually have both a domain.conf and a domain.ssl.conf, I guess I only need one? Maybe that's the reason for this error? :D

    Code:
    2015/11/30 15:45:28 [warn] 27126#27126: conflicting server name "domain.com" on 0.0.0.0:443, ignored
    
    Those were the contents of the .conf, here's the ssl.conf

    Code:
    # Centmin Mod Getting Started Guide
    # must read http://centminmod.com/getstarted.html
    # For SPDY SSL Setup
    # read http://centminmod.com/nginx_configure_https_ssl_spdy.html
    
    # redirect from www to non-www  forced SSL
    # uncomment, save file and restart Nginx to enable
    # if unsure use return 302 before using return 301
    # server {
    #   server_name domain.com www.domain.com;
    #    return 302 https://$server_name$request_uri;
    # }
    
    server {
      listen 443 ssl http2;
      server_name domain.com www.domain.com;
    
      ssl_dhparam /usr/local/nginx/conf/ssl/domain.com/dhparam.pem;
      ssl_certificate      /usr/local/nginx/conf/ssl/domain.com/domain.com.crt;
      ssl_certificate_key  /usr/local/nginx/conf/ssl/domain.com/domain.com.key;
      include /usr/local/nginx/conf/ssl_include.conf;
    
      # mozilla recommended
      ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AE$
      ssl_prefer_server_ciphers   on;
      ##add_header Alternate-Protocol  443:npn-spdy/3;
      #add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
      #add_header  X-Content-Type-Options "nosniff";
      #add_header X-Frame-Options DENY;
      ##spdy_headers_comp 5;
      ssl_buffer_size 1400;
      ssl_session_tickets on;
    
      # enable ocsp stapling
      #resolver 8.8.8.8 8.8.4.4 valid=10m;
      #resolver_timeout 10s;
      #ssl_stapling on;
      #ssl_stapling_verify on;
      #ssl_trusted_certificate /usr/local/nginx/conf/ssl/domain.com/domain.com-trusted.crt;
    
    # 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/domain.com/log/access.log combined buffer=256k flush=60m;
      error_log /home/nginx/domains/domain.com/log/error.log;
    
      root /home/nginx/domains/domain.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;
    }
    
    
    

     
  2. eva2000

    eva2000 Administrator Staff Member

    44,406
    10,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,684
    Local Time:
    6:41 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  3. BigIron

    BigIron Member

    62
    15
    8
    Sep 18, 2015
    Ratings:
    +18
    Local Time:
    1:41 AM
  4. BigIron

    BigIron Member

    62
    15
    8
    Sep 18, 2015
    Ratings:
    +18
    Local Time:
    1:41 AM
    Awesome, looks like I have everything setup how it needs to be now. Thanks again for the help, this taught me a lot about Nginx :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    44,406
    10,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,684
    Local Time:
    6:41 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yeah can ignore if you're still using the self signed cert, but bookmark for when you do switch to paid ssl cert :)
    excellent :D
     
  6. BigIron

    BigIron Member

    62
    15
    8
    Sep 18, 2015
    Ratings:
    +18
    Local Time:
    1:41 AM
    Spoke too soon! Now I'm getting a different error in the www-php.error.log

    Code:
    [02-Dec-2015 20:02:14 UTC] PHP Warning:  Unknown: open_basedir restriction in effect. File(/home/nginx/domains/domain.com/public/xenforo/admin.php) is not within the allowed path(s): (/home/nginx/domains/domain2.com/public/:/usr/local/lib/php/:/tmp/) in Unknown on line 0
    [02-Dec-2015 20:02:14 UTC] PHP Warning:  Unknown: failed to open stream: Operation not permitted in Unknown on line 0
    Just triple checked the open_basedir is commented out in the php.conf and the nprestart command has been run.
     
  7. eva2000

    eva2000 Administrator Staff Member

    44,406
    10,139
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,684
    Local Time:
    6:41 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    FAQ item 26 and Xenforo open_basedir section outlined at Nginx Rewrites for Xenforo Friendly Urls - CentminMod.com LEMP Nginx web stack for CentOS

    domains don't match for documentroot variable
    Code:
    (/home/nginx/domains/domain.com/public/xenforo/admin.php) is not within the allowed path(s): (/home/nginx/domains/domain2.com/public/:/usr/local/lib/php/:/tmp/) in Unknown on line 0
    as is the root path in nginx vhost
    Code:
      root /home/nginx/domains/domain.com/public;
    make sure sever_name is correct in your respective vhosts
     
  8. BigIron

    BigIron Member

    62
    15
    8
    Sep 18, 2015
    Ratings:
    +18
    Local Time:
    1:41 AM
    No idea how I missed that :D