Portal Home > Knowledgebase > Articles Database > amazon EC2 RedHat Linux server cpanel
amazon EC2 RedHat Linux server cpanel
Posted by loodwood, 09-10-2012, 08:19 AM |
how is cpanel installed in amazon EC2 RedHat Linux server
amazon AWS will not provide password for root so how do I use SSH secret key file to login??
|
Posted by BestServerSupport, 09-10-2012, 08:34 AM |
How to login using secret key in SSH:
1. chmod 400 yourkey.pem [mykey= the name of your secret key]
2. ssh -l USERNAME_HERE -i .ssh/yourkey.pem public-ec2-host
Once you login you can simply run following command to install cPanel:
1. cd /home — Opens the directory /home.
2. wget -N http://layer1.cpanel.net/latest — Fetches the latest installation file from the cPanel servers.
3. sh latest — Opens and runs the installation files.
4. /usr/local/cpanel/cpkeyclt — Activates your license after installation.
|
Posted by loodwood, 09-10-2012, 09:53 AM |
Thank you
1. chmod 400 yourkey.pem [mykey= the name of your secret key]
Is yourkey.pem just a name we save the key in our linux computer
|
Posted by BestServerSupport, 09-10-2012, 09:59 AM |
Yes, it should be the name of file which you have saved in your local Linux computer.
|
Posted by loodwood, 09-11-2012, 11:37 AM |
public-ec2-host
what should we put here
I get error
|
Posted by serve-you, 09-11-2012, 01:07 PM |
Your instances public IP provided by amazon (you should probably use an elastic IP here).
|
Posted by loodwood, 09-11-2012, 02:34 PM |
should the .pem key be converted to .ppk
|
Posted by serve-you, 09-11-2012, 04:41 PM |
Shouldn't be necessary, just be sure to set the permissions appropriately.
|
Posted by serve-you, 09-11-2012, 04:46 PM |
By the way, this is simply to give you SSH access to your ec2 instance. I don't know that installing cpanel will actually work, or even be useful if it does. ec2 isn't really the right platform for this since you can only have one elastic IP, so you'd have to bind everything to that IP.
|
Add to Favourites Print this Article
Also Read
micfo down? (Views: 679)