- Plesk for Linux
The following error message is shown on the Home page in Plesk:
PLESK_ERROR: New configuration files for the Apache web server were not created due to the errors in configuration templates: AH00526: Syntax error on line 2 of /var/www/vhosts/system/example.com/conf/vhost_ssl.conf: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration.
Note: The error can occur for different modules like php_flag, php_admin_flag.
Apache cannot be started with the following error:
CONFIG_TEXT: server.example.com httpd: AH00526: Syntax error on line 2 of /var/www/vhosts/system/example.com/conf/vhost.conf:
server.example.com httpd: Invalid command 'php_admin_value', perhaps misspelled or defined by a module not included in the server configuration
- The domain was migrated from a server with mod_php5 enabled.
Apache module mod_php5 is not enabled.
1. Log in to Plesk via SSH
2. Open the file mentioned in the error message and comment out the string with 'php_admin_value' directive.
Note: if mod_php5 is needed on the server, enable it by applying steps 1 and 2 from this KB article and start Apache.