- Plesk for Linux
- Apache fails to start after migration:
CONFIG_TEXT: AH00526: Syntax error on line 2 of /var/www/vhosts/system/example.com/conf/vhost.conf: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration. Detailed error descriptions were sent to you by email. Please resolve the issues and click here ( https://192.0.2.2:8443/admin/# ) to generate broken configuration files once again or here ( https://192.0.2.2:8443/admin/# ) to generate all configuration files. See the details in Configuration Troubleshooter ( https://192.0.2.2:8443/modules/configurations-troubleshooter/ )
- PHP handler of the subscription was switched to FastCGI during the migration.
An incompatible custom directive used in the subscription ( Subscriptions > example.com > Apache & Nginx Settings ) that works with
mod_php only. Since
mod_php is considered insecure, it is disabled on newer versions of Plesk by default.
1. Remove directive with
php_flag in Domains > example.com > Apache & Nginx Settings > Additional Directives for HTTP (or HTTPS). Alternatively, enable mod_php (not recommended).
2. Start apache:
# service httpd start
3. If apache was started successfully, but warning still appears in the interface, contact Plesk technical support.