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

XF 1.5 Problem installing Xenforo

Discussion in 'Installation, Upgrade, and Import Support' started by _inu, Dec 14, 2015.

  1. _inu

    _inu Member

    Hello dear XF community,

    I have installed, restored and handled my two Xenforo licenses countless of times. Now that I am looking to bring up a new forum on one of my licenses, the installation simply refuses to work and I am stuck on troubleshooting any further.

    Once the index.php file of the install directory is accessed, it displays everything as usual, but upon clicking the button the URL does change to step1, yet I am still stuck on the first page.

    I have already tried to narrow this issue down, have tried disabling pagespeed, memcached, the opcache, whiped the entire cache and also tried different browsers(Chrome, Edge, Waterfox, Safari), whereas Safari and Edge had never even visited any site of mine, so they could not have possibly locally cached the files.

    This issue persists on all versions of Xenforo and started a few weeks ago when I shut down my old site and realized the login to the admin sector was looping(redirecting to the login page again), which I did not pay attention to since it was going down anyway.

    All help would be appreciated!


    The basic structure of my server:
    Nginx
    Nginx-Pagespeed
    PHP 5.6 with Zend Opcache and Memcached(this also happened on 5.4. I literally updated to 5.6 at this point to see if it would fix it and because I have been meaning to do it for a while.)
    Mariadb with all tables on InnoDB(duh)


    PS: I am sorry if I may respond slowly. I am a busy man just trying to figure out why I get stuck on installing XF after it has worked so many times with no changes to my setup except for the domain.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    What is the actual problem?

    Is there an error message?
    Does the page just hang?
     
  3. wang

    wang Well-Known Member

    That would be after you fill in the database details? Any error being displayed?
     
  4. _inu

    _inu Member

    The script keeps redirecting me to the basic install page without any sort of error message and there is also no record of this in my error logs.

    No, I do not even get to the first form. I am literally stuck on "Begin Installation"
     
  5. wang

    wang Well-Known Member

    It seems that the installer is stuck in some sort of loop. Your server requirements seem fine to me. Nothing in there that would indicate why this issue is happening. Is this a completely fresh installation?
     
  6. _inu

    _inu Member

    Yes sir. New domain, new site config(that is identical to the old working one though except for the domain name of course) and a freshly downloaded Xenforo.
     
  7. wang

    wang Well-Known Member

    Can you ask your host to do a check up and make sure that everything is fine? Maybe there is something in there somewhere that it is causing this issue.
     
  8. _inu

    _inu Member

    I am essentially my own host as a friend of mine owns the rack in the US but I did set this up from a barebones root. He did look into it and he is a sysadmin with major experience(especially compared to my petty 5 years of experience). He claims the issue only persists in Xenforo and can not figure it out. I can somewhat confirm this as other PHP-based installations such as Sourcebans were working just fine.
     
  9. wang

    wang Well-Known Member

    Can you try something? It is worth a shot in my opinion. Download and run the requirements test script from here.

    https://xenforo.com/purchase/

    That might tell you what could be causing the issue that you are experiencing.
     
  10. _inu

    _inu Member

    The script just tells me that I meet all requirements, which I knew I do and apparently is not an issue. Still thank you.
     
  11. Mike

    Mike XenForo Developer Staff Member

    It sounds to me like your web server isn't passing parameters or request details correctly. What does your Nginx PHP config look like?
     
  12. n00bsaibot

    n00bsaibot Active Member

    Is it possible you downloaded the upgrade set and not the full install?

    The XF website defaults you to the upgrade software.
     
  13. _inu

    _inu Member

    Code:
        }
       
    
            location ~ [^/]\.php(/|$) {
                    fastcgi_split_path_info ^(.+?\.php)(/.*)$;
                    if (!-f $document_root$fastcgi_script_name) {
                            return 404;
                    }
                    fastcgi_pass unix:/var/run/php5-fpm.sock;
                    fastcgi_index index.php;
                    include fastcgi_params;
            }
    
    
    location ~ \.php$ {
        try_files $uri =404;
        fastcgi_pass    unix:/var/run/php5-fpm.sock;
        fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include         fastcgi_params;
        fastcgi_read_timeout 300;
       
    }

    Nope. I have downloaded the full version.
     
  14. Mike

    Mike XenForo Developer Staff Member

    Can you submit a ticket with FTP details? I'd like to create a test script to confirm my thoughts.

    You do have 2 configurations for PHP there and I'm not sure which one is being matched. I think probably the first one and there are some elements there I'm not sure of.
     
  15. _inu

    _inu Member

    If possible I would prefer if you PMed me the script and I upload it myself. I am pretty opposed to giving out any credentials, even when we are talking about a jailed dummy account.
     
  16. Mike

    Mike XenForo Developer Staff Member

    Actually, it might be simple enough if you create a PHP info script in your XF directory and send the link to me.
     
  17. _inu

    _inu Member

    Sent you the link via PM.
     
  18. _inu

    _inu Member

    I have managed to fix my issue thanks to the support of Mike :)

    If anyone ever ends up with the same issue, the fix is literally as simple as downloading a fresh fastcgi.conf file and including it into your site config like so

    Code:
        location ~ [^/]\.php(/|$) {
                    fastcgi_split_path_info ^(.+?\.php)(/.*)$;
                    if (!-f $document_root$fastcgi_script_name) {
                            return 404;
                    }
                    fastcgi_pass unix:/var/run/php5-fpm.sock;
                    fastcgi_index index.php;
                    include /etc/nginx/fastcgi.conf;
            }

    Essentially my PHP installation was suddenly missing required CGI variables(completely out of the blue mind you, it has worked for ages before) and including a fresh fastcgi.conf instead of the fastcgi_params has solved my issue.

    Thank you Mike and merry Christmas everybody!
     
    wang likes this.
  19. wang

    wang Well-Known Member

    Thank you for sharing the solution sir. And Merry Christmas to you too.
     

Share This Page