One of the servers Apache won’t start. Tried looking for a solution on the thread but couldn’t find anything that’ll assist me.
When I type: “systemctl status apache2.service.” I receive this error:
AH00526: Syntax error on line 122 of /etc/apache2/sites-enabled/0-edu2moro.co.za.conf:
Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
It occurred after I updated the virtualmin server.
Faced the same issue an hour ago, you will need to edit the /etc/apache2/sites-enabled/0-edu2moro.co.za.conf and comment out/remove the line with ‘php_admin_value’
You have to do it in every domain, the error message just show the first domain. If you take just this one away, it will appear again in the next domain, just one at the time. So before you try to restart Apache, check all files in sites-enabled. But pay attention, it could be that you have to to it in sites-available instead. That how it was for me.