My system
- Almalinux 9
- Apache 2.4.62
- PHP 8.2.27
- Mysql 8.0.41
- packege Mautic 5.2.3
My installation step
Step 1
I open the website where Mautic is hosted.
The environment check is perfect, and the SSL configuration is correctly present.
I click on ‘Next Step’.
Step 2
I configure the database access parameters.
I click on ‘Next Step’.
The tables are successfully created in MySQL.
Step 3
I configure the administrator’s username, password, first name, last name, and email.
I click on ‘Next Step’.
I get the following error:
“Uh oh! I think I broke it. If I do it again, please report me to the system administrator!
‘500 Internal Server Error’”
This log file is empty:
- /var/log/httpd/error_log
- /var/log/php-fpm/error.log
Can you help me?
I fixed it.
By enabling Mautic’s debug mode, I saw that the issue was with Doctrine.
I shared the error (retrieved from Mautic’s log files) with ChatGPT, and it provided me with the sequence of commands to fix it.
sudo rm -rf /var/www/html/mautic5/var/cache/*
sudo rm -rf /var/www/html/mautic5/var/cache/prod/*
sudo -u apache php /var/www/html/mautic5/bin/console cache:clear
sudo php /var/www/html/mautic5/bin/console cache:clear
sudo -u apache php /var/www/html/mautic5/bin/console doctrine:cache:clear-metadata
sudo -u apache php /var/www/html/mautic5/bin/console doctrine:cache:clear-query
sudo -u apache php /var/www/html/mautic5/bin/console doctrine:cache:clear-result
sudo -u apache php /var/www/html/mautic5/bin/console cache:clear
sudo -u apache php /var/www/html/mautic5/bin/console doctrine:mapping:info
sudo chown -R apache:apache /var/www/html/mautic5/var/cache
sudo chmod -R 775 /var/www/html/mautic5/var/cache
sudo systemctl restart httpd
sudo systemctl restart php-fpm