Tag: cyberpanel

  • How to reset CyberPanel admin password

    How to reset CyberPanel admin password

    If you have lost the admin password for your CyberPanel, you can reset the password using SSH. Login to the CyberPanel server using SSH user root, then run the command

    adminPass NEW_PASSWORD_HERE

    Example

    [root@sok ~]# adminPass vmmKeNSnLo8k5thC
    Admin password successfully changed!
    [root@sok ~]# 

    After the password reset, you can log in at

    https://server-ip-here:8090
    User = admin
    Password = the one you set above.

    Back to CyberPanel

  • How to reset CyberPanel MySQL root Password

    How to reset CyberPanel MySQL root Password

    CyberPanel is a free hosting control panel. To find MySQL root password on CyberPanel server, run

    cat /etc/cyberpanel/mysqlPassword
    

    If you want to change MySQL root password on a CyberPanel server, reset MySQL root password as per

    Reset MySQL root Password

    Once the MySQL root password is reset, you need to modify the file

    /usr/local/CyberCP/CyberCP/settings.py
    

    Add the new password for user root and cyberpanel

    CyberPanel mysql root password

    Restart CyberPanel service with command

    systemctl restart lscpd
    

    See CyberPanel

  • Install CyberPanel on Ubuntu

    Install CyberPanel on Ubuntu

    To install CyberPanel on Ubuntu, run

    apt install -y wget
    wget https://cyberpanel.net/install.sh
    bash install.sh

    Once installed, you can log in to the admin area at

    URL: https://SERVER_IP:8090 
    Username: admin
    Password: password you set during installation

    Back to Cyberpanel

  • CyberPanel FTP not working on Ubuntu Server

    CyberPanel FTP not working on Ubuntu Server

    On CyberPanel server, FTP was not working. I checked the server with “netstat -lntp” command. No service was listening on port 21. Started pure-ftpd with command

    systemctl start pure-ftpd-mysql
    

    To start pure-ftpd on boot, run

    systemctl enable pure-ftpd-mysql
    

    Now FTP service started listening on port 21, but login to the FTP server failed with an error “Login authentication failed”.

    pure-ftpd on CyberPanel server uses MySQL authentication. We need to configure pure-ftpd to use the “users” table in “cyberpanel” database.

    Edit file

    vi /etc/pure-ftpd/db/mysql.conf
    

    In this file, you need to add MySQL login details

    MYSQLUser
    MYSQLPassword
    MYSQLDatabase   cyberpanel
    MYSQLCrypt      md5
    

    If you don’t have a MySQL user, create one with

    GRANT ALL PRIVILEGES ON *.* TO 'ftpadmin'@'localhost' IDENTIFIED BY 'USER_PASSWORD_HERE' WITH GRANT OPTION;
    GRANT PROXY ON ''@'' TO 'ftpadmin'@'localhost' WITH GRANT OPTION;
    

    Here is the example config

    MYSQLSocket      /var/run/mysqld/mysqld.sock
    MYSQLUser       ftpadmin
    MYSQLPassword   MYSQL_USER_PW_HERE
    MYSQLDatabase   cyberpanel
    MYSQLCrypt      md5
    MYSQLGetPW      SELECT Password FROM users WHERE User='\L'
    MYSQLGetUID     SELECT Uid FROM users WHERE User='\L'
    MYSQLGetGID     SELECT Gid FROM users WHERE User='\L'
    MYSQLGetDir     SELECT Dir FROM users WHERE User='\L'
    

    If you don’t have MySQL auth enabled, enable it with

    ln -s /etc/pure-ftpd/conf/MySQLConfigFile /etc/pure-ftpd/auth/30mysql
    

    Restart pure-ftp-mysql with

    systemctl restart pure-ftpd-mysql
    

    See CyberPanel

  • Change SSH port in CyberPanel

    Change SSH port in CyberPanel

    CyberPanel is a free open source control panel for web hosting. It use OpenLiteSpeed web server. You have the option to use Commercial LiteSpeed web server with CyberPanel.

    To change SSH port on CyberPanel server, login to CyberPanel, then go to

    Securiy > Secure SSH
    

    From the left side menu. On next page, you will get option to change SSH port.

    CyberPanel Change SSH port

    Once port is changed, click on “Save Changes” button. Now your SSH port changed to non standard port.

    Fix Web Terminal

    On side bar, you have “Web Terminal” that allow you to access sevrers terminal. If you change SSH port, this feature stop working. To get Web Terminal work again, you need to edit file

    vi /usr/local/CyberCP/WebTerminal/CPWebSocket.py
    

    Find

    DEFAULT_PORT = 22
    

    Replace with

    DEFAULT_PORT = 3333
    

    3333 – replace with your actual SSH port.

    Now you need to restart the cyberpanel, for this find the CyberPanel process with command

    ps aux | grep CPWebSocket
    

    Kill the process with

    kill -9 PID
    

    Example

    [root@musiverse ~]# ps aux | grep CPWebSocket
    root     188833  3.2  3.4 412708 35684 ?        Sl   17:19   0:41 /usr/local/CyberCP/bin/python /usr/local/CyberCP/WebTerminal/CPWebSocket.py
    root     189672  0.0  0.2 112808  2364 pts/2    S+   17:40   0:00 grep --color=auto CPWebSocket
    [root@musiverse ~]# kill -9 188833
    [root@musiverse ~]# 
    

    It will auto restart once you killed and Web Termianl on CyberPanel will work with custom SSH port.

    See CyberPanel

  • Install CyberPanel on CentOS 7

    Install CyberPanel on CentOS 7

    CyberPanel is a hosting control panel. CyberPanel uses OpenLiteSpeed, an open-source version of LiteSpeed Web server.

    CyberPanel with OpenLitespeed is Free to use.

    To install CyberPanel, run

    yum install -y wget
    wget https://cyberpanel.net/install.sh
    bash install.sh

    It asks you the number of MySQL instances. I selected option 1

    LiteSpeed CyberPanel install

    On next screen, it ask you to select MariaDB version. MariaDB is a MySQL drop in replacement, it work exactly like MySQL. Once install completed, installer displays login user name and password.

    You wil be able to login to CyberPanel at

    https://SERVER_IP:8090
    Panel username: admin
    Panel password: 1234567

    See LiteSpeed

  • CyberPanel

    Reset Password

    To list websites, run

    cyberpanel listWebsitesPretty

    Backup a website

    cyberpanel createBackup --domainName your-domain.com

    MySQL root password

    cat /etc/cyberpanel/mysqlPassword

    Urls

    CyberPanel: https://hostname:8090
    Webmail: 
    https://hostname:8090/rainloop/
    https://hostname:8090/snappymail/

    See Hosting Control Panel

  • How to Change User Password in CyberPanel

    How to Change User Password in CyberPanel

    Login to CyberPanel at

    https://YOUR_SERVER_IP_ADDR:8090

    Once logged in you will see

    Click on the drop-down icon. Click on the “Edit Profile” Link.

    The next page will have a drop-down box, where you can select the user you need to change password for.

    You can enter your new password on this page and click “Modify User” button to update user password.

    See CyberPanel