My system:
Ubuntu 24.04 server - Apache - Mautic 8.3.6 normal installation (no composer or anything special).
How is the correct way to update via ssh - normal standard server without any tweaks.
Mautic is here installed: /var/www/html/mautic
The update manual is here:
User on the system: root, www-data, user01
Can someone confirm that this is correct (or correct, give infos please) and that all rights will set correctly?
In short words:
Standing in the Mautic directory: /var/www/html/mautic
Command as user01 for the script but with user: “www-data” prefix, that the rights will set correctly for the update files.
user01@ubuntu-4gb-nbg1-2:/var/www/html/mautic$ sudo -u www-data php /var/www/html/mautic/bin/console mautic:update:find
Version 7.0.0 von Mautic ist zum Download bereit. Weitere Informationen finden Sie hier: https://github.com/mautic/mautic/releases/tag/7.0.0.
Geben Sie 'php bin/console mautic:update:apply' in die Kommandozeile ein, um das Update durchzuführen.
user01@ubuntu-4gb-nbg1-2:/var/www/html/mautic$ sudo -u www-data php /var/www/html/mautic/bin/console mautic:update:apply
...
user01@ubuntu-4gb-nbg1-2:/var/www/html/mautic$ sudo -u www-data php /var/www/html/mautic/bin/console mautic:update:apply --finish
Cache will be deleted by the script - is shown at the install process
Additional info (but normally not needed): If the rights are not correct:
sudo chown -R www-data:www-data /var/www/html/mautic
sudo chmod -R 755 /var/www/html/mautic