Article ID: 124502, created on Feb 19, 2015, last review on Mar 10, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux


On Debian-based OS changing of any settings for the domain fails with the following error:

New configuration files for the Apache web server were not created due to the errors in configuration templates: apache2: bad user name ${APACHE_RUN_USER}. The error message containing the detailed error descriptions was sent to you by e-mail. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.

Apache fails to start with the following error:

# service apache2 start
The apache2 configtest failed.
Output of config test was:
apache2: bad user name ${APACHE_RUN_USER}
Action 'configtest' failed.

and/or shows the following error:

# apache2 -S
apache2: bad user name ${APACHE_RUN_USER}


Environment variable ${APACHE_RUN_USER} is incorrect or undefined.


  1. Make sure that User and Group in configuration file /etc/apache2/apache2.conf are defined as below:

    # grep "APACHE_RUN_USER" /etc/apache2/apache2.conf ;  grep "APACHE_RUN_GROUP" /etc/apache2/apache2.conf
  2. Define environment variables in /etc/apache2/envvars file as below:

    # grep "APACHE_RUN_USER" /etc/apache2/envvars ;  grep "APACHE_RUN_GROUP" /etc/apache2/envvars
    export APACHE_RUN_USER=www-data
    export APACHE_RUN_GROUP=www-data
  3. Start apache:

    # service apache2 start
  4. Re-create apache configuration files if needed:

    # /usr/local/psa/admin/bin/httpdmng --reconfigure-all

Search Words

apache error

Unable to make action: Unable to manage service by apache_control_adapter: Service /etc/init.d/httpd failed to start Service /etc/init.d/httpd failed to start

change ftp user for domain apache problem

plesk subscription user error reconfigure

nginx does not restart after change in plesk

bad user

/opt/psa/admin/conf/templates/default/domainVhost.php, error = Template_Exception: [Template_Variable_Domain_PhysicalHosting] Wrong variable to subsitute: maintenanceMode file: /opt/psa/admin/plib/Template/Processor.php line: 27 code: 0 Previous error: Template_Exception: [Template_Variable_Domain_PhysicalHosting] Wrong variable to subsitute: maintenanceMode file:


Unable to configure the web server: Execution failed

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 01bc4c8cf5b7f01f815a7ada004154a2 29d1e90fd304f01e6420fbe60f66f838 0a53c5a9ca65a74d37ef5c5eaeb55d7f aea4cd7bfd353ad7a1341a257ad4724a 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 742559b1631652fadd74764ae8be475e

Email subscription for changes to this article
Save as PDF