Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Plesk shows the following error after removing a subscription: AH00543: httpd: bad user name jdoe

 
apacheapache configbackupdatabasedomains

Symptoms

  • Plesk shows the following error:

    Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all ) Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-server [1] => -no-restart ) Details: [2018-11-05 09:03:41.854] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code [1] [2018-11-05 09:03:42.016] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code [1] [2018-11-05 09:03:42.017] ERR [panel] Apache config (15414158200.83848700) generation failed: Template_Exception: AH00543: httpd: bad user name jdoe file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 75

  • The following errors can be seen in /var/log/plesk/panel.log:

    ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/usermng' '--del-user' '--user=jdoe' '--homedir=/var/www/vhosts/example.com'] with exit code [1]
    ERR [1] '/usr/local/psa/admin/bin/usermng' '--del-user' '--user=jdoe' '--homedir=/var/www/vhosts/example.com' failed with code 1.

  • The following message appears when accessing any website on the server:

    502 Bad Gateway

  • Subscription/domain was not fully removed as data is still present in the vhost direcotry /var/www/vhosts/example.com

  • The user is still present in the Plesk database:

    # plesk db "SELECT * FROM psa.sys_users WHERE login='jdoe'"
    +----+---------------+-------------+------------+-----------------------------+------------+-------+-----------+
    | id | serviceNodeId | login       | account_id | home                        | shell      | quota | mapped_to |
    +----+---------------+-------------+------------+-----------------------------+------------+-------+-----------+
    | 3  | 1             | jdoe        | 7          | /var/www/vhosts/example.com | /bin/false | 0     | NULL      |
    +----+---------------+-------------+------------+-----------------------------+------------+-------+-----------+

Cause

Product issues:

  • #PPPM-10195 "Fixed issues related with removing subscriptions."

    Fixed in:

    • Plesk Onyx 17.8.11 Update 56 10 June 2019 (Linux)
  • #PPP-41164 "Enhanced reliability of removing subscriptions."

    Fixed in:

    • Plesk Obsidian Release Candidate 1 (RC1 18.0.15) 04 June 2019 (Linux)

Resolution

Please consider updating your server:

  • How to install Plesk updates

Workaround

Upgrade Plesk to the latest version. 

Click on a section to expand

If upgrade is not possible, use the following workaround

  1. Connect to the server via SSH.

  2. Backup psa database as per the instruction in the following article: How to backup/restore a Plesk database dump
  3. Remove the user in Plesk database:

    # plesk db "DELETE FROM psa.sys_users WHERE login='jdoe';"

  4. Remove the directory for the subscription/domain:

    # rm -r /var/www/vhosts/example.com

  5. Recreate subscription/domain in Plesk > Subscriptions > Add Subscription or Plesk > Domains > Add domain respectively.

  6. Remove subscription/domain in Plesk > Subscriptions > select subscription > Remove or Plesk > Domains > select domain > Remove respectively.

Note: if the issue re-occur for another user, resolve database inconsistency by removing orphaned domain services and system users by running:

# plesk repair db

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Your Complete .htaccess Guide: Including .htaccess Basics and More

Read More »

NGINX vs Apache – Which Is the Best Web Server in 2024?

Read More »

Top Web Servers For Linux And Windows

Read More »
Knowledge Base

Different operations on Plesk for Linux server fail: /usr/sbin/usermod execution failed: usermod: user is currently used by process

Read More »

Unable to repair domains in Plesk using “plesk repair db” utility: The following domains are assigned to already removed IP addresses

Read More »

Plesk and websites are inaccessible after updating Plesk to Obsidian 18.0.43 on RHEL 8-based OS: DB query failed: SQLSTATE[HY000] [2002] No such file or directory

Read More »

Unable to access Plesk: /opt/psa/admin/bin/dnsmng: not found

Read More »

Hosting Wiki

  • Server Redundancy
  • Linux Containers
  • Bare Metal Server
  • Backup
  • PhpMyAdmin
  • phpPgAdmin
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • PHP
  • Domain
  • Plesk
  • SQL database
  • NoSQL Database
  • Apache Tomcat
  • Apache
  • Web Server
  • DNS Server
  • SSH
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family