{"id":1059,"date":"2018-07-18T10:30:56","date_gmt":"2018-07-18T05:00:56","guid":{"rendered":"https:\/\/www.coimbatorewebhosting.com\/blog\/?p=1059"},"modified":"2019-04-16T15:26:55","modified_gmt":"2019-04-16T09:56:55","slug":"installopenlitespeed-php7centos7","status":"publish","type":"post","link":"https:\/\/coimbatorewebhosting.com\/blog\/installopenlitespeed-php7centos7\/","title":{"rendered":"Install OpenLiteSpeed, PHP 7.0 &#038; MariaDB on CentOS 7"},"content":{"rendered":"<p>Introduction:<\/p>\n<p><a href=\"https:\/\/openlitespeed.org\/\" rel=\"nofollow noopener\" target=\"_blank\">OpenLiteSpeed<\/a> is a high-performance HTTP server, and it can handle hundreds and thousands of simultaneous connections with very low resource consumptions.<\/p>\n<p>Setup openlitespeed Respository:<\/p>\n<p>Use the following command to add the OpenLiteSpeed repository.<\/p>\n<pre>rpm -ivh http:\/\/rpms.litespeedtech.com\/centos\/litespeed-repo-1.1-1.el7.noarch.rpm\r\nOutput:\r\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1062 size-full\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed-1.jpg\" alt=\"OpenLiteSpeed\" width=\"863\" height=\"98\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed-1.jpg 863w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed-1-300x34.jpg 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed-1-768x87.jpg 768w\" sizes=\"auto, (max-width: 863px) 100vw, 863px\" \/><\/pre>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/installopenlitespeed-php7centos7\/#Install_openLiteSpeed_on_CentOS_7\" >Install openLiteSpeed on CentOS 7:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/installopenlitespeed-php7centos7\/#Controlling_OpenLiteSpeed\" >Controlling OpenLiteSpeed<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/installopenlitespeed-php7centos7\/#Install_MariaDB_Server\" >Install MariaDB Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/installopenlitespeed-php7centos7\/#Install_PHP\" >Install PHP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/installopenlitespeed-php7centos7\/#Configure_OpenLiteSpeed\" >Configure OpenLiteSpeed<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/installopenlitespeed-php7centos7\/#Access_WebAdmin_Console\" >Access WebAdmin Console<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/installopenlitespeed-php7centos7\/#Configure_OpenLiteSpeed_to_use_port_80\" >Configure OpenLiteSpeed to use port 80:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/installopenlitespeed-php7centos7\/#Verify_OpenLiteSpeed_server\" >Verify OpenLiteSpeed server:<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/coimbatorewebhosting.com\/blog\/installopenlitespeed-php7centos7\/#Verify_support_for_PHP_in_OpenLiteSpeed\" >Verify support\u00a0for\u00a0PHP in OpenLiteSpeed<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Install_openLiteSpeed_on_CentOS_7\"><\/span>Install openLiteSpeed on CentOS 7:<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now, install OpenLiteSpeed 1.4.26 (chck) using YUM command.<\/p>\n<pre>yum -y install openlitespeed<\/pre>\n<p>Run the following command to check the version of OpenLiteSpeed and its modules.<\/p>\n<pre>\/usr\/local\/lsws\/bin\/lshttpd -v<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1065\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/lite-speed-1.jpg\" alt=\"\" width=\"455\" height=\"141\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/lite-speed-1.jpg 455w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/lite-speed-1-300x93.jpg 300w\" sizes=\"auto, (max-width: 455px) 100vw, 455px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Controlling_OpenLiteSpeed\"><\/span>Controlling OpenLiteSpeed<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To Start OpenLiteSpeed, run:<\/p>\n<pre>\/usr\/local\/lsws\/bin\/lswsctrl start<\/pre>\n<p>To Stop OpenLiteSpeed, run:<\/p>\n<pre>\/usr\/local\/lsws\/bin\/lswsctrl stop<\/pre>\n<p>To Restart OpenLiteSpeed, run:<\/p>\n<pre>\/usr\/local\/lsws\/bin\/lswsctrl restart<\/pre>\n<p>To check the running status of OpenLiteSpeed, run:<\/p>\n<pre>\/usr\/local\/lsws\/bin\/lswsctrl status<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1063\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed2.jpg\" alt=\"\" width=\"488\" height=\"169\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed2.jpg 488w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed2-300x104.jpg 300w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/p>\n<p>By default,\u00a0<strong>OpenLiteSpeed listens on port 8088<\/strong>. So, you need to\u00a0<strong>add firewall rules to allow port 8088<\/strong>\u00a0for accessing the web server.<\/p>\n<pre>firewall-cmd --zone=public --permanent --add-port=8088\/tcp\r\nfirewall-cmd --reload\r\n\r\n<\/pre>\n<p>Enter the\u00a0<strong>URL with port no 8088<\/strong>\u00a0and see whether you can able to access OpenLiteSpeed or not.<\/p>\n<div class=\"itzgeek-url\">http:\/\/localhost:8088<\/div>\n<p><strong>OR<\/strong><\/p>\n<div class=\"itzgeek-url\">http:\/\/your-ip-addr-ess:8088<\/div>\n<div><\/div>\n<div><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1067\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed3.jpg\" alt=\"\" width=\"1363\" height=\"690\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed3.jpg 1363w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed3-300x152.jpg 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed3-768x389.jpg 768w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed3-1024x518.jpg 1024w\" sizes=\"auto, (max-width: 1363px) 100vw, 1363px\" \/><\/div>\n<div><\/div>\n<div>\n<h2><span class=\"ez-toc-section\" id=\"Install_MariaDB_Server\"><\/span>Install MariaDB Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We will now install the MariaDB server by using\u00a0<strong>YUM<\/strong>\u00a0command.<\/p>\n<pre>yum -y install mariadb mariadb-server<\/pre>\n<p>Start MariaDB server.<\/p>\n<pre>systemctl start mariadb<\/pre>\n<p>Set MariaDB service to start during every boot.<\/p>\n<p>systemctl enable mariadb<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Install_PHP\"><\/span>Install PHP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>As said in features of OpenLiteSpeed, it supports different versions of PHP installation, so we will configure OpenLiteSpeed with both PHP v5.6 and V7.0. Add EPEL repository for getting dependent packages for PHP.<\/p>\n<pre>rpm -ivh https:\/\/dl.fedoraproject.org\/pub\/epel\/epel-release-latest-7.noarch.rpm<\/pre>\n<div class=\"itzgeek-info\">Choose either one of the PHP version for configuring OpenLiteSpeed.<\/div>\n<p><strong>OpenLiteSpeed with PHP 5.6 support:<\/strong><\/p>\n<pre>yum install -y lsphp56 lsphp56-common lsphp56-mysql lsphp56-gd lsphp56-process lsphp56-mbstring lsphp56-xml lsphp56-mcrypt lsphp56-pdo lsphp56-imap lsphp56-soap lsphp56-bcmath<\/pre>\n<p><strong>OpenLiteSpeed with PHP 7.0 support:<\/strong><\/p>\n<pre>yum install lsphp70 lsphp70-common lsphp70-mysqlnd lsphp70-gd lsphp70-process lsphp70-mbstring lsphp70-xml lsphp70-mcrypt lsphp70-pdo lsphp70-imap lsphp70-soap lsphp70-bcmath<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Configure_OpenLiteSpeed\"><\/span>Configure OpenLiteSpeed<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In this section, we will setup OpenLiteSpeed with both PHP 5.6\u00a0 &amp; PHP 7.0, Also we will\u00a0<strong>configure OpenLiteSpeed to listen on standard HTPP port 80 and via WebAdmin console<\/strong>.<\/p>\n<p>By Default,\u00a0<strong>WebAdmin console\u00a0<\/strong>listens<strong>\u00a0on port 7080<\/strong>\u00a0and t<strong>The default account of OpenLiteSpeed is,<\/strong><\/p>\n<p>Username:\u00a0<strong>admin<\/strong><br \/>\nPassword:\u00a0<strong>123456<\/strong><\/p>\n<p><strong>I recommend you to change the default password for security reason<\/strong>. To change the password of OpenLigtSpeed admin console, run the following command.<\/p>\n<pre>\/usr\/local\/lsws\/admin\/misc\/admpass.sh<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1069\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed4.jpg\" alt=\"\" width=\"682\" height=\"229\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed4.jpg 682w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed4-300x101.jpg 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Access_WebAdmin_Console\"><\/span>Access WebAdmin Console<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Open a web browser and visit the following URL.<\/p>\n<div class=\"itzgeek-url\">http:\/\/localhost:7080<\/div>\n<p><strong>OR<\/strong><\/p>\n<div class=\"itzgeek-url\">http:\/\/your-ip-add-ress:7080<\/div>\n<p>Login with the admin account and the password you set few steps before<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1071 size-full\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed55.jpg\" alt=\"OpenLiteSpeed\" width=\"1359\" height=\"698\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed55.jpg 1359w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed55-300x154.jpg 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed55-768x394.jpg 768w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed55-1024x526.jpg 1024w\" sizes=\"auto, (max-width: 1359px) 100vw, 1359px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1072\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed5.jpg\" alt=\"\" width=\"1361\" height=\"702\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed5.jpg 1361w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed5-300x155.jpg 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed5-768x396.jpg 768w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed5-1024x528.jpg 1024w\" sizes=\"auto, (max-width: 1361px) 100vw, 1361px\" \/><\/p>\n<p><strong>Configure OpenLiteSpeed with PHP 5.6:<\/strong><\/p>\n<p>You do not have to do any configuration changes to OpenLiteSpeed as it uses PHP 5.6 by default.<\/p>\n<p><strong>Configure OpenLiteSpeed with PHP 7.0:<\/strong><\/p>\n<p>As I said earlier, OpenLiteSpeed uses PHP 5.6. To have PHP 7.0 with OpenLiteSpeed, follow the below steps.<\/p>\n<p>We already have PHP 7.0 on the server. So, go to \u201cS<strong>erver Configuration<\/strong>\u201d \u2013&gt; \u201c<strong>External App<\/strong>\u201d \u2013&gt; \u201c<strong>Add<\/strong>\u201c.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1073\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed6.png\" alt=\"\" width=\"1351\" height=\"565\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed6.png 1351w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed6-300x125.png 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed6-768x321.png 768w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed6-1024x428.png 1024w\" sizes=\"auto, (max-width: 1351px) 100vw, 1351px\" \/><\/p>\n<p>Select \u201c<strong>LiteSpeed SAPI App<\/strong>\u201d and then click Next,<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1074\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed7.png\" alt=\"\" width=\"1356\" height=\"471\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed7.png 1356w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed7-300x104.png 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed7-768x267.png 768w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed7-1024x356.png 1024w\" sizes=\"auto, (max-width: 1356px) 100vw, 1356px\" \/><\/p>\n<\/div>\n<p>Add the below configuration,<\/p>\n<pre>Name: lsphp7\r\nAddress: uds:\/\/tmp\/lshttpd\/lsphp.sock\r\nMax Connections : 35\r\nEnvironment: PHP_LSAPI_MAX_REQUESTS=500\r\nPHP_LSAPI_CHILDREN=35\r\nInitial Request Timeout (secs) : 60\r\nRetry Timeout (secs): 0\r\nPersistent Connection: Yes\r\nResponse Buffering: No\r\nAuto Start : Yes\r\nCommand: \/usr\/local\/lsws\/lsphp70\/bin\/lsphp\r\nBack Log: 100\r\nInstances: 1\r\nMemory Soft Limit (bytes): 2047M\r\nMemory Hard Limit (bytes): 2047M\r\nProcess Soft Limit: 400\r\nProcess Hard Limit: 500\r\n\r\n<\/pre>\n<p>Click save button to save the configuration.<\/p>\n<p>Modify the default script handler to use PHP 7.0. To do that, go to \u201c<strong>Server Configuration<\/strong>\u201d \u2013&gt; \u201c<strong>Script Handler<\/strong>\u201d \u2013&gt; Edit\u00a0<strong>lsphp5<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1075\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed8.png\" alt=\"\" width=\"1352\" height=\"463\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed8.png 1352w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed8-300x103.png 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed8-768x263.png 768w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed8-1024x351.png 1024w\" sizes=\"auto, (max-width: 1352px) 100vw, 1352px\" \/><\/p>\n<p>Update with the following configurations.<\/p>\n<div class=\"bsac-container bsac-type-code \" data-adid=\"25694\" data-type=\"code\">\n<pre>Suffixes: php\r\nHandler Type: liteSpeed SAPI\r\nHandler Name: lsphp7\r\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1078\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed81.png\" alt=\"\" width=\"1111\" height=\"533\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed81.png 1111w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed81-300x144.png 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed81-768x368.png 768w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed81-1024x491.png 1024w\" sizes=\"auto, (max-width: 1111px) 100vw, 1111px\" \/>\r\nClick the save icon.<\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Configure_OpenLiteSpeed_to_use_port_80\"><\/span>Configure OpenLiteSpeed to use port 80:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Go to \u201c<strong>Listeners<\/strong>\u201d and click on \u201c<strong>Zoom icon<\/strong>\u201d in the\u00a0<strong>Default<\/strong>\u00a0listener to view the configuration.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1079\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed9.png\" alt=\"\" width=\"1350\" height=\"518\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed9.png 1350w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed9-300x115.png 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed9-768x295.png 768w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed9-1024x393.png 1024w\" sizes=\"auto, (max-width: 1350px) 100vw, 1350px\" \/><\/p>\n<p>Edit the listener.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1080\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed10.png\" alt=\"\" width=\"1356\" height=\"585\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed10.png 1356w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed10-300x129.png 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed10-768x331.png 768w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed10-1024x442.png 1024w\" sizes=\"auto, (max-width: 1356px) 100vw, 1356px\" \/><\/p>\n<p>Update with the following information.<\/p>\n<pre>IP Address: ANY\r\nPort : 80<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1082\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed102.png\" alt=\"\" width=\"1126\" height=\"654\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed102.png 1126w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed102-300x174.png 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed102-768x446.png 768w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed102-1024x595.png 1024w\" sizes=\"auto, (max-width: 1126px) 100vw, 1126px\" \/><\/p>\n<p>Click on the save icon.<\/p>\n<p>Finally,\u00a0<strong>restart<\/strong>\u00a0the OpenLiteSpeed server.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1081\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed11.png\" alt=\"\" width=\"1361\" height=\"617\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed11.png 1361w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed11-300x136.png 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed11-768x348.png 768w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed11-1024x464.png 1024w\" sizes=\"auto, (max-width: 1361px) 100vw, 1361px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Verify_OpenLiteSpeed_server\"><\/span>Verify OpenLiteSpeed server:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Just enter the URL without port number and see whether you can able to access OpenLiteSpeed.<\/p>\n<div class=\"itzgeek-url\">http:\/\/localhost\/<\/div>\n<p><strong>OR<\/strong><\/p>\n<div class=\"itzgeek-url\">http:\/\/your-ip-addr-ess\/<\/div>\n<div>\n<div id=\"attachment_1067\" style=\"width: 1373px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1067\" class=\"wp-image-1067 size-full\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed3.jpg\" alt=\"OpenLiteSpeed\" width=\"1363\" height=\"690\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed3.jpg 1363w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed3-300x152.jpg 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed3-768x389.jpg 768w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/litespeed3-1024x518.jpg 1024w\" sizes=\"auto, (max-width: 1363px) 100vw, 1363px\" \/><p id=\"caption-attachment-1067\" class=\"wp-caption-text\">OpenLiteSpeed<\/p><\/div>\n<\/div>\n<pre><\/pre>\n<\/div>\n<div>\n<p>The above page confirms that the\u00a0<strong>OpenLiteSpeed is listening on Standard HTTP port 80.<\/strong><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Verify_support_for_PHP_in_OpenLiteSpeed\"><\/span>Verify support\u00a0for\u00a0PHP in OpenLiteSpeed<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Visit the following URL using your favorite web browser.<\/p>\n<div class=\"itzgeek-url\">http:\/\/localhost\/phpinfo.php<\/div>\n<p><strong>OR<\/strong><\/p>\n<div class=\"itzgeek-url\">http:\/\/your-ip-addr-ess\/phpinfo.php<\/div>\n<p>You can see the output like below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1084\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/lite-speed-11.JPG.png\" alt=\"\" width=\"836\" height=\"573\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/lite-speed-11.JPG.png 836w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/lite-speed-11.JPG-300x206.png 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/lite-speed-11.JPG-768x526.png 768w\" sizes=\"auto, (max-width: 836px) 100vw, 836px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1085\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/lite-speed-12.JPG.png\" alt=\"\" width=\"832\" height=\"553\" srcset=\"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/lite-speed-12.JPG.png 832w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/lite-speed-12.JPG-300x199.png 300w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/lite-speed-12.JPG-768x510.png 768w, https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/lite-speed-12.JPG-272x182.png 272w\" sizes=\"auto, (max-width: 832px) 100vw, 832px\" \/><\/p>\n<p>That&#8217;s all now you can come to know about the installing of OpenLiteSpeed, PHP 7.0 &amp; MariaDB on CentOS 7 \/<\/p>\n<p>And to know about to increase php memory <a href=\"https:\/\/www.coimbatorewebhosting.com\/blog\/how-to-increase-the-php-memory-upload-size-in-word-press\/\">click here.<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: OpenLiteSpeed is a high-performance HTTP server, and it can handle hundreds and thousands of simultaneous connections with very low resource consumptions. Setup openlitespeed Respository: Use the following command to add the OpenLiteSpeed repository. rpm -ivh http:\/\/rpms.litespeedtech.com\/centos\/litespeed-repo-1.1-1.el7.noarch.rpm Output: Install openLiteSpeed on CentOS 7: Now, install OpenLiteSpeed 1.4.26 (chck) using YUM [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1090,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[154,152],"tags":[89,87,88,91,90],"class_list":["post-1059","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel-whm","category-database","tag-htpp-port","tag-openlitespeed-repository-mariadb","tag-php-version","tag-server-configuration","tag-webadmin"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2018\/07\/title.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pa2YU7-h5","_links":{"self":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/posts\/1059","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/comments?post=1059"}],"version-history":[{"count":0,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/posts\/1059\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/media\/1090"}],"wp:attachment":[{"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/media?parent=1059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/categories?post=1059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coimbatorewebhosting.com\/blog\/wp-json\/wp\/v2\/tags?post=1059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}