Today will be a refresher video on setting up Cpanel for Lightsail. A while back I did an introductory video on setting up Cpanel on Lightsail instance. This was when AWS introduced an blueprint/image of Cpanel for Lightsail instances. It was a popular video and based on comments and emails many of you found it useful. The process has changed a little so in this video I’ll walkthrough setting up
- Cpanel on Lightsail
- Perform basic security configuration and optimization
- Install an Antivirus software
- Install a Firewall
- Setup a couple of websites
Steps:
- Setup new instance.
- Attach a static IP
- Create IP and wait 2-5 minutes before attaching it to your instance
- Reset the password
- SSH into instance:
- Type
sudo passwd
- In your browser load https://your_ip_address:2087 to start the setup
- Change / Update the trial license with the static IP (If NEEDED)
- Login to Server again and finish setup
- Check IP Address configured in Cpanel
- Server Configuraiton -> Basic Webhost Manager Setup. change UP
- Update Service Manager and turn off un-needed services.
- Run Security Advisor
- Enable Apache Jail
- Install ImunifyAV (or Clam AV)
- Update system Kernal with sudo yum -y update and reboot the system
- Bind MySQL to local IP only
- Disable remoterootlogin sudo vi /etc/ssh/sshd_config,
- set PermitRootLogin to no
- Restart SSH
- Install CSF firewall
- wget https://download.configserver.com/csf.tgz
- tar -xzf csf.tgz
- cd csf
- sudo ./install.sh
- Setup Account
- Configure Cpanel Site Software Add-on for WordPress
- Install WordPress on the account
- Enable ModSecurity Rules Set (OWASP® ModSecurity CRS | cPanel & WHM Documentation)
All videos tutorials on the website as well as the YouTube channel aim to provide a simplified process for a specific scenario; there could be many different factors and unique use cases you may have. The tutorials may not cover every situation; so treat is as a starting point or learning concept to apply to your unique situations, and consider this inspiration but not prescription or explicit direction.