Want to subscribe to topics you're interested in?
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,100
    298
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +479
    Local Time:
    6:55 PM
    Nginx 1.15.8
    MariaDB 10.3.12
    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

    39,806
    8,778
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,512
    Local Time:
    2:55 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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
    • Informative Informative x 1
  3. klimbo

    klimbo New Member

    8
    1
    1
    Mar 6, 2019
    Ratings:
    +1
    Local Time:
    2:55 AM
    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

    39,806
    8,778
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,512
    Local Time:
    2:55 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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/*
    
     
    • Like Like x 1
  5. klimbo

    klimbo New Member

    8
    1
    1
    Mar 6, 2019
    Ratings:
    +1
    Local Time:
    2:55 AM
    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
    1
    1
    Mar 6, 2019
    Ratings:
    +1
    Local Time:
    2:55 AM
    CentOS 6.5 64bit
    MariaDB 5.5

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