Unable to access newly installed WHM.

karan4web

Member
May 11, 2014
6
0
51
cPanel Access Level
Website Owner
I was using my server without WHM. All services were installed by my previous technical guy but he dint install WHM.
So last night i installed WHM using SSH. and ever since i am unable to login to WHM, my website is down and my SSH root password is also not working.

I installed WHM following this link
Step 6: Install cPanel & WHM (or cPanel DNSONLY)

Opening my website using both domain name and IP ADDRESS gives me
www.my-domain.com/cgi-sys/defaultwebpage.cgi

Please any1 help.
 

karan4web

Member
May 11, 2014
6
0
51
cPanel Access Level
Website Owner
ok i have backed up my files. but as i am unable to use ssh with root password i am unable to backup my sql database. what can i do regarding that.
 

karan4web

Member
May 11, 2014
6
0
51
cPanel Access Level
Website Owner
I still have not setup the WHM. Is there anything i can do to get things back to normal?
I found this somewhere...

<VirtualHost *:80>
ServerName www.yourdomain.com
DocumentRoot /usr/local/apache/htdocs
ServerAdmin [email protected]
UserDir disable
</VirtualHost>
My files are hosted in var/www/XXXXX.com/public_html

will changing the path make my things back to normal?
 

karan4web

Member
May 11, 2014
6
0
51
cPanel Access Level
Website Owner
so if i setup WHM it will delete my sql data too? i asked the support team to help me with it and they say they can try. since i do not pay them for managing the virtual machine they wont be bothering much i am sure.
 

cPanelPeter

Senior Technical Analyst
Staff member
Sep 23, 2013
585
25
153
cPanel Access Level
Root Administrator
Hello,

You mentioned you can't access the server via ssh as the root user. This is normally by design. Can you access the server via ssh as a user? Then use su - to see if you can access root from there?

Once you have root, the best way to backup your MySQL database is to use mysqldump
 

karan4web

Member
May 11, 2014
6
0
51
cPanel Access Level
Website Owner
yes now i have the root access. the server guy did it for me.
so the domain is redirecting to /usr/local/apache/htdocs
I am trying to edit it and change to folder where my files were saved i.e /var/www/MYDOMAIN/public_html
will that help anyhow?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
Are you sure that you have created an account for this domain name using Web Host Manager?

Thank you.