New cPanel & WHM for Linux Instance on Amazon

denverdataman

Active Member
Jun 21, 2016
35
2
58
Denver
cPanel Access Level
Root Administrator
I have created an Amazon EC2 image with the recommended image from cPanel (AWS Marketplace: cPanel & WHM for Linux).

I can get onto SSH and I see the hostname is the EC2 Instance Public DNS. However, if I got to the public DNS name I get a resolution error. If I go to the IP address as a domain name it redirects to the Public DNS name.

For anyone else seeing this post. If you accepted the default "Security Group" from Amazon it did not work for me. All traffic in and out of the server was blocked. This, of course, had to be changed.

Thanks,
Steve
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,293
1,279
313
Houston

denverdataman

Active Member
Jun 21, 2016
35
2
58
Denver
cPanel Access Level
Root Administrator
On a related note, I resized the disk and now I cannot access the machine at all. I cannot access the machine by SSH or the web. This is supposed to be solved in this iteration. Any ideas?

Thanks,
Steve
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,293
1,279
313
Houston
Hi @denverdataman

I'm having trouble locating where you're seeing that this should be resolved (not that it should be happening at all) would it be possible for you to link me the documentation where you're seeing that?
 

denverdataman

Active Member
Jun 21, 2016
35
2
58
Denver
cPanel Access Level
Root Administrator
@cPanelLauren I am not sure where I saw that. I think it was something I saw on an Amazon (AWS) Forum. Also, you are using a standard OS now and this would be at the OS level so I cannot imagine why the VM would be bricked by resizing the disk. The AWS Console reports that everything is running and with no alerts.

Thanks,
Steve
 

denverdataman

Active Member
Jun 21, 2016
35
2
58
Denver
cPanel Access Level
Root Administrator
Hi @cPanelLauren,

Before I shut down the machine, SSH, 80, 443 (without a signed certificate), and 2087 were all working correctly. I had purposely started the machine with a small (8GB) hard drive and cPanel was requesting more space. I turned off the machine from the command line and then sized the disk to 32 GB from the AWS Console.

Attached are screenshots of the port configuration on the AWS side.

Thanks,
Steve
 

Attachments

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,293
1,279
313
Houston
Hi @denverdataman

If you start the server do they allow console access to it so you can log in? The only thing I can think of is maybe it came back in Single User mode or somehow on the server (not through your AWS UI) the ports are closed. You can check the ports by running nmap from a linux CLI

Code:
nmap -Pn <IPAddress> -p 2087,22,80,443
 

denverdataman

Active Member
Jun 21, 2016
35
2
58
Denver
cPanel Access Level
Root Administrator
I have no access to the server at all. I cannot get it by SSH at all to execute any commands. I am not aware of any way to send a command to a server without SSH or another remote access protocol enabled. Can I open a ticket for this?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,293
1,279
313
Houston
Hi @denverdataman

The command I requested you run can be done from a different server. None the less your server being inaccessible isn't something we'd be able to assist with. This is something you'd need to address with Amazon, and while you're more than welcome to open a ticket we can't help without access to the server unfortunately.


Thanks!
 

Erdem Yasar

Registered
Aug 20, 2018
3
0
1
London
cPanel Access Level
Root Administrator
Hi There
I am having a similar issue

I have installed the Cpanel & WHM Image on a AWS instance.
I have followed all the required setup guides but I cannot access the https://<my IP>:2087 to continue on the setup.

I have changed the sudo password by accessing via SSH (putty) I have made sure that the ports are open..
I have spent hours trying to configure why its not working

Am I missing something ?
do I have to do anything on the SSH after installing the Image on the AWS Console?

Can you pleas help.

Thanks
Erdem
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,293
1,279
313
Houston
Hi @ERDEM YASAR


Can you confirm what version of cPanel you're running? In order to do this you'd need to access the server via SSH and run the following:

Code:
cat /usr/local/cpanel/version
Can you also ensure that cpsrvd is running:

Code:
/scripts/restartsrv_cpsrvd
And let me know the output of any of the above.

Thanks!
 

Erdem Yasar

Registered
Aug 20, 2018
3
0
1
London
cPanel Access Level
Root Administrator
Hi There when I do the requested commands I get the following output:


[[email protected] ~]$ cat /usr/local/cpanel/version
cat: /usr/local/cpanel/version: No such file or directory
[[email protected] ~]$

[[email protected] ~]$ /scripts/restartsrv_cpsrvd/scri
-bash: /scripts/restartsrv_cpsrvd/scri: No such file or directory
[[email protected] ~]$


I installed the AMI from the AWS Market Place and followed all the instruction guides

Thanks
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,293
1,279
313
Houston
Hi @ERDEM YASAR

It seems like cPanel may not actually be installed in your image. We do have an internal case on this open already NO-1347 but until it's resolved, can you please open a ticket using the link in my signature so that we can help you with installing cPanel. Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!
 
Last edited:

Erdem Yasar

Registered
Aug 20, 2018
3
0
1
London
cPanel Access Level
Root Administrator
Hi @ERDEM YASAR

It seems like cPanel may not actually be installed in your image. We do have an internal case on this open already NO-1347 but until it's resolved, can you please open a ticket using the link in my signature so that we can help you with installing cPanel. Once open please reply with the Ticket ID here so that we can update this thread with the resolution once the ticket is resolved.


Thanks!
I cant seem to be able to Login to submit a ticket
 

Freddy Delgado

Registered
May 2, 2019
1
0
1
Spain
cPanel Access Level
Website Owner
Hi,

I'm experiencing the same problem @denverdataman had

"I can get onto SSH and I see the hostname is the EC2 Instance Public DNS. However, if I got to the public DNS name I get a resolution error. If I go to the IP address as a domain name it redirects to the Public DNS name."

I used the guides to create a new EC2 instance, following all the steps one by one, twice. It doesn't work for me. Always redirect me to the private DNS name.

I'm using the version
11.78.0.21

Any sugestion?
Thanks!