Welcome to Centmin Mod Community
Become a Member

Xenforo Xenforo 2.1 have you see previews !

Discussion in 'Forum software usage' started by eva2000, Oct 24, 2018.

  1. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    11:30 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    Yes, but you can not easy upgrade via cli then, also, you can not manually upload zip to server.

     
  2. eva2000

    eva2000 Administrator Staff Member

    55,396
    12,255
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,835
    Local Time:
    7:30 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    In that case yes - If you want to do manual XF 2.1 upgrade, you would use below commands to upload the updated XF zip file, unzip it, change file/directory permissions to nginx user/group for upload directory contents, copy the uploads directory contents to XF web root or where you installed XF php files. Then run the cmd.php xf:upgrade via SSH command line. The last 2 lines to remove zips, you can do or leave as is.
    Code (Text):
    cd /home/nginx/domains/yourdomain.com/zips
    unzip xenforo_xxx.zip
    chown -R nginx:nginx upload
    cd upload
    \cp -Rpf * /home/nginx/domains/yourdomain.com/public
    php /home/nginx/domains/yourdomain.com/public/cmd.php xf:upgrade
    cd /home/nginx/domains/yourdomain.com/zips
    rm -f /home/nginx/domains/yourdomain.com/zips/*
    

    altered last line to specifically use directory and not rm -rf * as it's dangerous if you ran that command in wrong directory !
     
    Last edited: Nov 22, 2018
  3. klimbo

    klimbo New Member

    8
    2
    1
    Mar 6, 2019
    Ratings:
    +2
    Local Time:
    7:30 PM
    CentOS 6.5 64bit
    MariaDB 5.5
    but where is the risk of launching this command in a bad directory?
     
  4. eva2000

    eva2000 Administrator Staff Member

    55,396
    12,255
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,835
    Local Time:
    7:30 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    key is the first change directory cd command to play your commands in right directory and 2nd command unzip would only unzip the zip file if it exists and 3rd/4th command only apply if upload directory exists

    now 5th command would potentially be problematic if in wrong directory if you missed first cd command.

    you could also do pwd command after cd which will print the current working directory to verify you did indeed change to appropriate directory
    Code (Text):
    cd /home/nginx/domains/yourdomain.com/zips
    pwd
    unzip xenforo_xxx.zip
    chown -R nginx:nginx upload
    cd upload
    \cp -Rpf * /home/nginx/domains/yourdomain.com/public
    php /home/nginx/domains/yourdomain.com/public/cmd.php xf:upgrade
    cd /home/nginx/domains/yourdomain.com/zips
    rm -f /home/nginx/domains/yourdomain.com/zips/*
    
     
  5. klimbo

    klimbo New Member

    8
    2
    1
    Mar 6, 2019
    Ratings:
    +2
    Local Time:
    7:30 PM
    CentOS 6.5 64bit
    MariaDB 5.5
    yes exactly i think it can also do the command pwd after cd to print the current working directory
     
  6. klimbo

    klimbo New Member

    8
    2
    1
    Mar 6, 2019
    Ratings:
    +2
    Local Time:
    7:30 PM
    CentOS 6.5 64bit
    MariaDB 5.5

    thank you for your help
    cheers
     
    Last edited: Mar 7, 2019