Welcome to Centmin Mod Community
Become a Member

Xenforo 404 Not Found error (but forum is working)

Discussion in 'Forum software usage' started by sepulchre, Jan 2, 2015.

  1. sepulchre

    sepulchre Member

    90
    15
    8
    Dec 22, 2014
    Ratings:
    +15
    Local Time:
    3:53 PM
    Finally thanks eva my installation works. (CentOS 7, CMM centos7beta01, php 5.6.4, nginx 1.7.9)
    My Xenforo forum works too, but I keep getting a 404 nginx error after I refresh a page (for example visit main site, go to a category, to a thread, just reload page, etc).

    dddd.png

    Error logfile from: /home/nginx/domains/mywebsite.com/log
    Same error over and over again in the log, one example

    Code:
    2015/01/01 14:27:33 2015/01/01 16:50:24 [error] 20749#0: *18 open() "/home/nginx/domains/mywebsite.com/public/alertcount-refresh" failed (2: No such file or directory), client: myIPaddress, server: mywebsite.com, request: "GET /alertcount-refresh?_xfRequestUri=%2Findex.php&_xfNoRedirect=1&_xfToken=1%2C1420131003%2C2a220a460122aed9a54dd40f939ea545dad13331&_xfResponseType=json HTTP/1.1", host: "mywebsite.com", referrer: "http://mywebsite.com/index.php"
    It says no such file or directory obviously, but I don't know what to do in this case.
     
  2. eva2000

    eva2000 Administrator Staff Member

    31,025
    6,927
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,433
    Local Time:
    12:53 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
  3. sepulchre

    sepulchre Member

    90
    15
    8
    Dec 22, 2014
    Ratings:
    +15
    Local Time:
    3:53 PM
    I thought this is nginx related or xenforo. But it is an add-on which was the problem.
    I bow to you, sir.
     
  4. sepulchre

    sepulchre Member

    90
    15
    8
    Dec 22, 2014
    Ratings:
    +15
    Local Time:
    3:53 PM
    This time I think it is nginx related. Suddenly my forum kept working ( I was watching soccer, came back and it doesnt work.)
    I wanted to enable friendly urls but nginx is bitchy at the moment.

    I installed via centmin.sh nginx new and it says this right before the installation is completed.
    Starting nginx (via systemctl): Job for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details.
    [FAILED]


    Starting nginx via service nginx restart or ngxrestart doesnt work either. Gives same error message.
     
  5. eva2000

    eva2000 Administrator Staff Member

    31,025
    6,927
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,433
    Local Time:
    12:53 AM
    Nginx 1.13.x
    MariaDB 5.5
    what VPS you using OpenVZ ? CentOS 7 + OpenVZ has an issue preventing nginx restarts right now, would need a Xen or KVM VPS for CentOS 7
     
    • Like Like x 1
  6. sepulchre

    sepulchre Member

    90
    15
    8
    Dec 22, 2014
    Ratings:
    +15
    Local Time:
    3:53 PM
    I am not 100% sure but it is OpenVZ as far as I know and yes, it is CentOS 7.
    I dont want to change provider again and I dont think that they will install Xen or KVM on their servers.
    Is this a problem of OpenVZ + CentOS 7 combination or because my provider doesnt allow?
    Then I ll go with CentOS 6.6 and make a fresh install again. What do you say?
     
  7. eva2000

    eva2000 Administrator Staff Member

    31,025
    6,927
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,433
    Local Time:
    12:53 AM
    Nginx 1.13.x
    MariaDB 5.5
    Yeah it's problem with CentOS 7 + OpenVZ combo right now that I need to investigate. There is no problems with CentOS 6.6 + OpenVZ with either .07 stable or .08 beta :)
     
    Last edited: Jan 2, 2015
    • Like Like x 1
  8. sepulchre

    sepulchre Member

    90
    15
    8
    Dec 22, 2014
    Ratings:
    +15
    Local Time:
    3:53 PM
    Ok, bad news I have to do a fresh install again :(.
    Good news is that I am so thankful and happy that it works (will work). Better than no solution at all. :)
    Then I wont go with .08 beta this time.
     
  9. sepulchre

    sepulchre Member

    90
    15
    8
    Dec 22, 2014
    Ratings:
    +15
    Local Time:
    3:53 PM
    Have a little problem here.
    I am using this add-on for my forum for installing add-ons.
    Now, it tells me
    There is a problem with permissions as you see. But I dont know which kind of permissions I have to give else other than giving xenforo data and internal_data chmod 0777 rights.
    From server administration perspective, which permission did I forget?

    It seems that I have to set all folders related to Xenforo chmod 777. How secure is it to do this?
     
    Last edited: Jan 3, 2015
  10. eva2000

    eva2000 Administrator Staff Member

    31,025
    6,927
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,433
    Local Time:
    12:53 AM
    Nginx 1.13.x
    MariaDB 5.5
    permissions related see step 2 of Getting Started Guide and chown command

     
    • Like Like x 1
  11. sepulchre

    sepulchre Member

    90
    15
    8
    Dec 22, 2014
    Ratings:
    +15
    Local Time:
    3:53 PM
    Man, I didnt understand that part (for what I need it, I skipped it) and now I know why I have to do it... You are the best, thanks.