Control Web Panel

WebPanel => Installation => Topic started by: aosweb on September 28, 2018, 11:11:14 AM

Title: How to install webpanel in Centos 6 instance of Amazon AWS E2
Post by: aosweb on September 28, 2018, 11:11:14 AM
I installed Centos6 instance in AWS - And trying to install Centos web panel. When i log through Putty with local ip i am unable to proceed my installation. Login as - root is denied and asks to login as user name = centos

When we log as centos user, it results

[centos@ip-xxx-xxx-x-xx ~]$

cd /usr/local/src

[centos@ip-xxx-xxx-x-xx src]$

we unable to execute the following command

[centos@ip-xxx-xxx-x-xx src]$ wget http://centos-webpanel.com/cwp-latest

-bash: wget: command not found

What shall i do further - Any Suggestions appreciated.

Thank You
Title: Re: How to install webpanel in Centos 6 instance of Amazon AWS E2
Post by: mytng on September 28, 2018, 01:01:54 PM
yum install wget -y
Title: Re: How to install webpanel in Centos 6 instance of Amazon AWS E2
Post by: aosweb on September 28, 2018, 03:50:50 PM
  yum install wget -y     This command did not worked - It says you need to use ROOT - but here it is just centos user
Title: Re: How to install webpanel in Centos 6 instance of Amazon AWS E2
Post by: Jamshed Datori on September 29, 2018, 01:05:02 AM
Quote from: aosweb on September 28, 2018, 03:50:50 PM
  yum install wget -y     This command did not worked - It says you need to use ROOT - but here it is just centos user

Use this command to get root access

sudo su
Title: SOLVED: How to install webpanel in Centos 6 instance of Amazon AWS E2
Post by: aosweb on September 29, 2018, 08:10:58 PM
Yes done - In AMAZON WEB SERVICE - we cannot log through ssh directly - so we need to follow the username of the specific server provided as default. For CENTOS the default user is centos

Then the following commands applied and installed centos web panel succesfully

Quotelogin as: centos
To reach root
Quotesudo su
To prepare VPS to get ready to install webpanel
Quoteyum -y install wget
Quoteyum -y update
Quotereboot
Reboot and relogin to server through SSH

START TO INSTALL THE CENTOS WEB PANEL
Quotelogin as: centos
To reach root
Quotesudo su
Set a Host Name - Must
Quotehostname xys.example.com
- Should be a subdomain of a working domain
If you install Centos 6 follow the below commands one by one
Quote
cd /usr/local/src
wget http://centos-webpanel.com/cwp-latest
sh cwp-latest
If you install Centos 7 follow the below commands one by one
Quote
cd /usr/local/src
wget http://centos-webpanel.com/cwp-el7-latest
sh cwp-el7-latest
Now the installation is over - you will get login credential details in the ssh
You need to copy those credentials and then REBOOT
You will get all the details of http and https url links to go to your centos web panel where you need to use root password.
As you do not know the root password while you install instance in AWS
Login again to the server through SSH
Quotelogin as: centos
To reach root
Quotesudo su
Now Change the password of root
Quotepasswd root
You will be asked to provide new password and again confirm the password
You need to remove the password of root in SSH  with the below command
Quotepasswd -d root
Now You need to reboot again
Quotereboot

You can find the centos web panel CWP ... you need to add the domain with relevant ip address to point the server.

Thats all the job is over.