Clone an existing cPanel server to an isolated machine?
Hello all,
I am attempting to make myself a clone of our website so that I can "go crazy" with it.
The website was initially on a headless Xen machine which I managed to clone entirely using rsync. It was a bit difficult to get it to boot properly but after modifying grub configuration, fstab entries and network interfaces most of everything seemed to work.
Except.. For the web services. I can try connecting to it through localhost, every URI gets redirected to /usr/local/cpanel/cgi-sys/default-webpage.cgi.
Same with 127.0.0.1 or the local IP (which is disconnected anyway: 192.168.1.38).
I cannot login to the cloned CPanel either. I get a "A network error occured during your login request. Please try again [...]"
Same error on WHM.
So basically everything redirects to default-webpage.cgi and I cannot enter any GUI to try and resolve the issue. Can I reset the configuration for CPanel and WHM through the command-line? By doing so will I erase everything in public_html? (I'm trying to save most of the apache config, external modules and public_html code so that I have a minimal amount of things to setup.)
The server was moved from a 65.181.125.xx address range to a 192.168.1.xx which I think might be the root of the issue.
grep output:
Any help appreciated. Cheers.
/etc/redhat-release:CentOS release 6.9 (Final)
/usr/local/cpanel/version:11.70.0.42
/var/cpanel/envtype:standard
CPANEL=release
Any help appreciated. Cheers.
Please sign in to leave a comment.
Comments
0 comments