Before we install the Openlispeed web server, there are some dependencies that need to be installed.<\/p>\n
sudo apt-get install build-essential libexpat1-dev libgeoip-dev libpcre3-dev zlib1g-dev libssl-dev libxml2-dev rcs libpng-dev build-essential libexpat1-dev libgeoip-dev libpng-dev openssl autoconf g++ make openssl libssl-dev libcurl4-openssl-dev libcurl4-openssl-dev pkg-config libsasl2-dev libzip-dev libxml2-dev sqlite3 libsqlite3-dev libonig-dev libpcre3-dev libudns-dev zlib1g-dev libssl-dev libxml2 libxml2-dev rcs libpng-dev -y<\/pre>\nThe next step is to download manually the installation of Openlitespeed since there is still no repo available for Ubuntu 22.04<\/p>\n
cd \/opt\r\n\r\nsudo wget wget https:\/\/openlitespeed.org\/packages\/openlitespeed-1.7.16.tgz<\/pre>\nOnce the installation is downloaded, you need to extract it with the following command:<\/p>\n
tar -xvzf openlitespeed-1.7.16.tgz<\/pre>\nTo start the OpenLiteSpeed installation, go into the openlitespeed<\/b> directory and execute the following command:<\/p>\ncd openlitespeed\/\r\n\r\nsh install.sh<\/pre>\nThe installation will start and you should receive the following output:<\/p>\n
Target_Dir:\/usr\/local\/lsws User:nobody Group:nogroup\r\nAdmin:admin Password:NjMyMzNm AdminSSL:yes ADMIN_PORT:7080\r\nLSINSTALL_DIR:\/opt\/openlitespeed\r\nTEMP_DIR:\/tmp\/lshttpd PID_FILE:\/tmp\/lshttpd\/lshttpd.pid\r\n\r\n-e Installing, please wait...<\/pre>\nAs you can see, there is a randomly generated admin password that you can use once the installation is completed. After successful installation, you should see the following output:\/p><\/p>\n
Updating lscmctl script...\r\nDone!\r\n\r\n-e Installation finished, Enjoy!\r\n\r\n-e Your webAdmin password is NjMyMzNm, written to file \/usr\/local\/lsws\/adminpasswd.<\/pre>\nNow, we need to start the openlitespeed service.<\/p>\n
sudo systemctl start openlitespeed<\/pre>\nTo check if the service is up and running, execute the command below:<\/p>\n
sudo systemctl status openlitespeed<\/pre>\nYou should receive the following output:<\/p>\n
root@host:\/opt\/openlitespeed# systemctl status openlitespeed\r\n\u25cf lshttpd.service - OpenLiteSpeed HTTP Server\r\n Loaded: loaded (\/lib\/systemd\/system\/lshttpd.service; enabled; vendor preset: enabled)\r\n Active: active (running) since Tue 2022-07-05 13:36:20 UTC; 26s ago\r\n Process: 88814 ExecStart=\/usr\/local\/lsws\/bin\/lswsctrl start (code=exited, status=0\/SUCCESS)\r\n Main PID: 88839 (litespeed)\r\n CGroup: \/system.slice\/lshttpd.service\r\n \u251c\u250088839 \"openlitespeed (lshttpd - main)\"\r\n \u251c\u250088849 \"openlitespeed (lscgid)\"\r\n \u251c\u250088878 \"openlitespeed (lshttpd - #01)\"\r\n \u251c\u250088879 \"openlitespeed (lshttpd - #02)\"\r\n \u251c\u250088880 \"openlitespeed (lshttpd - #03)\"\r\n \u251c\u250088881 \"openlitespeed (lshttpd - #04)\"\r\n \u2514\u250088882 lsphp \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\" \"\"\r\n\r\nJul 05 13:36:18 host.test.vps systemd[1]: Starting OpenLiteSpeed HTTP Server...<\/pre>\nNow you can access the OpenLiteSpeed at http:\/\/YourIpAddress:7080<\/b> using the admin password that you saved before.<\/p>\n
<\/p>\n
Once logged in, you will see the following screen:<\/p>\n
<\/p>\n
<\/span>Step 3. Change the HTTP port<\/span><\/h2>\nBy default, the newly installed Openlitespeed, is using the port “8080”. To change this port to the default HTTP port 80 do the following:<\/p>\n
On the left menu, click on “Listeners,” and on the Actions tab on the table, click on the “View” button.<\/p>\n
<\/p>\n
Then click on the “Edit” button:<\/p>\n
<\/p>\n
Change the port from 8088 to 80. Once changed save the changes as described in the picture below:<\/p>\n
<i<\/p>\n
When the changes are made you need to restart the Openlitespeed service by clicking on the green restart button.<\/p>\n
<\/p>\n