Upgrading from 5.1.1 to Mautic 6.x via command line

I am using Mautic on a shared host provider. I know it is strongly recommended not to run Mautic on a cheap shared host provider. However, my provider made Muatic available as a One-Click install.

I’m running PHP 8.3

Now I am trying to upgrade to the latest version using the command line in SSH terminal.

It is failing at the check for Mautic updates.

Thanks.

I reached out to my host provider. They were able to run the find. I tried agin and was able to update to 6.0.1. but when I ran the --finish command, it belew up (ran out of memory) and I have memory set at 384MB.

I tried again, and now it can’t migrate the database.

What do I need to do to fix the database?

Thanks.

Try this

  • increase memory, double it
  • then if you have issues when checking the database fixes, read carefully what these are, as you might need to run different migrations.

Note this topic: Issue with logging in to mautic 6.0 after upgrade from 5.2.5 - #8 by raramuridesign

Hope this helps
M.

Since this was a first time installation (using the webhost’s one-click install), I didn’t have any production data to worry about.

I ended up installing the 6.0.1 package manually. I dumped the database and created an empty database. Then the install went just fine.

As for the database errors during the post-upgrade …it couldn’t drop an INDEX file (company_match) – Access denied. The index was there ..just couldn’t drop it. I wonder if it was because of cron jobs?