<\/span><\/h2>\n\n\n\nLog in to your Ubuntu 20.04 VPS with SSH as a root user or as a regular user with sudo privileges:<\/p>\n\n\n\n
ssh root@IP_Address -p Port_Number<\/pre>\n\n\n\nOf course, you will need to replace IP_Address<\/code> and Port_Number<\/code> with your actual server IP address and SSH port number.<\/p>\n\n\n\nThen, run the following command to make sure that all installed packages on the server are updated to the latest available version:<\/p>\n\n\n\n
apt update && sudo apt upgrade<\/pre>\n\n\n\n<\/span>Step 2: Download and Install OpenLiteSpeed<\/span><\/h2>\n\n\n\nThe following command will add the necessary repository to your server for the OpenLiteSpeed server installation.<\/p>\n\n\n\n
wget -O - http:\/\/rpms.litespeedtech.com\/debian\/enable_lst_debain_repo.sh | bash<\/pre>\n\n\n\nRun the following command to install the latest version of the OpenLiteSpeed server.<\/p>\n\n\n\n
apt install openlitespeed<\/pre>\n\n\n\nOnce the installation is complete, you can start the OpenLiteSpeed service with the following command:<\/p>\n\n\n\n
systemctl start lshttpd<\/pre>\n\n\n\nTo verify if the OpenLiteSpeed service is up and running, run the following command:<\/p>\n\n\n\n
systemctl status lshttpd<\/pre>\n\n\n\nOutput:<\/p>\n\n\n\n
\u25cf lshttpd.service - OpenLiteSpeed HTTP Server\nLoaded: loaded (\/etc\/systemd\/system\/lshttpd.service; enabled; vendor preset: enabled)\nActive: active (running)\nProcess: 4124 ExecStart=\/usr\/local\/lsws\/bin\/lswsctrl start (code=exited, status=0\/SUCCESS)\nMain PID: 4157 (litespeed)\nCGroup: \/system.slice\/lshttpd.service\n\u251c\u25004157 openlitespeed (lshttpd - main)\n\u251c\u25004166 openlitespeed (lscgid)\n\u251c\u25004195 openlitespeed (lshttpd - #01)\n\u2514\u25004196 lsphp<\/pre>\n\n\n\nWe also recommend enabling OpenLiteSpeed to start on server boot:<\/p>\n\n\n\n
systemctl enable lshttpd\n<\/pre>\n\n\n\nBy default, OpenLiteSpeed listens on port 8088<\/code>. It is recommended that you change the default port to 80. To do so, edit the OpenLiteSpeed default configuration file:<\/p>\n\n\n\nnano \/usr\/local\/lsws\/conf\/httpd_config.conf<\/pre>\n\n\n\nFind the following lines:<\/p>\n\n\n\n
listener Default{\naddress *:8088\nsecure 0\nmap Example *\n}\n<\/pre>\n\n\n\nAnd, replace the port 8088<\/code> to 80<\/code>:<\/p>\n\n\n\nlistener Default{\naddress *:80\nsecure 0\nmap Example *\n}\n<\/pre>\n\n\n\nSave and close the file, then restart the OpenLiteSpeed service to apply the changes:<\/p>\n\n\n\n
systemctl restart lshttpd<\/pre>\n\n\n\nOpen your browser and type the server IP address http:\/\/your-ip-address<\/code> You should see the OpenLiteSpeed default page:<\/p>\n\n\n\n <\/figure>\n\n\n\n<\/span>Step 3: Create OpenLiteSpeed Admin User<\/span><\/h2>\n\n\n\nThe OpenLiteSpeed server has an admin dashboard. To access it securely, you need to create an admin account and set a password:<\/p>\n\n\n\n
\/usr\/local\/lsws\/admin\/misc\/admpass.sh<\/pre>\n\n\n\nSet your admin username and password as shown below:<\/p>\n\n\n\n
Please specify the user name of administrator.\nThis is the user name required to login the administration Web interface.\n\nUser name [admin]: admin\n\nPlease specify the administrator's password.\nThis is the password required to login the administration Web interface.\n\nPassword: \nRetype password: \nAdministrator's username\/password is updated successfully!<\/pre>\n\n\n\n