Article ID: 116191, created on May 29, 2013, last review on Jan 15, 2015

  • Applies to:
  • Plesk Automation 11.5
  • Plesk for Linux/Unix
  • Plesk 11.5 for Windows


Apache cannot start and fails with an error:

httpd: bad user name domain_ftp


  1. The FTP users of one of the domains with physical hosting are missing from the system.


  1. Create the missing FTP users:

    echo "SELECT login, home, shell FROM sys_users"| \
    mysql -Ns -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa | \
    while read login home shell ; do
      grep -q ^$login: /etc/passwd || \
        PSA_PASSWD="`head /dev/urandom | md5sum | cut -c12-24`" \
          /usr/local/psa/admin/sbin/usermng --add-user --user=$login --homedir=$home --shell=$shell
  2. Rebuild the web server configuration:

    /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
  3. Restart Apache web server:

    /etc/init.d/httpd restart

    See also #124203

Search Words

httpd: bad user name

Apache restart bad user name

no hosting

bad user

Unable to generate the web server configuration file on the host

ERROR: PleskMainDBException

Unable to configure the web server: Execution failed


Error accessing the panel

29d1e90fd304f01e6420fbe60f66f838 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079 85a92ca67f2200d36506862eaa6ed6b8 46a8e394d6fa13134808921036a34da8 bd7fc88cf1b01f097749ae6f87272128

Email subscription for changes to this article
Save as PDF