Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Can't add multiple domains because of existing virtualhost in httpd.conf

Discussion in 'General Discussion' started by odmin, Jun 29, 2011.

  1. odmin

    odmin Registered

    Jun 29, 2011
    Likes Received:
    Trophy Points:
    I already add domain for example and it's working well. When I try to add, I have error: Error from domain wrapper: is controlled by another user.

    The problem is I have in httpd.conf next setup for my virtualhost:

    <VirtualHost xx.xx.xx.xx:80>
    ServerName domain.user976.localhost
    ServerAlias | Register your domain name today! www.domain.user976.localhost
    DocumentRoot /home/user976/public_html/
    ServerAdmin webmaster@domain.user976.localhost
    UseCanonicalName Off
    CustomLog /usr/local/apache/domlogs/domain.user976.localhost combined
    CustomLog /usr/local/apache/domlogs/domain.user976.localhost-bytes_log "%{%s}t %I .\n%{%s}t %O ."
    ## User user976 # Needed for Cpanel::ApacheConf
    <IfModule mod_suphp.c>
    suPHP_UserGroup user976 user976
    <IfModule !mod_disable_suexec.c>
    SuexecUserGroup user976 user976
    ScriptAlias /cgi-bin/ /home/user976/public_html/

    # To customize this VirtualHost use an include file at the following location
    # Include "/usr/local/apache/conf/userdata/std/2/user976/domain.user976.localhost/*.conf"

    Looks like cpanel trying to add new virtualhost with ServerName domain.user976.localhost what already exists. How can I fix this?
  2. ServerMascot

    ServerMascot Member

    Jan 17, 2011
    Likes Received:
    Trophy Points:

    As per the virtual host entry which you have provided here it seems that the is already added as park domain on top of In case if you have not added the domain as a park domain on top of then please remove the entry from the ServerAlias line and try again . If the issue still persists then take the backup of the directory "/var/cpanel/userdata/cp_username" and edit the file "main" and "main.cache" and delete the entry for the from the those files. Once you have removed such entry then rebuild the user data cache by running the cPanel script "/scripts/updateuserdatacache" and try adding the domain once again.

    Hope that helps.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice