I’m not as eloquent as your preferred chatbot is. Please bear with me.
The error that you’ve reported earlier was crystal clear. Zero hesitation on the problem.
It’s a user permission problem. And not a “mautic” one.
How to interpret the error:
You have some user that is equal or stronger than your www-data user.
That user is modifying the files in the cache.
Then, the user “www-data” now tries to rename some file/directory.
But the user “www-data” isn’t privileged enough to perform that task, and crash out.
”Mautic” isn’t involved in that crash. It’s happens because of a misconfiguration (or use)
The long story short: How to resolve
-
As user01, create a permission-less user (let’s say “webmaster”)
sudo adduser webmaster -
add that user to the www-data group
sudo usermod -aG www-data webmaster -
move your mautic out of the /var/ directory and move it to the /home/webmaster/public_html (where mautic will be living)
sudo mv /var/www/mautic /home/webmaster/public_html -
change ownership of the files:
sudo chown webmaster: /home/webmaster/public_html -R -
create/update your vhost to point to the /home/webmaster/public_html directory
-
remove any old cronjobs. Those will now be executed by the web user (webmaster)
-
switch to the web user
sudo su webmaster -
Start installing/managing your web app (add the cronjobs, tweak your environment vars, make yourself confortable with a $HOME/bin/…)
A free server management panel is webmin. Very easy to install on Ubuntu (a must have imo). You’ll be able to easily do all the above from a GUI.