How to Install CyberPanel on CentOS 7

From LHYcloud Docs
Jump to navigation Jump to search

System Requirements

CPU: 1 Core minimum, 2vCore or more recommended

RAM: 1GB RAM minimum, 2GB or more recommended

Storage: 10GB or more

User: root

Prerequisites

  • Deploy a new Ubuntu 20.04 server
  • Server's IP Address should be static
  • Update your server using YUM

Installing CyberPanel

Ensure wget and curl is installed or install it using:

yum install wget -y
yum install curl -y

Run the installation script using:

sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)

It will show the following on SSH:

                               CyberPanel Installer v2.1.2

1. Install CyberPanel.
2. Addons and Miscellaneous
3. Exit.

Please enter the number[1-3]:

Select 1. Then it will ask for which Which webserver to choose as shown below:

                               CyberPanel Installer v2.1.2

RAM check : 122/981MB (18.76%)

Disk check : 4/30GB (13.33%) (Minimal 10GB free space)

1. Install CyberPanel with OpenLiteSpeed.

2. Install Cyberpanel with LiteSpeed Enterprise.

3. Exit.


  Please enter the number[1-3]:

Select which version of LiteSpeed to install. OpenLitespeed is FREE whereas Litespeed Enterprise has a monthly subscription. If you select LiteSpeed Enterprise, please ensure that you have obtained a license key first. It is free for 1 domain, but you still need to obtain the key.

Select either 1 or 2 based on your requirement. Next you will be presented with a series of prompts for different options and add-ons that are available. Enter Y for full service installation:

Install Full service for CyberPanel? This will include PowerDNS, Postfix and Pure-FTPd.
Full installation [Y/n]:

or choose from a series of prompts.

Next press ENTER for the following screen:

Press Enter key to continue with latest version or 
Enter specific version such as: 1.9.4 , 1.9.5 ...etc

You will be asked to choose the default password, random password or set your own password. Choose whatever option suits you best:

Please choose to use default admin password 1234567, 
randomly generate one (recommended) or 
specify the admin password?

Choose [d]fault, [r]andom or [s]et password: [d/r/s]

Next, the installer would ask whether Memcached, Redis and Watchdog should be installed. Select Y for all those options:

Do you wish to install Memcached extension and backend?
Please select [Y/n]:
Do you wish to install Redis extension and backend?
Please select [Y/n]:
Would you like to set up a WatchDog (beta) for Web service and Database service ?
The watchdog script will be automatically started up after installation and server reboot
If you want to kill the watchdog , run watchdog kill
Please type Yes or no (with capital Y, default Yes):

The installation process will proceed automatically. It will take 5-10 minutes, depending on the speed of your server.

The script will install CyberPanel, along with its extensions. When finished, the script will display your administrator details.

###################################################################
                CyberPanel Successfully Installed

                Current Disk usage : 7/30GB (26%)

                Current RAM  usage : 313/981MB (31.91%)

                Installation time  : 0 hrs 11 min 0 sec

                Visit: https://<your server's IP address>:8090
                Panel username: admin
                Panel password: <the password you set during installation>
                Visit: <your server's IP address>:7080
                WebAdmin console username: admin
                WebAdmin console password: JPOsnUIKms76hb

                Visit: https://<your server's IP address>:8090/rainloop/?admin
                Rainloop Admin username: admin
                Rainloop Admin password: yGKFEp4I3nR7xN

             Run cyberpanel help to get FAQ info
             Run cyberpanel upgrade to upgrade it to latest version.
             Run cyberpanel utility to access some handy tools .

              Website : https://www.cyberpanel.net
              Forums  : https://forums.cyberpanel.net
              Wikipage: https://docs.cyberpanel.net
              Docs    : https://cyberpanel.net/docs/

            Enjoy your accelerated Internet by
                CyberPanel & OpenLiteSpeed
###################################################################
If your provider has a network-level firewall
Please make sure you have opened following port for both in/out:
TCP: 8090 for CyberPanel
TCP: 80, TCP: 443 and UDP: 443 for webserver
TCP: 21 and TCP: 40110-40210 for FTP
TCP: 25, TCP: 587, TCP: 465, TCP: 110, TCP: 143 and TCP: 993 for mail service
TCP: 53 and UDP: 53 for DNS service

The installer will then ask whether server should be restarted. Enter Y or enter “reboot” later after you have performed other desired operations.

Would you like to restart your server now? [y/N]:

Configure CyberPanel

Visit your server's IP address at port 8090 on a browser. For example:

https://x.x.x.x:8090 (where x.x.x.x is your server's IP Address)

You can login using the username and password that you had set during the time of installation.

Common Commands

Restart CyberPanel using:

systemctl restart lscpd

Change LiteSpeed Console password using:

/usr/local/lsws/admin/misc/admpass.sh

Check MySQL/MariaDB root password using:

cat /etc/cyberpanel/mysqlPassword

Troubleshooting

503 Error After Install

If you get a 503 error after installing CyberPanel, you can do one of the following things.

1. Check LSCPD Status.

systemctl status lscpd

If LSCPD is not running, start LSCPD using:

systemctl start lscpd

2. Manually set up virtualevn

source /usr/local/CyberCP/bin/activate
pip install --ignore-installed -r /usr/local/CyberCP/requirments.txt
deactivate
virtualenv --system-site-packages /usr/local/CyberCP
systemctl restart lscpd

3. Install Logs

If you are still having issues after these steps, you can try to find errors in the install logs, they are located at:

/var/log/installLogs.tx

References

CyberPanel Docs