{"id":3830,"date":"2019-03-21T19:01:49","date_gmt":"2019-03-21T13:31:49","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=3830"},"modified":"2019-03-21T20:05:00","modified_gmt":"2019-03-21T14:35:00","slug":"install-openlitespeed-on-ubuntu","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/install-openlitespeed-on-ubuntu\/","title":{"rendered":"Install OpenLiteSpeed On Ubuntu"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Install OpenLiteSpeed On Ubuntu <\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Date : 20\/03\/2019<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OpenLiteSpeed is the Open Source edition of LiteSpeed Web Server Enterprise Lite speed. OpenLiteSpeed is designed to be lightweight with a user friendly web interface to help webmasters create and manage their websites easily and  most importantly used web sever.<\/p>\n\n\n\n<ul class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><li class=\"blocks-gallery-item\"><figure><img fetchpriority=\"high\" decoding=\"async\" width=\"500\" height=\"250\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/litespeed-1.png\" alt=\"\" data-id=\"3908\" data-link=\"https:\/\/pheonixsolutions.com\/blog\/install-openlitespeed-on-ubuntu\/litespeed-1\/\" class=\"wp-image-3908\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/litespeed-1.png 500w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/litespeed-1-300x150.png 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/figure><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Installation step for OpenLiteSpeed<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li> The first update <strong><em>ubuntu<\/em><\/strong>&nbsp;server using the following commands.<\/li><\/ol>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt update\nsudo apt dist-upgrade \nsudo apt autoremove\n\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">2. Install required dependencies for OpenLiteSpeed. <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">apt install build-essential libexpat1-dev libgeoip-dev libpcre3-dev libudns-dev zlib1g-dev libssl-dev libxml2 libxml2-dev rcs libpng-dev libpng-dev openssl<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">3.Go and fetch the latest version of OpenLiteSpeed. The commands below will download version 1.4.45 to your server.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd \/tmp\/ \n\nwget https:\/\/openlitespeed.org\/packages\/openlitespeed-1.4.45.src.tgz\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">4. Next, run the commands below to extract the downloaded package.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">tar -xvzf openlitespeed-1.4.45.tgz<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">5. Switch into the directory extracted directory<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd openlitespeed-1.4.45<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">6. Run the commands below to install OpenLiteSpeed.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo .\/configure\nsudo make\nsudo make install<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">7. Configure the administrative password for the web interface. Run the commands below to do that.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo \/usr\/local\/lsws\/admin\/misc\/admpass.sh\n\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">8.  Once setup is completed then start the webserver.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo \/etc\/init.d\/lsws start<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">9. Access your browser and browse to the server IP or hostname followed by 8088 to view the default page page.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">http:\/\/localhost:8088\n\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">10. Access the admin panel using the port number.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">https:\/\/xxx.xxx.xxx:7080<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">11. Install PHP 7.2 and Modules<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo ln -sf \/usr\/local\/lsws\/lsphp72\/bin\/lsphp \/usr\/local\/lsws\/fcgi-bin\/lsphp72<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">12. After that, open your browser and browse to OpenLiteSpeed backend portal.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">http:\/\/example.com:7080\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">13.Go to the Dashboard and select <strong>Server Configuration==&gt;External App<\/strong>  then click <strong>Edit&nbsp;<\/strong>as shown in the image below<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1024\" height=\"399\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/server-config-1024x399.jpg\" alt=\"\" class=\"wp-image-3840\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/server-config-1024x399.jpg 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/server-config-300x117.jpg 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/server-config-768x299.jpg 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/server-config.jpg 1152w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">14. Change the command to reflect the symbolic link created above for <strong>PHP 7.2<\/strong>&nbsp;and save.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">$SERVER_ROOT\/fcgi-bin\/lsphp72<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"1024\" height=\"399\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/server-config-1-1024x399.jpg\" alt=\"\" class=\"wp-image-3841\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/server-config-1-1024x399.jpg 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/server-config-1-300x117.jpg 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/server-config-1-768x299.jpg 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/server-config-1.jpg 1152w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">15. Go to <strong>Virtual Hosts ==&gt; General page<\/strong>\u2026. and click edit of the&nbsp;<strong>Index File<\/strong>&nbsp;section and add&nbsp;index.php&nbsp;to the list as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"983\" height=\"563\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/index-change.jpg\" alt=\"\" class=\"wp-image-3842\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/index-change.jpg 983w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/index-change-300x172.jpg 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/index-change-768x440.jpg 768w\" sizes=\"(max-width: 983px) 100vw, 983px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">16. <strong>Rewrite<\/strong>&nbsp;tab and turn on&nbsp;<strong>Rewrite Control<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"449\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/rewrite-tab.jpg\" alt=\"\" class=\"wp-image-3843\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/rewrite-tab.jpg 1000w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/rewrite-tab-300x135.jpg 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/rewrite-tab-768x345.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">17. Edit the Rewrite Rules and replace the below code , then save..<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">RewriteRule ^index\\.php$ - [L]\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule . \/index.php [L]<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"989\" height=\"488\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/httaccess-code.jpg\" alt=\"\" class=\"wp-image-3845\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/httaccess-code.jpg 989w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/httaccess-code-300x148.jpg 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/httaccess-code-768x379.jpg 768w\" sizes=\"(max-width: 989px) 100vw, 989px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">18. Click on the <strong>Listeners<\/strong>&nbsp;from the left menu, then edit to change the current port from 8088 to&nbsp;<strong>80<\/strong>. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"554\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/port-number-1024x554.jpg\" alt=\"\" class=\"wp-image-3846\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/port-number-1024x554.jpg 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/port-number-300x162.jpg 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/port-number-768x415.jpg 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/port-number.jpg 1026w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">19. Restart the server from the top right corner and open the URL in browser.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">http:\/\/localhost\/phpinfo.php<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks for using pheonix solutions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You find this tutorial helpful? Share with your friends to keep it alive.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install OpenLiteSpeed On Ubuntu Date : 20\/03\/2019 OpenLiteSpeed is the Open Source edition of LiteSpeed Web Server Enterprise Lite speed. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[593,159],"class_list":["post-3830","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-litespeed-installation","tag-webserver","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-ZM","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=3830"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3830\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=3830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=3830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=3830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}