Sometimes, Apache/Litespeed Web Server goes into error while Creating cPanel Account or Deleting a cPanel Account.
How To Fix the Error?
You can use the /usr/local/cpanel/scripts/rebuildhttpdconf
script to rebuild Apache’s main configuration file.
Important: This script does not restart Apache. To restart Apache, run the restartsrv_httpd script.
# /scripts/rebuildhttpdconf
...
info [rebuildhttpdconf] Missing IP for domain install.example.com, using 192.168.0.20
info [rebuildhttpdconf] Missing ServerName for domain install.example.com, using install.example.com
info [rebuildhttpdconf] Missing port for domain install.example.com, using 80
info [rebuildhttpdconf] Missing user for domain install.example.com, using nobody
info [rebuildhttpdconf] Missing owner for domain install.example.com, force lookup to root
info [rebuildhttpdconf] Missing group for domain install.example.com, using nobody
Built /etc/apache2/conf/httpd.conf OK
This Script can be only run by root user.