Account points to another accounts public_html
Hi Guys,
I hope someone can assist.
I created 2 accounts on whm lets say example1.com and example2.com.
I then created a third account, example3.com. each account has its own ip address.
In chrome I navigate to example3.com and this is what i see:
In the address bar i see example3.comas you would expect but the page being displayed is from example2.com.
To try and resolve the issue I have; removed example3.com twice. Bought another IP and gave all accounts there own IP and I have restarted all services.
Can anyone PLEASE tell me whats happening. I know I must have messed up somewhere but I have no idea where.
-
login to the server with root and check the domain's home directory path and they should be pointing to the right directory. You can check the path in httpd.conf file located at /usr/local/apache/conf/httpd.conf 0 -
It does sound like somewhere along the line the 3rd IP wasn't assigned and example3.com is still using example2.com's IP address. Can you confirm it's assigned by going to WHM>>Account Functions>>Change Site's IP address If that checks out you'd need to check the following locations to ensure it's valid: /var/cpanel/users/$user /var/cpanel/userdata/$user/$domain
If both of those reflect the correct IP I'd try the following:/scripts/updateuserdomains /scripts/updateuserdatacache mv /etc/apache2/conf/httpd.conf{,.bk} /scripts/rebuildhttpdconf /scripts/restartsrv_httpd0
Please sign in to leave a comment.
Comments
2 comments