Knowledge Base

How to upgrade Blesta via CLI

So you would like to upgrade Blesta via SSH? Here's how you can do that... BACKUP your DATABASE & FILES first.

  1. Upload the files to your server / ftp:
    At the time of writing 4.5.1 is available:
    wget -N https://account.blesta.com/client/plugin/download_manager/client_main/download/127/blesta-4.5.1.zip

  2. Unzip the files:
    unzip blesta-4.5.1.zip

  3. Remove the un-necessary files:
    rm -rf ./blesta/config/routes.php
    rm -rf ./blesta/plugins/support_manager/pipe.php

You may need to remove more.

  1. Add the permissions to the files:
    chown username: ./blesta/* eg: chown root: ./blesta/*

  2. Move the files to your Blesta installation:
    \cp -rf ./blesta/* ./

Then if you need to apply a hotfix:
chown username: ./hotfix-php71/blesta/* and then \cp -rf ./hotfix-php71/blesta/*
or
chown username: ./hotfix-php7/blesta/* and then \cp -rf ./hotfix-php7/blesta/*

  1. Run upgrade:
    php ./index.php admin/upgrade
Please rate this article to help us improve our Knowledge Base.

0 0