Plesk Onyx for Linux
kb: fixed
kb: bug
ABT: Group A
Applicable to:
- Plesk Onyx for Linux
Symptoms
- The following error is shown when trying to restart Apache:
CONFIG_TEXT: AH00543: httpd: bad user name johndoe
-
Subscription for the system user johndoe has been recently removed.
-
vhosts directory for the subscription still exists:
# ls /var/www/vhosts/example.com
- Immutable bit is added to a file on the vhosts directory:
# lsattr -R | grep +i
Cause
Product issue:
-
#PPPM-10195 "Fixed issues related with removing subscriptions."
Fixed in:- Plesk Onyx 17.8 10 June 2019 (Linux)
- Plesk Obsidian 04 June 2019 (fixed as PPP-41164, Linux)
Resolution
Please consider updating your server:
Workaround
If update is not possible for some reason you may try the following
temporary solution
As a workaround following steps can be done:
- Connect to the server via SSH
- Remove the immutable bit from the file:
# chattr -i /var/www/vhosts/example.com/httpdocs/file.txt
- Remove the vhosts for the deleted subscription:
# rm -rf /var/www/vhosts/example.com
- Unlink the vhost configuration from /etc/httpd/conf/plesk.conf.d/vhosts:
# unlink /etc/httpd/conf/plesk.conf.d/vhosts/example.com.conf
- Restart Apache using the following command:
# service httpd restart
Comments
2 comments
When applying the work-around, do not forget to unlink the vhost configuration from /etc/httpd/conf/plesk.conf.d/vhosts/ - otherwise httpd restarts will fail with "no such file or directory", as you'll have a broken symlink from /etc/httpd/conf/plesk.conf.d/vhosts/example.com.conf -> /var/www/vhosts/example.com/conf/httpd.conf (deleted)
Hello @Jeroen,
Thank you for pointing this out!
The article was modified.
Please sign in to leave a comment.