Jump to content
  • 0
sunrisepro

Upgrading 3.6.2

Question

I've been remiss in updating and want to upgrade Blesta so I can use php 7.2. I assume the normal upgrade process (unzip & overwrite existing files, go to ~/admin/upgrade, click the link) will be fine? Or do I need to upgrade to an intermediate version before the latest version?

Also, I am considering moving my Blesta install to a different cpanel on the same server (due to rebranding my business, the new domain is in a different cpanel on the same server). 2 questions:

1) I currently have Blesta installed in a subfolder. Will the domain change matter?
2) Since it's on the same server, will the new install maintain it's connections to WHM?

I'd like these to go as smoothly as possible so any advice on things to look out for would be appreciated.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 1
2 hours ago, sunrisepro said:

I finally got around to doing the update and all seems well. Now I'd like to migrate to a different cPanel on the same server. Besides putting it into maintenance mode do I need to do anything else? Will the encryption key need to be updated? I'm assuming that I don't have to change the connection to WHM since it's the same server.

Follow the moving Blesta guide at https://docs.blesta.com/display/user/Moving+Blesta if you are moving Blesta. You do not change your system key, it must remain the same as generated on initial install or your installation will be irreversibly broken.

Share this post


Link to post
Share on other sites
  • 0
39 minutes ago, sunrisepro said:

1) I currently have Blesta installed in a subfolder. Will the domain change matter?

Depending on the configuration, you will likely need to reissue your Blesta license to the new domain/location.

39 minutes ago, sunrisepro said:

2) Since it's on the same server, will the new install maintain it's connections to WHM?

If the credentials are all the same.

 

39 minutes ago, sunrisepro said:

I've been remiss in updating and want to upgrade Blesta so I can use php 7.2. I assume the normal upgrade process (unzip & overwrite existing files, go to ~/admin/upgrade, click the link) will be fine? Or do I need to upgrade to an intermediate version before the latest version?

There is a README file included with Blesta that describes how to upgrade. The upgrade documentation is also useful.

Here's what I would recommend in your case:

  1. BACKUP YOUR BLESTA INSTALLATION AND DATABASE (especially /config/blesta.php)
  2. Put Blesta in maintenance mode
  3. Disable your Blesta cron job
  4. Download and upgrade to v4.0.0 as an intermediate step. This is mainly due to there being a lot of changes between v3.6.2 and v4.4.2 to make in one big leap. I would recommend upgrading via CLI mode (instead of /admin/upgrade in your browser) so that the upgrade process cannot time out in the web browser.
    1. Upload the contents of the "blesta" directory
    2. The upgrade documentation will be helpful to review. There are files you should delete as well, mentioned in the note at the top of that page. Some people have problems if those files remain after upgrade while most others do not.
    3. Run the upgrade script (via CLI is preferred)
  5. Check your Blesta installation to make sure it is working normally on v4.0.0
  6. Backup your Blesta installation and database again, now for v4.0.0
  7. (You can perform the server/cPanel migration here, or later at step #12-13)
  8. Upgrade your server to use php 7.2 (php 7.2+ is only supported on v4.4.0+ of Blesta)
    1. Ensure php 7.2 is installed for both CLI and web
  9. Download and upgrade to the latest version (currently v4.4.2) - via CLI mode is recommended over /admin/upgrade in your browser
    1. Since you are on php 7.2, you will need to overwrite a few files from the "blesta" directory with all the files in the "hotfix-php71" directory. You will receive ionCube errors if you do not do this
    2. Upload the contents of the "blesta" directory, which now contains the overwritten files from the "hotfix-php71" directory
    3. Run the upgrade script (via CLI is preferred)
  10. Check your Blesta installation to make sure it is working normally on v4.4.2+
    1. Update configuration settings, like cron jobs and email templates, if necessary, since many changes were made since v3.6.2
  11. Backup your Blesta installation and database again, now, v4.4.2+
  12. Perform your server/cPanel migration as necessary
    1. Be aware that changes to your Blesta location (e.g. by domain or subdomain) may necessitate that you update any third-party configuration to point to the new location. e.g. PayPal IPN URL
  13. Log in to your account with us, or your reseller, and reissue the license
    1. Click to "Manage" the service representing your Blesta license, check the "Reissue License" checkbox, and submit
    2. Visit your Blesta installation at your domain and log in. This will complete the license reissue at your new domain
  14. Re-enable the Blesta cron job and observe that it runs tasks as shown on the Settings > Automation page
    1. You may need to reconfigure the cron job to run at the new location if it has changed
  15. Disable maintenance mode

 

Share this post


Link to post
Share on other sites
  • 0

I finally got around to doing the update and all seems well. Now I'd like to migrate to a different cPanel on the same server. Besides putting it into maintenance mode do I need to do anything else? Will the encryption key need to be updated? I'm assuming that I don't have to change the connection to WHM since it's the same server.

Share this post


Link to post
Share on other sites
  • 0

If you move Blesta's installed location, you should update the paths under System > Settings > General. You may also need to re-issue your license so that it can be used in its new location.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...