Ref: https://openlitespeed.org/kb/install-from-binary/
https://www.vultr.com/docs/how-to-install-openlitespeed-on-ubuntu-16-04
https://www.howtoforge.com/tutorial/how-to-install-and-configure-openlitespeed-server-on-ubuntu-1804-along-with-mariadb/
Step 1: Update your server
|
1 |
sudo apt-get update |
Step 2: Install OpenLiteSpeed
Install dependencies
|
1 |
sudo apt-get install build-essential libexpat1-dev libgeoip-dev libpcre3-dev zlib1g-dev libssl-dev libxml2-dev rcs libpng-dev |
Download the latest stable from https://openlitespeed.org/downloads/
|
1 |
wget https://openlitespeed.org/packages/openlitespeed-1.5.8.tgz |
Extract the downloaded file
|
1 |
tar -xvzf openlitespeed-1.5.8.tgz |
Go to ‘openlitespeed’ directory that newly created
|
1 |
cd openlitespeed/ |
XXXConfigure and compile OpenLiteSpeed with the following command. This will install OpenLiteSpeed inside of the ‘/usr/local/lsws/’ directory.XXX
I don’t find ‘configure’ but I found ‘install.sh’. SO use the file to install it.
|
1 |
teddy@teddy:~/openlitespeed$ sudo ./install.sh |
Here is the verbose
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 |
teddy@teddy:~/openlitespeed$ sudo ./install.sh INSTALL_TYPE is reinstall Cannot find RUBY installation, remember to fix up the ruby path configuration before you can use our easy RubyOnRails setup. Target_Dir:/usr/local/lsws User:nobody Group:nogroup Admin:admin Password:123456 AdminSSL:yes ADMIN_PORT:7080 LSINSTALL_DIR:/home/teddy/openlitespeed TEMP_DIR:/tmp/lshttpd PID_FILE:/tmp/lshttpd/lshttpd.pid -e Installing, please wait... Admin SSL enabled! ./_in.sh: 1129: ./_in.sh: source: not found Generating a 2048 bit RSA private key .....................................................................................+++++ ............+++++ writing new private key to 'privkey.pem' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:State or Province Name (full name) [Some-State]:Locality Name (eg, city) []:Organization Name (eg, company) [Internet Widgits Pty Ltd]:Organizational Unit Name (eg, section) []:Common Name (e.g. server FQDN or YOUR name) []:Email Address []: Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []:An optional company name []: Certificate Request: Data: Version: 1 (0x0) Subject: C = US, ST = New Jersey, L = Virtual, O = LiteSpeedCommunity, OU = Testing, CN = webadmin Subject Public Key Info: Public Key Algorithm: rsaEncryption RSA Public-Key: (2048 bit) Modulus: 00:cb:9f:20:e8:6a:ff:b4:df:20:81:5b:0c:74:e2: d1:7d:fc:ea:43:a3:19:4b:f4:43:07:4c:58:86:fa: c3:83:0f:5c:13:83:44:6f:9f:17:9c:dc:f0:b2:e5: ce:76:00:a4:4a:d9:e4:06:81:1e:2d:59:1c:61:70: 96:ae:1f:d7:14:47:60:f4:17:4e:9a:88:a3:3a:69: 02:09:10:44:ce:5f:73:b9:69:f4:d0:b0:c1:cd:bf: ce:8b:59:ab:15:8f:49:39:5d:00:d3:7e:36:95:73: c5:4d:69:1c:e3:a9:7a:e8:c7:5c:13:ba:c4:86:26: a3:07:74:8e:62:ab:f5:4c:4a:2d:83:a2:23:54:32: 48:48:ce:b9:d7:6c:f9:53:48:47:9b:bf:7f:ee:e7: 2f:04:09:a8:0e:8d:65:1b:a0:15:b5:80:20:40:9e: 13:77:40:4c:dc:0d:20:20:75:97:b1:8f:73:0b:90: 22:f3:ba:49:79:39:b8:85:32:3f:c1:c3:2c:4f:b6: 6d:39:be:28:62:5e:f0:71:5c:52:64:cc:e3:af:cd: 1d:09:96:85:24:7a:bf:b2:3f:a7:d4:3c:ac:47:d3: cb:88:bd:b7:8f:8b:bf:d0:12:2f:4f:16:65:f2:ad: 7b:9a:57:a5:eb:77:2b:4a:ca:4d:3a:2c:1b:83:64: 72:27 Exponent: 65537 (0x10001) Attributes: a0:00 Signature Algorithm: sha256WithRSAEncryption 87:70:e4:04:a7:e9:47:1b:b1:bc:24:be:07:2b:0e:53:fa:37: cb:b8:50:9b:0b:ea:87:bd:b3:e5:64:ed:a6:f3:f6:26:69:67: 03:42:4f:0d:b9:4d:1d:c4:5f:50:14:26:ae:21:f6:6f:99:26: 93:72:bf:d7:67:42:52:58:a5:dd:02:bd:be:31:15:9a:28:fd: c2:a5:05:97:3e:52:06:35:f3:7e:89:e5:cb:e7:a6:18:ab:e6: c9:3d:cb:14:6a:7a:2e:2b:c8:28:e6:05:ed:30:90:49:dd:21: a3:36:40:40:cb:19:33:2b:0b:b5:7a:31:fd:4c:9e:93:b7:1a: c1:a2:e1:49:67:ba:d8:75:c2:19:9a:28:8a:28:9c:09:63:d9: 17:fc:54:b7:17:2a:31:e6:e9:7e:56:97:19:11:39:ca:c0:4b: 8f:8c:a0:28:22:ed:58:e0:08:de:b8:d6:91:a6:0c:bd:59:f7: 6f:71:b2:93:f3:1d:c8:ff:b4:b5:b5:ed:9e:25:32:8d:3f:df: 5b:b6:5c:26:f1:7f:71:95:0e:ce:32:fb:82:86:35:31:65:83: b1:79:9f:d2:ca:93:50:73:7c:45:76:e0:8c:ff:c9:f7:4e:d7: de:3b:c9:fc:56:ee:1b:4c:70:a0:56:18:d7:78:5e:96:c8:bb: 64:08:93:5a writing RSA key Signature ok subject=C = US, ST = New Jersey, L = Virtual, O = LiteSpeedCommunity, OU = Testing, CN = webadmin Getting Private key SSL host is [webadmin], use adminSSL download comamnd is wget -nv -O 2019-11-17 21:26:44 URL:http://www.litespeedtech.com/packages/lsphp5_bin/x86_64/lsphp5 [4902224/4902224] -> "/usr/local/lsws/admin/fcgi-bin/admin_php" [1] admin_php downloaded. Current platform is UBUNTU16 ubuntu xenial. grep: /etc/apt/sources.list.d/lst_debian_repo.list: No such file or directory --2019-11-17 21:26:44-- http://rpms.litespeedtech.com/debian/lst_debian_repo.gpg Resolving rpms.litespeedtech.com (rpms.litespeedtech.com)... 34.210.113.18 Connecting to rpms.litespeedtech.com (rpms.litespeedtech.com)|34.210.113.18|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1198 (1,2K) [application/octet-stream] Saving to: ‘/etc/apt/trusted.gpg.d/lst_debian_repo.gpg’ /etc/apt/trusted.gp 100%[===================>] 1,17K --.-KB/s in 0,1s 2019-11-17 21:26:44 (11,7 KB/s) - ‘/etc/apt/trusted.gpg.d/lst_debian_repo.gpg’ saved [1198/1198] --2019-11-17 21:26:44-- http://rpms.litespeedtech.com/debian/lst_repo.gpg Resolving rpms.litespeedtech.com (rpms.litespeedtech.com)... 34.210.113.18 Connecting to rpms.litespeedtech.com (rpms.litespeedtech.com)|34.210.113.18|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 2336 (2,3K) [application/octet-stream] Saving to: ‘/etc/apt/trusted.gpg.d/lst_repo.gpg’ /etc/apt/trusted.gp 100%[===================>] 2,28K --.-KB/s in 0,1s 2019-11-17 21:26:45 (22,9 KB/s) - ‘/etc/apt/trusted.gpg.d/lst_repo.gpg’ saved [2336/2336] Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease Hit:2 http://kambing.ui.ac.id/ubuntu xenial InRelease Get:3 http://dl.google.com/linux/chrome/deb stable Release [943 B] Hit:4 http://kambing.ui.ac.id/ubuntu xenial-updates InRelease Hit:5 https://dl.yarnpkg.com/debian stable InRelease Hit:6 http://kambing.ui.ac.id/ubuntu xenial-backports InRelease Hit:7 http://packages.microsoft.com/repos/vscode stable InRelease Hit:9 http://kambing.ui.ac.id/ubuntu xenial-security InRelease Hit:10 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease Hit:11 https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease Hit:12 https://packages.microsoft.com/ubuntu/16.04/mssql-server-2017 xenial InRelease Ign:13 http://rpms.litespeedtech.com/debian xenial InRelease Hit:14 https://download.docker.com/linux/ubuntu xenial InRelease Hit:15 https://repo.skype.com/deb stable InRelease Hit:16 http://ppa.launchpad.net/audio-recorder/ppa/ubuntu xenial InRelease Hit:18 http://linux.teamviewer.com/deb stable InRelease Get:20 http://rpms.litespeedtech.com/debian xenial Release [1.662 B] Hit:21 https://artifacts.elastic.co/packages/7.x/apt stable InRelease Hit:22 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu xenial InRelease Hit:19 https://packages.cloud.google.com/apt kubernetes-xenial InRelease Get:23 http://rpms.litespeedtech.com/debian xenial Release.gpg [836 B] Hit:24 http://ppa.launchpad.net/geany-dev/ppa/ubuntu xenial InRelease Ign:25 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 InRelease Hit:26 https://download.mono-project.com/repo/ubuntu vs-xenial InRelease Get:27 http://rpms.litespeedtech.com/debian xenial/main amd64 Packages [22,5 kB] Hit:28 https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 Release Hit:29 http://ppa.launchpad.net/george-edison55/nitroshare/ubuntu xenial InRelease Get:31 http://packages.blackfire.io/debian any InRelease [23,2 kB] Ign:17 http://www.getdeb.net/ubuntu xenial-getdeb InRelease Get:32 http://rpms.litespeedtech.com/debian xenial/main i386 Packages [16,6 kB] Hit:33 http://ppa.launchpad.net/inkscape.dev/stable/ubuntu xenial InRelease Hit:35 http://ppa.launchpad.net/obsproject/obs-studio/ubuntu xenial InRelease Ign:34 http://www.getdeb.net/ubuntu xenial-getdeb Release Hit:36 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease Hit:39 http://ppa.launchpad.net/ubuntu-mate-dev/xenial-mate/ubuntu xenial InRelease Ign:37 http://www.getdeb.net/ubuntu xenial-getdeb/apps amd64 Packages.diff/Index Hit:41 http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial InRelease Ign:38 http://www.getdeb.net/ubuntu xenial-getdeb/apps i386 Packages.diff/Index Hit:43 http://ppa.launchpad.net/webupd8team/java/ubuntu xenial InRelease Ign:40 http://www.getdeb.net/ubuntu xenial-getdeb/apps all Packages.diff/Index Ign:42 http://www.getdeb.net/ubuntu xenial-getdeb/apps Translation-en_US.diff/Index Ign:44 http://www.getdeb.net/ubuntu xenial-getdeb/apps Translation-en.diff/Index Ign:45 http://www.getdeb.net/ubuntu xenial-getdeb/apps amd64 DEP-11 Metadata.diff/Index Ign:46 http://www.getdeb.net/ubuntu xenial-getdeb/apps DEP-11 64x64 Icons.diff/Index Ign:47 http://www.getdeb.net/ubuntu xenial-getdeb/apps amd64 Packages Ign:48 http://www.getdeb.net/ubuntu xenial-getdeb/apps i386 Packages Ign:49 http://www.getdeb.net/ubuntu xenial-getdeb/apps all Packages Ign:50 http://www.getdeb.net/ubuntu xenial-getdeb/apps Translation-en_US Ign:51 http://www.getdeb.net/ubuntu xenial-getdeb/apps Translation-en Ign:52 http://www.getdeb.net/ubuntu xenial-getdeb/apps amd64 DEP-11 Metadata Ign:53 http://www.getdeb.net/ubuntu xenial-getdeb/apps DEP-11 64x64 Icons Ign:47 http://www.getdeb.net/ubuntu xenial-getdeb/apps amd64 Packages Ign:48 http://www.getdeb.net/ubuntu xenial-getdeb/apps i386 Packages Ign:49 http://www.getdeb.net/ubuntu xenial-getdeb/apps all Packages Ign:50 http://www.getdeb.net/ubuntu xenial-getdeb/apps Translation-en_US Ign:51 http://www.getdeb.net/ubuntu xenial-getdeb/apps Translation-en Ign:52 http://www.getdeb.net/ubuntu xenial-getdeb/apps amd64 DEP-11 Metadata Ign:53 http://www.getdeb.net/ubuntu xenial-getdeb/apps DEP-11 64x64 Icons Ign:47 http://www.getdeb.net/ubuntu xenial-getdeb/apps amd64 Packages Ign:48 http://www.getdeb.net/ubuntu xenial-getdeb/apps i386 Packages Ign:49 http://www.getdeb.net/ubuntu xenial-getdeb/apps all Packages Ign:50 http://www.getdeb.net/ubuntu xenial-getdeb/apps Translation-en_US Ign:51 http://www.getdeb.net/ubuntu xenial-getdeb/apps Translation-en Ign:52 http://www.getdeb.net/ubuntu xenial-getdeb/apps amd64 DEP-11 Metadata Ign:53 http://www.getdeb.net/ubuntu xenial-getdeb/apps DEP-11 64x64 Icons Ign:47 http://www.getdeb.net/ubuntu xenial-getdeb/apps amd64 Packages Ign:48 http://www.getdeb.net/ubuntu xenial-getdeb/apps i386 Packages Ign:49 http://www.getdeb.net/ubuntu xenial-getdeb/apps all Packages Ign:50 http://www.getdeb.net/ubuntu xenial-getdeb/apps Translation-en_US Ign:51 http://www.getdeb.net/ubuntu xenial-getdeb/apps Translation-en Ign:52 http://www.getdeb.net/ubuntu xenial-getdeb/apps amd64 DEP-11 Metadata Ign:53 http://www.getdeb.net/ubuntu xenial-getdeb/apps DEP-11 64x64 Icons Ign:47 http://www.getdeb.net/ubuntu xenial-getdeb/apps amd64 Packages Ign:48 http://www.getdeb.net/ubuntu xenial-getdeb/apps i386 Packages Ign:49 http://www.getdeb.net/ubuntu xenial-getdeb/apps all Packages Ign:50 http://www.getdeb.net/ubuntu xenial-getdeb/apps Translation-en_US Ign:51 http://www.getdeb.net/ubuntu xenial-getdeb/apps Translation-en Ign:52 http://www.getdeb.net/ubuntu xenial-getdeb/apps amd64 DEP-11 Metadata Ign:53 http://www.getdeb.net/ubuntu xenial-getdeb/apps DEP-11 64x64 Icons Err:47 http://www.getdeb.net/ubuntu xenial-getdeb/apps amd64 Packages 403 Forbidden Ign:48 http://www.getdeb.net/ubuntu xenial-getdeb/apps i386 Packages Ign:49 http://www.getdeb.net/ubuntu xenial-getdeb/apps all Packages Ign:50 http://www.getdeb.net/ubuntu xenial-getdeb/apps Translation-en_US Ign:51 http://www.getdeb.net/ubuntu xenial-getdeb/apps Translation-en Ign:52 http://www.getdeb.net/ubuntu xenial-getdeb/apps amd64 DEP-11 Metadata Fetched 65,7 kB in 20s (3.166 B/s) Reading package lists... Error! W: The repository 'http://archive.getdeb.net/ubuntu xenial-getdeb Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch http://www.getdeb.net/ubuntu/dists/xenial-getdeb/apps/binary-amd64/Packages 403 Forbidden E: Failed to fetch http://www.getdeb.net/ubuntu/dists/xenial-getdeb/apps/dep11/icons-64x64.tar 403 Forbidden E: Some index files failed to download. They have been ignored, or old ones used instead. E: Unable to parse package file /var/lib/apt/lists/archive.getdeb.net_ubuntu_dists_xenial-getdeb_apps_binary-amd64_Packages (1) E: Unable to parse package file /var/lib/apt/lists/archive.getdeb.net_ubuntu_dists_xenial-getdeb_apps_binary-i386_Packages (1) E: Unable to parse package file /var/lib/apt/lists/archive.getdeb.net_ubuntu_dists_xenial-getdeb_apps_binary-all_Packages (1) E: Unable to parse package file /var/lib/apt/lists/archive.getdeb.net_ubuntu_dists_xenial-getdeb_apps_i18n_Translation-en%5fUS (1) E: Unable to parse package file /var/lib/apt/lists/archive.getdeb.net_ubuntu_dists_xenial-getdeb_apps_i18n_Translation-en (1) W: You may want to run apt-get update to correct these problems E: The package cache file is corrupted Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: geany-plugin-addons geany-plugin-autoclose geany-plugin-automark geany-plugin-codenav geany-plugin-commander geany-plugin-ctags geany-plugin-defineformat geany-plugin-doc geany-plugin-extrasel geany-plugin-gendoc geany-plugin-geniuspaste geany-plugin-insertnum geany-plugin-keyrecord geany-plugin-latex geany-plugin-lineoperations geany-plugin-lipsum geany-plugin-lua geany-plugin-macro geany-plugin-miniscript geany-plugin-numberedbookmarks geany-plugin-overview geany-plugin-pairtaghighlighter geany-plugin-pg geany-plugin-pohelper geany-plugin-prettyprinter geany-plugin-prj geany-plugin-projectorganizer geany-plugin-sendmail geany-plugin-shiftcolumn geany-plugin-spellcheck geany-plugin-tableconvert geany-plugin-treebrowser geany-plugin-updatechecker geany-plugin-vc geany-plugin-workbench geany-plugin-xmlsnippets geany-plugins-common libctpl2 libfsharp-core4.3-cil liblockfile-bin liblockfile1 libnunit-cil-dev libnunit-console-runner2.6.3-cil libnunit-core-interfaces2.6.3-cil libnunit-core2.6.3-cil libnunit-framework2.6.3-cil libnunit-mocks2.6.3-cil libnunit-util2.6.3-cil libssh2-1 libtidy5 libzip5 php7.2-sqlite3 python-cliapp python-markdown python-ttystatus python-yaml qtdeclarative5-controls-plugin qtdeclarative5-dialogs-plugin sendmail-base sendmail-cf sensible-mda snapd-login-service Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libc-client2007e lsphp71-json lsphp71-opcache mlock Suggested packages: uw-mailutils The following NEW packages will be installed: libc-client2007e lsphp71 lsphp71-common lsphp71-imap lsphp71-json lsphp71-mysql lsphp71-opcache mlock 0 upgraded, 8 newly installed, 0 to remove and 3 not upgraded. Need to get 8.973 kB of archives. After this operation, 37,3 MB of additional disk space will be used. Get:1 http://kambing.ui.ac.id/ubuntu xenial-updates/universe amd64 mlock amd64 8:2007f~dfsg-4+deb8u1build0.16.04.1 [11,3 kB] Get:2 http://kambing.ui.ac.id/ubuntu xenial-updates/universe amd64 libc-client2007e amd64 8:2007f~dfsg-4+deb8u1build0.16.04.1 [578 kB] Get:3 http://rpms.litespeedtech.com/debian xenial/main amd64 lsphp71-common all 7.1.33-1+xenial [31,2 kB] Get:4 http://rpms.litespeedtech.com/debian xenial/main amd64 lsphp71-json amd64 7.1.33-1+xenial [17,9 kB] Get:5 http://rpms.litespeedtech.com/debian xenial/main amd64 lsphp71-opcache amd64 7.1.33-1+xenial [145 kB] Get:6 http://rpms.litespeedtech.com/debian xenial/main amd64 lsphp71 amd64 7.1.33-1+xenial [8.114 kB] Get:7 http://rpms.litespeedtech.com/debian xenial/main amd64 lsphp71-imap amd64 7.1.33-1+xenial [30,4 kB] Get:8 http://rpms.litespeedtech.com/debian xenial/main amd64 lsphp71-mysql amd64 7.1.33-1+xenial [46,1 kB] Fetched 8.973 kB in 11s (812 kB/s) Selecting previously unselected package mlock. (Reading database ... 397753 files and directories currently installed.) Preparing to unpack .../mlock_8%3a2007f~dfsg-4+deb8u1build0.16.04.1_amd64.deb ... Unpacking mlock (8:2007f~dfsg-4+deb8u1build0.16.04.1) ... Selecting previously unselected package libc-client2007e. Preparing to unpack .../libc-client2007e_8%3a2007f~dfsg-4+deb8u1build0.16.04.1_amd64.deb ... Unpacking libc-client2007e (8:2007f~dfsg-4+deb8u1build0.16.04.1) ... Selecting previously unselected package lsphp71-common. Preparing to unpack .../lsphp71-common_7.1.33-1+xenial_all.deb ... Unpacking lsphp71-common (7.1.33-1+xenial) ... Selecting previously unselected package lsphp71-json. Preparing to unpack .../lsphp71-json_7.1.33-1+xenial_amd64.deb ... Unpacking lsphp71-json (7.1.33-1+xenial) ... Selecting previously unselected package lsphp71-opcache. Preparing to unpack .../lsphp71-opcache_7.1.33-1+xenial_amd64.deb ... Unpacking lsphp71-opcache (7.1.33-1+xenial) ... Selecting previously unselected package lsphp71. Preparing to unpack .../lsphp71_7.1.33-1+xenial_amd64.deb ... Unpacking lsphp71 (7.1.33-1+xenial) ... Selecting previously unselected package lsphp71-imap. Preparing to unpack .../lsphp71-imap_7.1.33-1+xenial_amd64.deb ... Unpacking lsphp71-imap (7.1.33-1+xenial) ... Selecting previously unselected package lsphp71-mysql. Preparing to unpack .../lsphp71-mysql_7.1.33-1+xenial_amd64.deb ... Unpacking lsphp71-mysql (7.1.33-1+xenial) ... Processing triggers for man-db (2.7.5-1) ... Processing triggers for libc-bin (2.23-0ubuntu11) ... Setting up mlock (8:2007f~dfsg-4+deb8u1build0.16.04.1) ... Setting up libc-client2007e (8:2007f~dfsg-4+deb8u1build0.16.04.1) ... Setting up lsphp71-common (7.1.33-1+xenial) ... Setting up lsphp71-opcache (7.1.33-1+xenial) ... Creating config file /usr/local/lsws/lsphp71/etc/php/7.1/mods-available/opcache.ini with new version Setting up lsphp71 (7.1.33-1+xenial) ... Creating config file /usr/local/lsws/lsphp71/etc/php/7.1/litespeed/php.ini with new version Setting up lsphp71-imap (7.1.33-1+xenial) ... Creating config file /usr/local/lsws/lsphp71/etc/php/7.1/mods-available/imap.ini with new version Setting up lsphp71-mysql (7.1.33-1+xenial) ... Creating config file /usr/local/lsws/lsphp71/etc/php/7.1/mods-available/mysqli.ini with new version Creating config file /usr/local/lsws/lsphp71/etc/php/7.1/mods-available/pdo_mysql.ini with new version Setting up lsphp71-json (7.1.33-1+xenial) ... Creating config file /usr/local/lsws/lsphp71/etc/php/7.1/mods-available/json.ini with new version Processing triggers for libc-bin (2.23-0ubuntu11) ... Generating key pair for web console login page, please wait ... Generating RSA private key, 512 bit long modulus ..........+++++++++++++++++++++++++++ .......................+++++++++++++++++++++++++++ e is 65537 (0x010001) [OK] The startup script has been successfully installed! -e Updating webcache manager, please waiting ... Downloading latest shared code tar file... Checking tar file md5... Removing existing shared code directory... Extracting downloaded shared code... Removing local shared code tar file... Updating lscmctl script... Done! -e Installation finished, Enjoy! |
NOTE: IT’S ALSO INSTALLED PHP FOR LITESPEED (lsphp) 7.1 IN /usr/local/lsws/lsphp71/
Now you can start the web server, like so: (USE ‘sudo’ BECAUSE I INSTALLED WITH ‘sudo’???)
|
1 2 |
teddy@teddy:~/openlitespeed$ sudo /usr/local/lsws/bin/lswsctrl start [OK] litespeed: pid=16727. |
Check status (USE ‘sudo’)
|
1 2 |
teddy@teddy:~/openlitespeed$ sudo /usr/local/lsws/bin/lswsctrl status litespeed is running with PID 16727 |
Open it on your browser: http://localhost:8088/
The admin page on https://localhost:7080/
Currently it’s using PHP 7.1 (SEE http://localhost:8088/phpinfo.php)
I want to install PHP 7.2.
Pls se the available PHP 7.2 packages for litespeed
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
teddy@teddy:~/openlitespeed$ sudo apt-cache search lsphp72 lsphp72 - server-side, HTML-embedded scripting language (LSAPI binary) lsphp72-apcu - APC User Cache for PHP lsphp72-common - Common files for packages built from the PHP source lsphp72-curl - CURL module for PHP lsphp72-dbg - Debug symbols for LSPHP70 lsphp72-dev - Files for PHP70 module development lsphp72-igbinary - igbinary PHP serializer lsphp72-imagick - Provides a wrapper to the ImageMagick library lsphp72-imap - IMAP module for PHP lsphp72-intl - Internationalisation module for PHP lsphp72-ioncube - PHP extension for interfacing with ioncube lsphp72-json - JSON module for PHP lsphp72-ldap - LDAP module for PHP lsphp72-memcached - memcached extension module for PHP, uses libmemcached lsphp72-modules-source - PHP 70 modules source package lsphp72-msgpack - PHP extension for interfacing with MessagePack lsphp72-mysql - MySQL module for PHP lsphp72-opcache - Zend OpCache module for PHP lsphp72-pear - Provides PHP PEAR package lsphp72-pgsql - PostgreSQL module for PHP lsphp72-pspell - pspell module for PHP lsphp72-recode - recode module for PHP lsphp72-redis - PHP extension for interfacing with Redis lsphp72-snmp - SNMP module for PHP lsphp72-sqlite3 - SQLite3 module for PHP lsphp72-sybase - Sybase module for PHP lsphp72-tidy - tidy module for PHP |
Then install some of them
|
1 |
sudo apt install lsphp72 lsphp72-curl lsphp72-imap lsphp72-mysql lsphp72-intl lsphp72-pgsql lsphp72-sqlite3 lsphp72-tidy lsphp72-snmp |