Skip to main content

Moving Domain for an Account Issue

Comments

6 comments

  • dstana
    After grepping through the main httpd.conf file I noticed the vhost for this one is missing. What can I do besides running /scripts/rebuildhttpdconf or manually adding the vhost? Because running the rebuild script isn't adding it like it should.
    0
  • dstana
    I had to manually add the vhost to /etc/apache2/conf/httpd.conf to get this working. Would really like on response on why /scripts/rebuildhttpdconf isn't working.
    0
  • cPanelMichael
    Hello @dstana, Can you let me know the full steps you used to move the domain? Did you simply use WHM >> Modify an Account, or did you perform alternate steps? Thank you.
    0
  • dstana
    That is exactly what I've done. I use Modify an Account and change the domain and username. The last 3 domains that have been changed have had the same issue. It's an API error about not being able to fetch userdata for the old username.
    0
  • dstana
    This is an on-going issue of having to manually add entries to httpd.conf The account I fixed earlier by doing this gets removed from httpd.conf when running the rebuild script. I resolved this by removing the account and re-creating it.
    0
  • cPanelLauren
    Hi @dstana I wonder if the userdata files is not being updated properly when you change the domain name. I know that there was a case re: this recently where modifying an account's main domain caused it to lose all virtual ftp accounts on subdomains but nothing specific to the error you're receiving. Any manual edits to the httpd.conf will not be retained once apache restarts so this is not the way it should be modified. After changing the domain name I wonder if the issue would persist if you ran the following manually: /scripts/updateuserdomains /scripts/updateuserdatacache mv /etc/apache2/conf/httpd.conf{,.bk} /scripts/rebuildhttpdconf /scripts/restartsrv_httpd
    Thanks!
    0

Please sign in to leave a comment.