Want to subscribe to topics you're interested in?
Become a Member

Xenforo Making files writable for one click upgrades

Discussion in 'Forum software usage' started by CarpCharacin, Mar 14, 2019 at 5:15 AM.

  1. CarpCharacin

    CarpCharacin Member

    262
    19
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +32
    Local Time:
    1:08 PM
    1.15.x
    MariaDB 10.1
    When I try to do a 1 click upgrade to XF 2.1.1, it says I can't, because the files aren't writable. What files/directories do I need to make writable in order for it to work? upgrade.PNG
     
  2. eva2000

    eva2000 Administrator Staff Member

    38,511
    8,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,050
    Local Time:
    5:08 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    • Like Like x 2
  3. JoeDer

    JoeDer Premium Member Premium Member

    41
    11
    8
    Feb 22, 2015
    Ratings:
    +31
    Local Time:
    9:08 PM
    Nginx 1.15.x
    MariaDB 10.3.x
    Try these commands from: Nginx Rewrites for Xenforo Friendly Urls - CentminMod.com LEMP Nginx web stack for CentOS
    Code:
    find /home/nginx/domains/newdomain.com/public/ -type f -print0 | xargs -0 chmod 0640
    find /home/nginx/domains/newdomain.com/public/ -type d -print0 | xargs -0 chmod 0750
    find /home/nginx/domains/newdomain.com/public/internal_data/ -type f -print0 | xargs -0 chmod 0660
    find /home/nginx/domains/newdomain.com/public/data/ -type f -print0 | xargs -0 chmod 0660
    find /home/nginx/domains/newdomain.com/public/internal_data/ -type d -print0 | xargs -0 chmod 0770
    find /home/nginx/domains/newdomain.com/public/data/ -type d -print0 | xargs -0 chmod 0770
    chmod 0755 /home/nginx/domains/newdomain.com/public
     
    • Informative Informative x 2
  4. CarpCharacin

    CarpCharacin Member

    262
    19
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +32
    Local Time:
    1:08 PM
    1.15.x
    MariaDB 10.1
    I just tried them, and now it says HTTP error 500 :(
     
  5. CarpCharacin

    CarpCharacin Member

    262
    19
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +32
    Local Time:
    1:08 PM
    1.15.x
    MariaDB 10.1
    I had to restore the VPS from a backup, but I still need to get the permissions set up correctly to get 1 click upgrades working.
     
  6. eva2000

    eva2000 Administrator Staff Member

    38,511
    8,487
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,050
    Local Time:
    5:08 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    what's permissions for the following directories right now before any chmod changes
    • /home/nginx/domains/newdomain.com/public/
    • /home/nginx/domains/newdomain.com/public/internal_data/
    • /home/nginx/domains/newdomain.com/public/data/
    output for
    Code (Text):
    ls -lAh /home/nginx/domains/newdomain.com/public/

    and
    Code (Text):
    getfacl -L --absolute-names /home/nginx/domains/newdomain.com/public/internal_data/
    getfacl -L --absolute-names /home/nginx/domains/newdomain.com/public/data/
    

    wrap output in CODE/CODEB tags

    where newdomain.com is your domain name
     
  7. JoeDer

    JoeDer Premium Member Premium Member

    41
    11
    8
    Feb 22, 2015
    Ratings:
    +31
    Local Time:
    9:08 PM
    Nginx 1.15.x
    MariaDB 10.3.x
    • Agree Agree x 2
..