Learn about Centmin Mod LEMP Stack today
Register Now

Xenforo admin.php downloaded as file?

Discussion in 'Forum software usage' started by RoldanLT, Sep 13, 2014.

Tags:
  1. RoldanLT

    RoldanLT Well-Known Member

    3,829
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    12:57 AM
    1.11
    10.2
    When I open my domain/admin.php
    Instead of opening the admin page, admin.php will be downloaded.

    What should be the problem here?
     
  2. pamamolf

    pamamolf Well-Known Member

    2,498
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    7:57 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    php and file permissions ...
     
  3. RoldanLT

    RoldanLT Well-Known Member

    3,829
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    12:57 AM
    1.11
    10.2
    chown nginx:ngnx

    All other forum areas are fine, just the /admin.php doesn't load.
    Visiting it will download the file.
     
  4. RoldanLT

    RoldanLT Well-Known Member

    3,829
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    12:57 AM
    1.11
    10.2
    By the way, this is a test server on DO with 512MB ram.
    Don't have this problem before :(
     
  5. RoldanLT

    RoldanLT Well-Known Member

    3,829
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    12:57 AM
    1.11
    10.2
    This is something to do with .ONL domain :(
    I change the domain use and it works fine now.
    Everything is the same, same config, permissions but with different domain.

    Don't know why it's happening, but I also encounter the same problem when using @Floren's repo.
    I thought it was Axivo rpm's problem but not.

    If somebody want's to test, I can provide a test .onl domain.
     
  6. eva2000

    eva2000 Administrator Staff Member

    28,976
    6,579
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,765
    Local Time:
    2:57 AM
    Nginx 1.13.x
    MariaDB 5.5
    for Centmin Mod Nginx at least and Xenforo need the php.conf include line if you have a separate location context just for admin.php i.e.

    Code:
      location ~ ^/(admin.php) {
            include /usr/local/nginx/conf/php.conf;
            allow 127.0.0.1;
            allow myipaddress;
            deny all;
    }
     
  7. RoldanLT

    RoldanLT Well-Known Member

    3,829
    929
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,258
    Local Time:
    12:57 AM
    1.11
    10.2
    I don't have that line but it works fine with my other domains, but not on .ONL :/