{"id":12861,"date":"2019-03-29T00:07:52","date_gmt":"2019-03-29T00:07:52","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12861"},"modified":"2019-03-29T00:07:52","modified_gmt":"2019-03-29T00:07:52","slug":"install-openlitespeed-http-php-7-mariadb-on-centos-7","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/29\/install-openlitespeed-http-php-7-mariadb-on-centos-7\/","title":{"rendered":"Install OpenLiteSpeed (HTTP), PHP 7 &#038; MariaDB on CentOS 7"},"content":{"rendered":"<p><strong>OpenLiteSpeed<\/strong>\u00a0is a free and open source, super lightweight HTTP server for Unix-like operating systems including Linux and Windows OS as well \u2013 designed by LiteSpeed Technologies.<\/p>\n<p>It is feature-rich; high performance HTTP server that can be used to manage hundreds of thousands of simultaneous connections without critical server load issues, and it also supports third-party modules via API (LSIAPI).<\/p>\n<h4>OpenLiteSpeed Features:<\/h4>\n<ul>\n<li>High performance, event-driven architecture.<\/li>\n<li>Super light-weight, minimal CPU and memory resources.<\/li>\n<li>Ships with Apache-compatible rewrite rules.<\/li>\n<li>User friendly WebAdmin GUI.<\/li>\n<li>Supports numerous modules to enhance its functionality.<\/li>\n<li>Allows creation of virtual hosts.<\/li>\n<li>Supports high-performance page caching.<\/li>\n<li>Several different versions of\u00a0<a href=\"https:\/\/www.tecmint.com\/install-different-php-versions-in-ubuntu\/\" target=\"_blank\" rel=\"noopener\">PHP installation support<\/a>.<\/li>\n<\/ul>\n<p>In this article, we will explain how to install and configure\u00a0<strong>OpenLiteSpeed \u2013 High Performance HTTP Web Server<\/strong>\u00a0with\u00a0<strong>PHP 7<\/strong>\u00a0and MariaDB support on\u00a0<strong>CentOS 7<\/strong>\u00a0and\u00a0<strong>RHEL 7<\/strong>.<\/p>\n<h3>Step 1: Enable OpenLitespeed Repository<\/h3>\n<p><strong>1.<\/strong>\u00a0First install and enable own\u00a0<strong>OpenLitespeed Repository<\/strong>\u00a0to install latest version of\u00a0<strong>OpenLiteSpeed<\/strong>\u00a0and\u00a0<strong>PHP 7<\/strong>using following command.<\/p>\n<pre># rpm -ivh http:\/\/rpms.litespeedtech.com\/centos\/litespeed-repo-1.1-1.el7.noarch.rpm\r\n<\/pre>\n<div id=\"attachment_26305\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Install-OpenLiteSpeed-Repository.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26305\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Install-OpenLiteSpeed-Repository.png\" alt=\"Install OpenLiteSpeed Repository\" width=\"720\" height=\"161\" aria-describedby=\"caption-attachment-26305\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-26305\" class=\"wp-caption-text\">Install OpenLiteSpeed Repository<\/p>\n<\/div>\n<h3>Step 2: Install OpenLiteSpeed on CentOS 7<\/h3>\n<p><strong>2.<\/strong>\u00a0Now install\u00a0<strong>OpenLiteSpeed 1.4<\/strong>\u00a0(the latest version at the time of this writing) with the\u00a0<a href=\"https:\/\/www.tecmint.com\/20-linux-yum-yellowdog-updater-modified-commands-for-package-mangement\/\" target=\"_blank\" rel=\"noopener\">YUM package manager<\/a>command below; this will install it under the\u00a0<strong>\/usr\/local\/lsws<\/strong>\u00a0directory.<\/p>\n<pre># yum install openlitespeed\r\n<\/pre>\n<div id=\"attachment_26306\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Install-OpenLiteSpeed-on-CentOS-7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26306\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Install-OpenLiteSpeed-on-CentOS-7.png\" alt=\"Install OpenLiteSpeed on CentOS-7\" width=\"720\" height=\"400\" aria-describedby=\"caption-attachment-26306\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-26306\" class=\"wp-caption-text\">Install OpenLiteSpeed on CentOS-7<\/p>\n<\/div>\n<p><strong>3.<\/strong>\u00a0Once installed, you can start and confirm the OpenLiteSpeed version by running.<\/p>\n<pre># \/usr\/local\/lsws\/bin\/lswsctrl start\r\n# \/usr\/local\/lsws\/bin\/lshttpd -v\r\n<\/pre>\n<div id=\"attachment_26307\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Check-OpenLiteSpeed-Version.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26307\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Check-OpenLiteSpeed-Version.png\" alt=\"Check OpenLiteSpeed Version\" width=\"461\" height=\"204\" aria-describedby=\"caption-attachment-26307\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-26307\" class=\"wp-caption-text\">Check OpenLiteSpeed Version<\/p>\n<\/div>\n<p><strong>4.<\/strong>\u00a0By default, OpenLiteSpeed runs on port \u201c<strong>8088<\/strong>, so you need update the firewall rules to permit port\u00a0<strong>8088<\/strong>\u00a0via the firewall to access OpenLiteSpeed default site on the server.<\/p>\n<pre># firewall-cmd --zone=public --permanent --add-port=8088\/tcp\r\n# firewall-cmd --reload\r\n<\/pre>\n<p><strong>5.<\/strong>\u00a0Now open a web browser and type the following URL to verify the default page of OpenLiteSpeed.<\/p>\n<pre>http:\/\/SERVER_IP:8088\/ \r\nor \r\nhttp:\/\/localhost:8088\r\n<\/pre>\n<div id=\"attachment_26308\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Verify-OpenLiteSpeed-Page.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26308\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Verify-OpenLiteSpeed-Page.png\" sizes=\"auto, (max-width: 996px) 100vw, 996px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Verify-OpenLiteSpeed-Page.png 996w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Verify-OpenLiteSpeed-Page-768x574.png 768w\" alt=\"Verify OpenLiteSpeed Page\" width=\"996\" height=\"745\" aria-describedby=\"caption-attachment-26308\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-26308\" class=\"wp-caption-text\">Verify OpenLiteSpeed Page<\/p>\n<\/div>\n<h3>Step 3: Install PHP 7 for OpenLiteSpeed<\/h3>\n<p><strong>6.<\/strong>\u00a0Here, you need to\u00a0<a href=\"https:\/\/www.tecmint.com\/how-to-enable-epel-repository-for-rhel-centos-6-5\/\" target=\"_blank\" rel=\"noopener\">enable the EPEL repository<\/a>\u00a0from which you will install\u00a0<strong>PHP 7<\/strong>\u00a0with the following command.<\/p>\n<pre># yum install epel-release\r\n<\/pre>\n<p><strong>7.<\/strong>\u00a0Then install\u00a0<strong>PHP 7<\/strong>\u00a0and a few necessary modules for OpenLiteSpeed with the command below, it will install PHP as\u00a0<strong>\/usr\/local\/lsws\/lsphp70\/bin\/lsphp<\/strong>.<\/p>\n<pre># yum install lsphp70 lsphp70-common lsphp70-mysqlnd lsphp70-process lsphp70-gd lsphp70-mbstring lsphp70-mcrypt lsphp70-opcache lsphp70-bcmath lsphp70-pdo lsphp70-xml\r\n<\/pre>\n<div class=\"google-auto-placed ap_container\">\n<p><strong>Attention<\/strong>: You might have noticed that here\u00a0<strong>PHP<\/strong>\u00a0is not installed in the usual way, you must prefix it with\u00a0<code>ls<\/code>because there is a distinct PHP for LiteSpeed.<\/p>\n<p><strong>8.<\/strong>\u00a0To install additional PHP modules, use the command below to list all the available PHP modules.<\/p>\n<pre># yum search lsphp70\r\n<\/pre>\n<h5>Sample Output<\/h5>\n<pre>Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager, versionlock\r\nThis system is not registered with Subscription Management. You can use subscription-manager to register.\r\nLoading mirror speeds from cached hostfile\r\n * base: centos.mirror.snu.edu.in\r\n * epel: mirror.premi.st\r\n * extras: mirrors.nhanhoa.com\r\n * rpmforge: mirror.veriteknik.net.tr\r\n * updates: centos.mirror.snu.edu.in\r\n=============================================================================================== N\/S matched: lsphp70 ================================================================================================\r\nlsphp70-debuginfo.x86_64 : Debug information for package lsphp70\r\nlsphp70-pecl-igbinary-debuginfo.x86_64 : Debug information for package lsphp70-pecl-igbinary\r\nlsphp70.x86_64 : PHP scripting language for creating dynamic web sites\r\nlsphp70-bcmath.x86_64 : A module for PHP applications for using the bcmath library\r\nlsphp70-common.x86_64 : Common files for PHP\r\nlsphp70-dba.x86_64 : A database abstraction layer module for PHP applications\r\nlsphp70-dbg.x86_64 : The interactive PHP debugger\r\nlsphp70-devel.x86_64 : Files needed for building PHP extensions\r\nlsphp70-enchant.x86_64 : Enchant spelling extension for PHP applications\r\nlsphp70-gd.x86_64 : A module for PHP applications for using the gd graphics library\r\nlsphp70-gmp.x86_64 : A module for PHP applications for using the GNU MP library\r\nlsphp70-imap.x86_64 : A module for PHP applications that use IMAP\r\nlsphp70-intl.x86_64 : Internationalization extension for PHP applications\r\nlsphp70-json.x86_64 : JavaScript Object Notation extension for PHP\r\nlsphp70-ldap.x86_64 : A module for PHP applications that use LDAP\r\nlsphp70-mbstring.x86_64 : A module for PHP applications which need multi-byte s\r\n...\r\n<\/pre>\n<h3>Step 4: Configure OpenLiteSpeed and PHP 7<\/h3>\n<p><strong>9.<\/strong>\u00a0Now configure OpenLiteSpeed and PHP 7, and then set the standard HTTP port 80 as explained below.<\/p>\n<p>As we mentioned earlier on, OpenLiteSpeed comes with a\u00a0<strong>WebAdmin<\/strong>\u00a0console which is associated to port\u00a0<strong>7080<\/strong>.<\/p>\n<p>Begin by configuring the admin username and password for the OpenLiteSpeed WebAdmin console; run the following command to do so:<\/p>\n<pre># \/usr\/local\/lsws\/admin\/misc\/admpass.sh\r\n<\/pre>\n<div class=\"code-label\">Set OpenLiteSpeed Admin Account<\/div>\n<pre>Please specify the user name of administrator.\r\nThis is the user name required to login the administration Web interface.\r\n\r\nUser name [admin]: tecmint\r\n\r\nPlease specify the administrator's password.\r\nThis is the password required to login the administration Web interface.\r\n\r\nPassword: \r\nRetype password: \r\nAdministrator's username\/password is updated successfully!\r\n<\/pre>\n<p><strong>10.<\/strong>\u00a0Next update firewall rules to permit port\u00a0<strong>7080<\/strong>\u00a0via the firewall to access the WebAdmin console.<\/p>\n<pre># firewall-cmd --zone=public --permanent --add-port=7080\/tcp\r\n# firewall-cmd --reload\r\n<\/pre>\n<p><strong>11.<\/strong>\u00a0Now open a web browser and type the following URL to access OpenLiteSpeed WebAdmin console.<\/p>\n<pre>http:\/\/SERVER_IP:7080\r\nOR\r\nhttp:\/\/localhost:7080\r\n<\/pre>\n<p>Enter the username and password you set above, and click on \u201c<strong>Login<\/strong>\u201c.<\/p>\n<div id=\"attachment_26309\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/OpenLiteSpeed-WebAdmin-Login.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26309\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/OpenLiteSpeed-WebAdmin-Login.png\" sizes=\"auto, (max-width: 837px) 100vw, 837px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/OpenLiteSpeed-WebAdmin-Login.png 837w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/OpenLiteSpeed-WebAdmin-Login-768x643.png 768w\" alt=\"OpenLiteSpeed WebAdmin Login\" width=\"837\" height=\"701\" aria-describedby=\"caption-attachment-26309\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-26309\" class=\"wp-caption-text\">OpenLiteSpeed WebAdmin Login<\/p>\n<\/div>\n<div id=\"attachment_26310\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/OpenLiteSpeed-WebAdmin-Dashboard.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26310\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/OpenLiteSpeed-WebAdmin-Dashboard.png\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/OpenLiteSpeed-WebAdmin-Dashboard.png 1008w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/OpenLiteSpeed-WebAdmin-Dashboard-768x590.png 768w\" alt=\"OpenLiteSpeed WebAdmin Dashboard\" width=\"1008\" height=\"774\" aria-describedby=\"caption-attachment-26310\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-26310\" class=\"wp-caption-text\">OpenLiteSpeed WebAdmin Dashboard<\/p>\n<\/div>\n<p><strong>12.<\/strong>\u00a0OpenLiteSpeed uses\u00a0<strong>LSPHP 5<\/strong>\u00a0by default, you need to make a few changes to setup\u00a0<strong>LSPHP 70<\/strong>\u00a0as explained below.<\/p>\n<p>To do that, go to\u00a0<strong>Server Configuration<\/strong>\u00a0\u2192\u00a0<strong>External App<\/strong>\u00a0\u2192\u00a0<strong>Add<\/strong>\u00a0button on the right side to add new \u201c<strong>lsphp70<\/strong>\u201d as shown in the screen shot below.<\/p>\n<div id=\"attachment_26311\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Add-PHP-7-Support-to-OpenLiteSpeed.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26311\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Add-PHP-7-Support-to-OpenLiteSpeed.png\" sizes=\"auto, (max-width: 1003px) 100vw, 1003px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Add-PHP-7-Support-to-OpenLiteSpeed.png 1003w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Add-PHP-7-Support-to-OpenLiteSpeed-768x325.png 768w\" alt=\"Add PHP 7 Support to OpenLiteSpeed\" width=\"1003\" height=\"425\" aria-describedby=\"caption-attachment-26311\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-26311\" class=\"wp-caption-text\">Add PHP 7 Support to OpenLiteSpeed<\/p>\n<\/div>\n<p><strong>13.<\/strong>\u00a0Then define External App, set type to \u201c<strong>LiteSpeed SAPI App<\/strong>\u201d and click next to add the new external application\u2019s name, address, maximum number of connections, initial response timeout, and retry timeout.<\/p>\n<pre>Name: \t\t\t\t\tlsphp70\r\nAddress:    \t\t\t\tuds:\/\/tmp\/lshttpd\/lsphp.sock\r\nNotes: \t\t\t\t\tLSPHP70 Configuration \r\nMax Connections: \t\t\t35\r\nInitial Request Timeout (secs): \t60\r\nRetry Timeout : \t\t\t0\r\n<\/pre>\n<div id=\"attachment_26312\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Set-External-App.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26312\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Set-External-App.png\" sizes=\"auto, (max-width: 1001px) 100vw, 1001px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Set-External-App.png 1001w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Set-External-App-768x454.png 768w\" alt=\"Set External App\" width=\"1001\" height=\"592\" aria-describedby=\"caption-attachment-26312\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-26312\" class=\"wp-caption-text\">Set External App<\/p>\n<\/div>\n<div id=\"attachment_26313\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Configure-External-App.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26313\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Configure-External-App.png\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Configure-External-App.png 1008w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Configure-External-App-768x590.png 768w\" alt=\"Configure External App\" width=\"1008\" height=\"774\" aria-describedby=\"caption-attachment-26313\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-26313\" class=\"wp-caption-text\">Configure External App<\/p>\n<\/div>\n<p>The most important config here is the\u00a0<strong>Command<\/strong>\u00a0setting which instructs the external app where to find PHP executable it will use; point it to the\u00a0<strong>LSPHP70<\/strong>\u00a0installation:<\/p>\n<pre> Command: \t\/usr\/local\/lsws\/lsphp70\/bin\/lsphp\t\r\n<\/pre>\n<p>Then click on the\u00a0<strong>Save<\/strong>\u00a0button to save the above configurations.<\/p>\n<p><strong>14.<\/strong>\u00a0Next, click on\u00a0<strong>Server Configuration<\/strong>\u00a0\u2192\u00a0<strong>Script Handler<\/strong>\u00a0and edit the default\u00a0<strong>lsphp5<\/strong>\u00a0script handler, use the values below. Once you are done, save the settings.<\/p>\n<pre>Suffixes: \t\tphp\r\nHandler Type: \t\tLiteSpeed SAPI\r\nHandler Name:\t\tlsphp70\r\nNotes:\t\t\tlsphp70 script handler definition \r\n<\/pre>\n<div id=\"attachment_26314\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Configure-Script-Handler.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26314\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Configure-Script-Handler.png\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Configure-Script-Handler.png 1008w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Configure-Script-Handler-768x590.png 768w\" alt=\"Configure Script Handler\" width=\"1008\" height=\"774\" aria-describedby=\"caption-attachment-26314\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-26314\" class=\"wp-caption-text\">Configure Script Handler<\/p>\n<\/div>\n<p><strong>15.<\/strong>\u00a0The default port HTTP servers normally listen on port\u00a0<strong>80<\/strong>, but for OpenLiteSpeed it is\u00a0<strong>8080<\/strong>: change it to\u00a0<strong>80<\/strong>.<\/p>\n<p>Click on\u00a0<strong>Listeners<\/strong>\u00a0to see a list of all listeners configurations. Then click\u00a0<strong>View<\/strong>\u00a0to see all settings of the default listener and to edit, click\u00a0<strong>Edit<\/strong>. Set the port to\u00a0<strong>80<\/strong>\u00a0and save the configuration and save the settings.<\/p>\n<div id=\"attachment_26315\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Set-OpenLiteSpeed-Port.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26315\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Set-OpenLiteSpeed-Port.png\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Set-OpenLiteSpeed-Port.png 1008w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Set-OpenLiteSpeed-Port-768x590.png 768w\" alt=\"Set OpenLiteSpeed Port\" width=\"1008\" height=\"774\" aria-describedby=\"caption-attachment-26315\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-26315\" class=\"wp-caption-text\">Set OpenLiteSpeed Port<\/p>\n<\/div>\n<p><strong>16.<\/strong>\u00a0To reflect the above changes, gracefully restart OpenLiteSpeed by clicking on the\u00a0<strong>restart<\/strong>\u00a0button and click\u00a0<strong>yes<\/strong>\u00a0to confirm.<\/p>\n<div id=\"attachment_26316\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Restart-OpenLiteSpeed-Server.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-26316\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Restart-OpenLiteSpeed-Server.png\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Restart-OpenLiteSpeed-Server.png 1008w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2017\/07\/Restart-OpenLiteSpeed-Server-768x590.png 768w\" alt=\"Restart OpenLiteSpeed Server\" width=\"1008\" height=\"774\" aria-describedby=\"caption-attachment-26316\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-26316\" class=\"wp-caption-text\">Restart OpenLiteSpeed Server<\/p>\n<\/div>\n<h3>Step 5: Verify PHP 7 and OpenLiteSpeed Installation<\/h3>\n<p><strong>17.<\/strong>\u00a0Now test if the OpenLiteSpeed server is listening on port\u00a0<strong>80<\/strong>. Modify firewall rules to permit port\u00a0<strong>80<\/strong>\u00a0via the firewall.<\/p>\n<pre># firewall-cmd --zone=public --permanent --add-port=80\/tcp\r\n# firewall-cmd --reload \r\n<\/pre>\n<p><strong>18.<\/strong>\u00a0Finally verify that OpenLiteSpeed is running on port\u00a0<strong>80<\/strong>\u00a0and PHP 7 using following URL\u2019s.<\/p>\n<pre>http:\/\/SERVER_IP\r\nhttp:\/\/SERVER_IP\/phpinfo.php \r\n<\/pre>\n<p><strong>19.<\/strong>\u00a0To manage and control OpenLiteSpeed service, use these commands.<\/p>\n<pre># \/usr\/local\/lsws\/bin\/lswsctrl start \t\t#start OpenLiteSpeed\r\n# \/usr\/local\/lsws\/bin\/lswsctrl stop   \t\t#Stop OpenLiteSpeed \r\n# \/usr\/local\/lsws\/bin\/lswsctrl restart \t\t#gracefully restart OpenLiteSpeed (zero downtime)\r\n# \/usr\/local\/lsws\/bin\/lswsctrl help \t\t#show OpenLiteSpeed commands\r\n<\/pre>\n<h3>Step 6: Install MariaDB for OpenLiteSpeed<\/h3>\n<p><strong>20.<\/strong>\u00a0Install MariaDB database management system using following command.<\/p>\n<pre># yum install openlitespeed mariadb-server\r\n<\/pre>\n<p><strong>21.<\/strong>\u00a0Next, start the MariaDB database system and secure its installation.<\/p>\n<pre># systemctl start mariadb\r\n# mysql_secure_installation\r\n<\/pre>\n<p>First, it will ask you to provide MariaDB root password, just press ENTER to set a new root password and confirm. For other questions, simply hit ENTER to accept the default settings.<\/p>\n<p>You can find additional information from OpenLitespeed Homepage:\u00a0<a href=\"http:\/\/open.litespeedtech.com\/mediawiki\/\" target=\"_blank\" rel=\"nofollow noopener\">http:\/\/open.litespeedtech.com\/mediawiki\/<\/a><\/p>\n<p>You may also following related articles.<\/p>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/install-lamp-in-centos-7\/\" target=\"_blank\" rel=\"noopener\">Installing LAMP (Linux, Apache, MariaDB, PHP\/PhpMyAdmin) in RHEL\/CentOS 7.0<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/install-nginx-mariadb-php-rhel-centos-fedora\/\" target=\"_blank\" rel=\"noopener\">Install Latest Nginx 1.10.1, MariaDB 10 and PHP 5.5\/5.6 on RHEL\/CentOS 7\/6<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/install-nginx-mysql-php-lemp-in-ubuntu-16-10-ubuntu-16-04\/\" target=\"_blank\" rel=\"noopener\">How To Install Nginx, MariaDB 10, PHP 7 (LEMP Stack) in 16.10\/16.04<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/install-lamp-on-ubuntu-16-10\/\" target=\"_blank\" rel=\"noopener\">How to Install LAMP with PHP 7 and MariaDB 10 on Ubuntu 16.10<\/a><\/li>\n<\/ol>\n<p>In this article, we have explained you through the steps for installing and configuring OpenLiteSpeed with PHP 7 and MariaDB on a CentOS 7 system.<\/p>\n<p>We hope that everything went on well, otherwise send us your queries or any thoughts via the comment section below.<\/p>\n<p><a style=\"font-size: 1rem;\" href=\"https:\/\/www.tecmint.com\/install-openlitespeed-php-7-mariadb-on-centos-7\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>OpenLiteSpeed\u00a0is a free and open source, super lightweight HTTP server for Unix-like operating systems including Linux and Windows OS as well \u2013 designed by LiteSpeed Technologies. It is feature-rich; high performance HTTP server that can be used to manage hundreds of thousands of simultaneous connections without critical server load issues, and it also supports third-party &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/29\/install-openlitespeed-http-php-7-mariadb-on-centos-7\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Install OpenLiteSpeed (HTTP), PHP 7 &#038; MariaDB on CentOS 7&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12861","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12861","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12861"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12861\/revisions"}],"predecessor-version":[{"id":12862,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12861\/revisions\/12862"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}