To install CyberPanel on a VPS, follow these steps:
- Connect to your VPS using SSH or any other remote access method.
- Update the system packages by running the command: sudo apt update.
- Install the required dependencies by running the command: sudo apt install -y tar wget nano.
- Download the installation script by running the command: wget -O install.sh https://cyberpanel.net/install.sh.
- Make the installation script executable by running the command: chmod +x install.sh.
- Execute the installation script by running the command: sudo bash install.sh.
- The installation process will start, and you'll be prompted to choose the version of CyberPanel you want to install. You can select either the OpenLiteSpeed or LiteSpeed Enterprise edition.
- After selecting the edition, the installation script will download and install all the necessary packages and components.
- Once the installation is complete, you'll be provided with the login details for CyberPanel control panel, including the username and password.
- Access the CyberPanel control panel by opening your web browser and entering the IP address or domain name of your VPS, followed by :8090. For example, http://your_server_ip:8090.
- Enter the username and password obtained in the previous step to log in to the CyberPanel control panel.
- After logging in, you can start configuring CyberPanel, adding websites, and managing your VPS effectively.
Note: These steps may vary depending on the operating system installed on your VPS and specific configurations. It is always recommended to refer to the official CyberPanel documentation for the most up-to-date installation instructions.
How to uninstall CyberPanel from a VPS?
To uninstall CyberPanel from a VPS, you can follow these steps:
- Connect to your VPS using SSH (Secure Shell). You can use tools like PuTTY (for Windows) or Terminal (for Mac/Linux).
- Once connected, log in as the root user or a user with sudo privileges.
- Stop the CyberPanel service by running the following command:
systemctl stop lscpd
- Uninstall CyberPanel by executing the following command:
sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh) --uninstall
This command will automatically uninstall CyberPanel and remove its files from your VPS.
- If you want to remove any leftover files or directories related to CyberPanel, you can run the following command:
rm -rf /usr/local/CyberPanel/ rm -rf /etc/litespeed/
These commands will delete the CyberPanel installation directory and the LiteSpeed directory, respectively. Make sure you're certain about deleting these files, as they won't be recoverable.
- Lastly, you can remove any remaining user files associated with CyberPanel by issuing the following command:
userdel -rf cyberpanel
This command will delete the user named "cyberpanel" and their home directory. If you used a different username during CyberPanel installation, replace "cyberpanel" with the appropriate username.
After completing these steps, CyberPanel should be uninstalled from your VPS. Make sure to double-check that all related files and directories have been removed.
How to set up backups in CyberPanel on a VPS?
To set up backups in CyberPanel on a VPS, you can follow these steps:
- Log in to your CyberPanel instance as the admin user.
- Go to the "Backup" section in the left sidebar.
- Click on the "Create Backup" button.
- In the backup creation form, you will see options to select the websites you want to include in the backup and the databases you want to include.
- Specify the backup destination folder. By default, it uses the default backup storage location in "/home/username/backups". You can optionally change it to a different location if desired.
- Decide if you want to compress the backup files. Compression helps reduce the size of the backup, but it may take longer to create the backup.
- Choose the backup frequency. You can set it to "One Time" if you only want to create a single backup, or you can select "Daily," "Weekly," or "Monthly" to create recurring backups.
- Set the time for the backup to run. This option is only available if you selected the "Daily," "Weekly," or "Monthly" frequency. Specify the hour and minute of the day when the backup should be initiated.
- Enable email notifications if you want to receive an email when the backup is completed or encounters any issues.
- Review the settings and click the "Backup" button to create the backup.
Once the backup is created, you can view the backup details in the backup list. From there, you can download the backup file, delete backups, or restore websites from backups if needed.
Note: It is recommended to store your backups in an offsite location or remote storage server for better security and protection against data loss.
What is the default username and password for CyberPanel?
The default username for CyberPanel is "admin" and the default password is the same as the root password of your server. However, it is always recommended to change the default password for security purposes after initial setup.
What is the procedure to enable remote MySQL access in CyberPanel?
To enable remote MySQL access in CyberPanel, follow the steps below:
- Log in to CyberPanel as the admin user.
- Go to the Websites -> List Websites section.
- Locate and click on the website for which you want to enable remote MySQL access.
- In the website dashboard, click on the "Manage Databases" option.
- Select the MySQL database that you want to allow remote access to.
- In the database details page, click on the "Access Hosts" tab.
- Add the IP address or IP range of the remote machine(s) that you want to grant access to in the "Access Host" field. You can add multiple IP addresses or IP ranges separated by commas. If you want to allow access from any IP, you can enter "%" (without quotes).
- Click on the "Add Host" button to add the remote access host.
- After adding the hosts, click on the "Save Changes" button to apply the changes.
- Remote access to the MySQL database will now be enabled for the specified hosts.
Note: Make sure to update the firewall settings to allow incoming connections to MySQL port (default: 3306) from the specified remote hosts.