Skip to main content

Already exists in apache config

Comments

9 comments

  • 24x7ss
    You have to manually edit httpd.conf and remove the virtual entry of the domain. Remove complete virtualhost part of that domain then save the file and test apache configuration with below command. httpd -t. If it say ok then restart the apache. Before doing any changes take backup of httpd.conf.
    0
  • tank
    Thanks that did the trick
    0
  • cPanelMichael
    Hello :) It's possible the domain name was added as a parked/addon domain name to an additional account. For anyone else experiencing this issue, it's a good idea to search for the domain name in the cPanel userdata files:
    grep $domain /var/cpanel/userdata/*/*
    Thank you.
    0
  • giles007
    cPanelMichael -- Many thanks for your comment above. I spent hours trying to find a solution to my problem before finding your answer! It's a great tip in the guide for an effective thread to search google with the site: tag
    0
  • cPanelMichael
    Hello, I'm happy to see the response helped you to resolve an issue, and the search tip on the "Effective Forum Thread" post was helpful. Thanks!
    0
  • dalem
    Hello :) It's possible the domain name was added as a parked/addon domain name to an additional account. For anyone else experiencing this issue, it's a good idea to search for the domain name in the cPanel userdata files:
    grep $domain /var/cpanel/userdata/*/*
    Thank you.

    there is a script for that /scripts/whoowns domain.com
    0
  • cPanelMichael
    there is a script for that /scripts/whoowns domain.com

    @dalem, this is a good point. In most cases, you can simply use the "/scripts/whoowns" command to determine which username owns a domain name on the system. In certain cases, you must manually search for this information if the command does not output a username, or to obtain additional information about how the domain name is linked to the account. Thanks!
    0
  • Leonardo Gomes
    i had the same problem and found this using the tip by cPanelMichael. In my case, it was a SSL Certificate that i had installed on the server, i fixed it just by removing the keys, crt and csr in the "Manage SSL hosts"
    0
  • Ed Bergavera
    grep $domain /var/cpanel/userdata/*/*

    This has resolved my issue today. I manually removed the entries on the configuration files found by this command and after that executes the following command:
    /scripts/rebuildhttpdconf
    Thank you @cPanelMichael !
    0

Please sign in to leave a comment.