Install Vesta Control Panel For Web Hosting On Amazon Lightsail AWS via CentOS 7


woman-2937216_640.jpg

My Vesta CP

First, create a Debian instance in Amazon AWS Lightsail;

Debian with 1GB RAM and 40GB hard disk;

Now, open these ports in the networking tab of Lightsail AWS Debian instance;

In the SSH window, run these commands;

sudo su

curl -O http://c.myvestacp.com/vst-install-debian.sh

sudo bash vst-install-debian.sh –apache yes –nginx yes –phpfpm no –vsftpd no –proftpd no –named yes –mysql yes –postgresql no –exim no –dovecot no –clamav no –spamassassin no –iptables no –fail2ban no –quota no –force no –interactive yes –port 8083 –hostname host.com –email aatayyab@yahoo.com –password abcdef –lang en

To generate myVesta installation script;

Minimal myVesta

MyVesta Without E-mail

https://www.myvestacp.com/install_generator.html

To install file manager;

To install Softaculous;

Install WordPress Via One Script

sudo /usr/local/vesta/bin/v-install-wordpress yourdomain.com

More about this script can be found at;

https://github.com/lukapaunovic/create_wp/


Standard Vesta CP Installation

Choose $3.50 per month plan (first month free) with these specs;

512 MB Memory
1 Core Processor
20 GB SSD Disk
1 TB Transfer

Login to your Amazon Lightsail via this URL;

1.jpg

Use this URL to go directly to Amazon Lightsail Instances;

https://lightsail.aws.amazon.com/ls/webapp/home/instances

2.jpg

Click “Create Instance” link;

3.jpg

Select “Linux/Unix” as a platform and “OS only” to choose “CentOS 7” option;

4.jpg

After the instance is created, click the three dots next to it;

5.jpg

And from the drop-down menu, select “Manage” option;

6.jpg

Next, click the “Networking” tab and “Attach static IP” option;

7.jpg

To open vesta control panel ports for SSL and FTP, go back to the Lightsail Instance and click the Networking tab. Click “Add another” to add TCP port 21, HTTPS TCP port 443, Custom TCP ports 12044, Custom TCP port 990,  49152-65535 and Custom TCP port 8083;

vesta control panel ports

Now, click the “Connect using SSH” option under “Connect” tab;

To login as a root user and update the newly installed server, issue these commands via SSH window;

sudo yum update

sudo su

To change root password of Cento OS 7:

In the AWS Lightsail SSH window, just enter this command to create new password;

sudo su (to login as ROOT)

passwd (to create new ROOT password)

8.jpg

And issue this command;

curl -O http://vestacp.com/pub/vst-install.sh

For an easier copy/paste option, click the “paste” button on the bottom-right hand corner;

9.jpg

Open this URL in another browser tab;

http://vestacp.com/install/

And select these options i.e.

Web: apache FTP: proftpd Mail: no DNS: named Firewall: no softaculous: no additional repository: no File System Quote: no DB: MySQL, yourhostwebsite.com, E-mail: yourname@domain.com and desired password for Vest CP admin username;

1
2

Select the above options and click “Generate script”;

bash vst-install.sh –nginx no –apache yes –phpfpm no –named yes –remi no –vsftpd no –proftpd yes –iptables no –fail2ban no –quota no –exim no –dovecot no –spamassassin no –clamav no –softaculous no –mysql yes –postgresql no –hostname abc.com –email aatayyab@yahoo.com –password 123

Run this script in the SSH window;

10.jpg

After 15 minutes of running the above command, you will be presented with a screen of IP address, username and password to access Vesta control panel. Note it down;

11.jpg
12.jpg

Next issue this command in the browser window to run Vesta control panel;

https://ipaddress:8083

Click “Show advanced” and then click “Proceed to ip address (not safe)” option at the bottom;

13.jpg

You will be presented with the CentOS username and password screen;

Use these commands (via SSH) to find out the version name of Linux operating system installed;

hostnamectl
cat /etc/centos-release

FTP Login Error

Issue these commands in SSH window;

cd /etc
vi proftpd.conf

Press i (to start editing)

Add this line in /etc/proftpd.conf file;

PassivePorts 49152 65535

Press Esc and then :qw to exit while saving changes.

If you get timeout error via your FTP client like this one;

Connect socket #1156 to 12.1234.123.123, port 12061…
timeout
Connection timed out
Error loading directory…

Simply switch your ISP internet connection to see if it gets fixed. 

Courtesy:

https://bobcares.com/blog/ftp-read-timed-out/

One thought on “Install Vesta Control Panel For Web Hosting On Amazon Lightsail AWS via CentOS 7

  1. Hello and thank you for tutorial, it was very helpful. Now I have an issue, I can’t access to accounts created in the control panel via lightsail’s private key neither via ftp because permissions. I don’t know how can I get access for users created in the panel, maybe you faced this problem and can guide me. Regards.

    Liked by 1 person

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s