{"id":58,"date":"2014-09-19T17:28:00","date_gmt":"2014-09-19T17:28:00","guid":{"rendered":"http:\/\/onlinelab.info\/2014\/09\/19\/centos-and-rhel-7-install-linux-apache-mariadb-php-lamp-stack\/"},"modified":"2014-09-19T17:28:00","modified_gmt":"2014-09-19T17:28:00","slug":"centos-and-rhel-7-install-linux-apache-mariadb-php-lamp-stack","status":"publish","type":"post","link":"https:\/\/www.asianux.org.vn\/index.php\/2014\/09\/19\/centos-and-rhel-7-install-linux-apache-mariadb-php-lamp-stack\/","title":{"rendered":"CentOS and RHEL 7: Install Linux, Apache, MariaDB, PHP (LAMP) Stack"},"content":{"rendered":"<p><span style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #888888; float: left; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 3.571em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 0.76em; margin: 0px; orphans: auto; padding: 0.04em 0.12em 0px 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">I<\/span><span style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; display: inline !important; float: none; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">am new Red Hat Enterprise Linux version 7 user\/sysadmin\/developer. This version made the big number change for RHEL 7\/CentOS 7. How can I install LAMP (Linux, Apache, MariaDB, PHP) stack on a RHEL version 7 or CentOS Linux version 7 using CLI or over ssh based session?<\/span><br style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\" \/><span style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><\/span><\/p>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; float: right; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 0px 5px; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">\n<table cellspacing=\"0\" style=\"-webkit-box-shadow: rgb(209, 209, 209) 0px 1px 2px; background: rgb(234, 235, 236); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(204, 204, 204); box-shadow: rgb(209, 209, 209) 0px 1px 2px; color: #666666; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin: 1px; padding: 0px; text-shadow: rgb(255, 255, 255) 1px 1px 0px;\">\n<tbody style=\"margin: 0px; padding: 0px;\">\n<tr style=\"margin: 0px; padding: 0px 0px 0px 20px; text-align: center;\">\n<th style=\"background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(237, 237, 237)), to(rgb(235, 235, 235))); border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(250, 250, 250); border-top-left-radius: 3px; border-top-style: solid; border-top-width: 1px; margin: 0px; padding: 5px 9px 6px 20px; text-align: left;\">Tutorial details<\/th>\n<th style=\"background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(237, 237, 237)), to(rgb(235, 235, 235))); border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1px; border-top-color: rgb(250, 250, 250); border-top-right-radius: 3px; border-top-style: solid; border-top-width: 1px; margin: 0px; padding: 5px 9px 6px;\"><\/th>\n<\/tr>\n<tr style=\"margin: 0px; padding: 0px 0px 0px 20px; text-align: center;\">\n<td style=\"background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(251, 251, 251)), to(rgb(250, 250, 250))); border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1px; border-left-width: 0px; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-top-width: 1px; margin: 0px; padding: 2px 2px 2px 20px; text-align: left;\">Difficulty<\/td>\n<td style=\"background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(251, 251, 251)), to(rgb(250, 250, 250))); border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1px; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-top-width: 1px; margin: 0px; padding: 2px;\"><a href=\"http:\/\/www.cyberciti.biz\/faq\/tutorial-difficulty-level\/easy\/\" style=\"color: #2361a1; font-weight: bold; margin: 0px; padding: 0px; text-decoration: none;\" title=\"See all Easy Linux \/ Unix System Administrator Tutorials\" target=\"_blank\" rel=\"noopener\">Easy<\/a><span>&nbsp;<\/span>(<a href=\"http:\/\/www.cyberciti.biz\/faq\/tutorial-difficulty-level\/easy\/feed\/\" style=\"color: #2361a1; font-weight: bold; margin: 0px; padding: 0px; text-decoration: none;\" title=\"See all Easy Linux \/ Unix System Administrator Tutorials via rss feed\" target=\"_blank\" rel=\"noopener\">rss<\/a>)<\/td>\n<\/tr>\n<tr style=\"margin: 0px; padding: 0px 0px 0px 20px; text-align: center;\">\n<td style=\"background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(248, 248, 248)), to(rgb(246, 246, 246))); border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1px; border-left-width: 0px; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-top-width: 1px; margin: 0px; padding: 2px 2px 2px 20px; text-align: left;\">Root privileges<\/td>\n<td style=\"background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(248, 248, 248)), to(rgb(246, 246, 246))); border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1px; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-top-width: 1px; margin: 0px; padding: 2px;\"><a href=\"http:\/\/www.cyberciti.biz\/faq\/how-can-i-log-in-as-root\/\" style=\"color: #2361a1; font-weight: bold; margin: 0px; padding: 0px; text-decoration: none;\" title=\"See how to login as root user\" target=\"_blank\" rel=\"noopener\">Yes<\/a><\/td>\n<\/tr>\n<tr style=\"margin: 0px; padding: 0px 0px 0px 20px; text-align: center;\">\n<td style=\"background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(251, 251, 251)), to(rgb(250, 250, 250))); border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1px; border-left-width: 0px; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-top-width: 1px; margin: 0px; padding: 2px 2px 2px 20px; text-align: left;\">Requirements<\/td>\n<td style=\"background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(251, 251, 251)), to(rgb(250, 250, 250))); border-bottom-color: rgb(224, 224, 224); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1px; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-top-width: 1px; margin: 0px; padding: 2px;\">CentOS\/RHEL v7.x<\/td>\n<\/tr>\n<tr style=\"margin: 0px; padding: 0px 0px 0px 20px; text-align: center;\">\n<td style=\"background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(248, 248, 248)), to(rgb(246, 246, 246))); border-bottom-left-radius: 3px; border-bottom-width: 0px; border-left-width: 0px; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-top-width: 1px; margin: 0px; padding: 2px 2px 2px 20px; text-align: left;\">Estimated completion time<\/td>\n<td style=\"background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(248, 248, 248)), to(rgb(246, 246, 246))); border-bottom-right-radius: 3px; border-bottom-width: 0px; border-left-color: rgb(224, 224, 224); border-left-style: solid; border-left-width: 1px; border-top-color: rgb(255, 255, 255); border-top-style: solid; border-top-width: 1px; margin: 0px; padding: 2px;\">20m<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p><span style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; display: inline !important; float: none; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">RHEL 7 has been released and CentOS Linux 7 is on its way with many notable changes. This guide explains how to install LAMP server.<\/span><\/p>\n<h2 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">More about LAMP<\/h2>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">LAMP is nothing but a software bundle or a platform consisting of Linux operating system, Apache web-server, MySQL database server and PHP (or Perl\/Python)scripting language. The LAMP stack is used for building heavy-duty dynamic web sites entirely out of free and open-source software. In this tutorial, I&#8217;m going to explain how to Linux, Apache, MySQL\/MariaDB (drop in replacement for MySQL), PHP (LAMP) stack On CentOS 7 or RHEL 7.<\/div>\n<h2 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Assumptions<\/h2>\n<ul style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; list-style: square; margin: 0px 0px 1.571em 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">\n<li style=\"margin: 0px; padding: 0px;\">I&#8217;m assuming that you&#8217;ve installed basic RHEL 7 or CentOS 7 server. Open the Terminal app and type the following command as root user.<\/li>\n<li style=\"margin: 0px; padding: 0px;\">You must be familiar with the<span>&nbsp;<\/span><a href=\"http:\/\/www.cyberciti.biz\/faq\/rhel-centos-fedora-linux-yum-command-howto\/\" style=\"color: #2361a1; margin: 0px; padding: 0px; text-decoration: underline;\" title=\"See Linux\/Unix yum command examples for more info\" target=\"_blank\" rel=\"noopener\">yum command<\/a><\/li>\n<li style=\"margin: 0px; padding: 0px;\">You must know your Server&#8217;s IP address. Use the following command to find your server&#8217;s ip address for eth0 interface:<br style=\"margin: 0px; padding: 0px;\" \/><br style=\"margin: 0px; padding: 0px;\" \/><kbd style=\"margin: 0px; padding: 0px;\"><strong style=\"margin: 0px; padding: 0px;\">ifconfig eth0<\/strong><\/kbd><br style=\"margin: 0px; padding: 0px;\" \/>OR<br style=\"margin: 0px; padding: 0px;\" \/><kbd style=\"margin: 0px; padding: 0px;\"><strong style=\"margin: 0px; padding: 0px;\">ip a show eth0<\/strong><\/kbd><br style=\"margin: 0px; padding: 0px;\" \/>OR<br style=\"margin: 0px; padding: 0px;\" \/><kbd style=\"margin: 0px; padding: 0px;\"><strong style=\"margin: 0px; padding: 0px;\">ip addr list eth0 | awk '\/inet \/{sub(\/\/[0-9]+\/,\"\",$2); print $2}'<\/strong><\/kbd><br style=\"margin: 0px; padding: 0px;\" \/>OR<br style=\"margin: 0px; padding: 0px;\" \/><kbd style=\"margin: 0px; padding: 0px;\"><strong style=\"margin: 0px; padding: 0px;\">ifconfig eth0 | awk '\/inet \/{print $2}'<\/strong><\/kbd><br style=\"margin: 0px; padding: 0px;\" \/><kbd style=\"margin: 0px; padding: 0px;\">10.41.143.156<\/kbd><\/li>\n<li style=\"margin: 0px; padding: 0px;\">I&#8217;m going to use IP address<span>&nbsp;<\/span><kbd style=\"margin: 0px; padding: 0px;\">10.41.143.156<\/kbd><span>&nbsp;<\/span>for testing purpose. Feel free to replace this IP address with your actual private or public IP address.<\/li>\n<\/ul>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Enough talk, let&#8217;s set up LAMP stack.<\/div>\n<h2 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Step #1: Install Apache on a CentOS 7 \/ RHEL 7 server<\/h2>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Type the following<span>&nbsp;<\/span><a href=\"http:\/\/www.cyberciti.biz\/faq\/rhel-centos-fedora-linux-yum-command-howto\/\" style=\"color: #2361a1; margin: 0px; padding: 0px; text-decoration: underline;\" title=\"See Linux\/Unix yum command examples for more info\" target=\"_blank\" rel=\"noopener\">yum command<\/a><span>&nbsp;<\/span>to install Apache web-server:<br style=\"margin: 0px; padding: 0px;\" \/><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo yum install httpd<\/code><br style=\"margin: 0px; padding: 0px;\" \/>Sample outputs:<\/div>\n<pre style=\"-webkit-text-stroke-width: 0px; background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); clear: both; color: #111111; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5em; margin: 0px 0px 1.833em; orphans: auto; overflow: auto; padding: 0.667em 0.917em; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px;\">Loaded plugins: amazon-id, rhui-lb<br \/>Resolving Dependencies<br \/>--&gt; Running transaction check<br \/>---&gt; Package httpd.x86_64 <span style=\"margin: 0px; padding: 0px;\">0<\/span>:<span style=\"margin: 0px; padding: 0px;\">2.4<\/span><span style=\"margin: 0px; padding: 0px;\">.6<\/span><span style=\"margin: 0px; padding: 0px;\">-17<\/span>.el7 will be installed<br \/>--&gt; Processing Dependency: httpd-<span style=\"color: #000099; margin: 0px; padding: 0px;\">tools <\/span>=<span style=\"color: #660066; margin: 0px; padding: 0px;\"> <span style=\"margin: 0px; padding: 0px;\">2.4<\/span><span style=\"margin: 0px; padding: 0px;\">\n.6<\/span><span style=\"margin: 0px; padding: 0px;\">-17<\/span>.el7 for package: httpd<span style=\"margin: 0px; padding: 0px;\">-2.4<\/span><span style=\"margin: 0px; padding: 0px;\">.6<\/span><span style=\"margin: 0px; padding: 0px;\">-17<\/span>.el7.x86_64<\/span><br \/>--&gt; Processing Dependency: \/etc\/mime.types for package: httpd<span style=\"margin: 0px; padding: 0px;\">-2.4<\/span><span style=\"margin: 0px; padding: 0px;\">.6<\/span><span style=\"margin: 0px; padding: 0px;\">-17<\/span>.el7.x86_64<br \/>--&gt; Running transaction check<br \/>---&gt; Package httpd-tools.x86_64 <span style=\"margin: 0px; padding: 0px;\">0<\/span>:<span style=\"margin: 0px; padding: 0px;\">2.4<\/span><span style=\"margin: 0px; padding: 0px;\">.6<\/span><span style=\"margin: 0px; padding: 0px;\">-17<\/span>.el7 will be installed<br \/>---&gt; Package mailcap.noarch <span style=\"margin: 0px; padding: 0px;\">0<\/span>:<span style=\"margin: 0px; padding: 0px;\">2.1<\/span><span style=\"margin: 0px; padding: 0px;\">.41<\/span><span style=\"margin: 0px; padding: 0px;\">-2<\/span>.el7 will be installed<br \/>--&gt; Finished Dependency Resolution<br \/>&nbsp;<br \/>Dependencies <span style=\"color: #000099; margin: 0px; padding: 0px;\">Resolved<br \/>&nbsp;<br \/><\/span>=<span style=\"color: #660066; margin: 0px; padding: 0px;\">=====================================================================================================<\/span><br \/> Package            Arch          Version               Repository                               <span style=\"color: #000099; margin: 0px; padding: 0px;\">Size<br \/><\/span>=<span style=\"color: #660066; margin: 0px; padding: 0px;\">=====================================================================================================<\/span><br \/>Installing:<br \/> httpd              x86_64        <span style=\"margin: 0px; padding: 0px;\">2.4<\/span><span style=\"margin: 0px; padding: 0px;\">.6<\/span><span style=\"margin: 0px; padding: 0px;\">-17<\/span>.el7          rhui-REGION-rhel-server-releases        <span style=\"margin: 0px; padding: 0px;\">1.2<\/span> M<br \/>Installing for dependencies:<br \/> httpd-tools        x86_64        <span style=\"margin: 0px; padding: 0px;\">2.4<\/span><span style=\"margin: 0px; padding: 0px;\">.6<\/span><span style=\"margin: 0px; padding: 0px;\">-17<\/span>.el7          rhui-REGION-rhel-server-releases         <span style=\"margin: 0px; padding: 0px;\">77<\/span> k<br \/> mailcap            noarch        <span style=\"margin: 0px; padding: 0px;\">2.1<\/span><span style=\"margin: 0px; padding: 0px;\">.41<\/span><span style=\"margin: 0px; padding: 0px;\">-2<\/span>.el7          rhui-REGION-rhel-server-releases         <span style=\"margin: 0px; padding: 0px;\">31<\/span> k<br \/>&nbsp;<br \/>Transaction <span style=\"color: #000099; margin: 0px; padding: 0px;\">Summary<br \/><\/span>=<span style=\"color: #660066; margin: 0px; padding: 0px;\">=====================================================================================================<\/span><br \/>Install  <span style=\"margin: 0px; padding: 0px;\">1<\/span> Package <span style=\"margin: 0px; padding: 0px;\">(<\/span><span style=\"margin: 0px; padding: 0px;\">+2<\/span> Dependent packages<span style=\"margin: 0px; padding: 0px;\">)<\/span><br \/>&nbsp;<br \/>Total download size: <span style=\"margin: 0px; padding: 0px;\">1.3<\/span> M<br \/>Installed size: <span style=\"margin: 0px; padding: 0px;\">3.9<\/span> M<br \/>Is this ok <span style=\"color: #000066; font-weight: bold; margin: 0px; padding: 0px;\"><span style=\"margin: 0px; padding: 0px;\">[<\/span>y\/d\/N<span style=\"margin: 0px; padding: 0px;\">]<\/span><\/span>: y<br \/>Downloading packages:<br \/><span style=\"margin: 0px; padding: 0px;\">(<\/span><span style=\"margin: 0px; padding: 0px;\">1<\/span>\/<span style=\"margin: 0px; padding: 0px;\">3<\/span><span style=\"margin: 0px; padding: 0px;\">)<\/span>: httpd-tools<span style=\"margin: 0px; padding: 0px;\">-2.4<\/span><span style=\"margin: 0px; padding: 0px;\">.6<\/span><span style=\"margin: 0px; padding: 0px;\">-17<\/span>.el7.x86_64.rpm                                     |  <span style=\"margin: 0px; padding: 0px;\">77<\/span> kB  <span style=\"margin: 0px; padding: 0px;\">00<\/span>:<span style=\"margin: 0px; padding: 0px;\">00<\/span>:<span style=\"margin: 0px; padding: 0px;\">00<\/span><br \/><span style=\"margin: 0px; padding: 0px;\">(<\/span><span style=\"margin: 0px; padding: 0px;\">2<\/span>\/<span style=\"margin: 0px; padding: 0px;\">3<\/span><span style=\"margin: 0px; padding: 0px;\">)<\/span>: httpd<span style=\"margin: 0px; padding: 0px;\">-2.4<\/span><span style=\"margin: 0px; padding: 0px;\">.6<\/span><span style=\"margin: 0px; padding: 0px;\">-17<\/span>.el7.x86_64.rpm                                           | <span style=\"margin: 0px; padding: 0px;\">1.2<\/span> MB  <span style=\"margin: 0px; padding: 0px;\">00<\/span>:<span style=\"margin: 0px; padding: 0px;\">00<\/span>:<span style=\"margin: 0px; padding: 0px;\">00<\/span><br \/><span style=\"margin: 0px; padding: 0px;\">(<\/span><span style=\"margin: 0px; padding: 0px;\">3<\/span>\/<span style=\"margin: 0px; padding: 0px;\">3<\/span><span style=\"margin: 0px; padding: 0px;\">)<\/span>: mailcap<span style=\"margin: 0px; padding: 0px;\">-2.1<\/span><span style=\"margin: 0px; padding: 0px;\">.41<\/span><span style=\"margin: 0px; padding: 0px;\">-2<\/span>.el7.noarch.rpm                                         |  <span style=\"margin: 0px; padding: 0px;\">31<\/span> kB  <span style=\"margin: 0px; padding: 0px;\">00<\/span>:<span style=\"margin: 0px; padding: 0px;\">00<\/span>:<span style=\"margin: 0px; padding: 0px;\">00<\/span><br \/>------------------------------------------------------------------------------------------------------<br \/>Total                                                                 <span style=\"margin: 0px; padding: 0px;\">2.0<\/span> MB\/s | <span style=\"margin: 0px; padding: 0px;\">1.3<\/span> MB  <span style=\"margin: 0px; padding: 0px;\">00<\/span>:<span style=\"margin: 0px; padding: 0px;\">00<\/span>:<span style=\"margin: 0px; padding: 0px;\">00<\/span><br \/>Running transaction check<br \/>Running transaction test<br \/>Transaction test succeeded<br \/>Running transaction<br \/>  Installing : httpd-tools<span style=\"margin: 0px; padding: 0px;\">-2.4<\/span><span style=\"margin: 0px; padding: 0px;\">.6<\/span><span style=\"margin: 0px; padding: 0px;\">-17<\/span>.el7.x86_64                                                    <span style=\"margin: 0px; padding: 0px;\">1<\/span>\/<span style=\"margin: 0px; padding: 0px;\">3<\/span><br \/>  Installing : mailcap<span style=\"margin: 0px; padding: 0px;\">-2.1<\/span><span style=\"margin: 0px; padding: 0px;\">.41<\/span><span style=\"margin: 0px; padding: 0px;\">-2<\/span>.el7.noarch                                                        <span style=\"margin: 0px; padding: 0px;\">2<\/span>\/<span style=\"margin: 0px; padding: 0px;\">3<\/span><br \/>  Installing : httpd<span style=\"margin: 0px; padding: 0px;\">-2.4<\/span><span style=\"margin: 0px; padding: 0px;\">.6<\/span><span style=\"margin: 0px; padding: 0px;\">-17<\/span>.el7.x86_64                                                          <span style=\"margin: 0px; padding: 0px;\">3<\/span>\/<span style=\"margin: 0px; padding: 0px;\">3<\/span><br \/>  Verifying  : mailcap<span style=\"margin: 0px; padding: 0px;\">-2.1<\/span><span style=\"margin: 0px; padding: 0px;\">.41<\/span><span style=\"margin: 0px; padding: 0px;\">-2<\/span>.el7.noarch                                                        <span style=\"margin: 0px; padding: 0px;\">1<\/span>\/<span style=\"margin: 0px; padding: 0px;\">3<\/span><br \/>  Verifying  : httpd-tools<span style=\"margin: 0px; padding: 0px;\">-2.4<\/span><span style=\"margin: 0px; padding: 0px;\">.6<\/span><span style=\"margin: 0px; padding: 0px;\">-17<\/span>.el7.x86_64                                                    <span style=\"margin: 0px; padding: 0px;\">2<\/span>\/<span style=\"margin: 0px; padding: 0px;\">3<\/span><br \/>  Verifying  : httpd<span style=\"margin: 0px; padding: 0px;\">-2.4<\/span><span style=\"margin: 0px; padding: 0px;\">.6<\/span><span style=\"margin: 0px; padding: 0px;\">-17<\/span>.el7.x86_64                                                          <span style=\"margin: 0px; padding: 0px;\">3<\/span>\/<span style=\"margin: 0px; padding: 0px;\">3<\/span><br \/>&nbsp;<br \/>Installed:<br \/>  httpd.x86_64 <span style=\n\"margin: 0px; padding: 0px;\">0<\/span>:<span style=\"margin: 0px; padding: 0px;\">2.4<\/span><span style=\"margin: 0px; padding: 0px;\">.6<\/span><span style=\"margin: 0px; padding: 0px;\">-17<\/span>.el7<br \/>&nbsp;<br \/>Dependency Installed:<br \/>  httpd-tools.x86_64 <span style=\"margin: 0px; padding: 0px;\">0<\/span>:<span style=\"margin: 0px; padding: 0px;\">2.4<\/span><span style=\"margin: 0px; padding: 0px;\">.6<\/span><span style=\"margin: 0px; padding: 0px;\">-17<\/span>.el7                   mailcap.noarch <span style=\"margin: 0px; padding: 0px;\">0<\/span>:<span style=\"margin: 0px; padding: 0px;\">2.1<\/span><span style=\"margin: 0px; padding: 0px;\">.41<\/span><span style=\"margin: 0px; padding: 0px;\">-2<\/span>.el7<br \/>&nbsp;<br \/>Complete!<br \/>&nbsp;<\/pre>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Enable the httpd service at boot time<\/h3>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">To make sure the httpd service start automatically at the boot time, enter:<br style=\"margin: 0px; padding: 0px;\" \/><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo systemctl enable httpd.service<\/code><br style=\"margin: 0px; padding: 0px;\" \/>Sample outputs:<\/div>\n<pre style=\"-webkit-text-stroke-width: 0px; background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); clear: both; color: #111111; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5em; margin: 0px 0px 1.833em; orphans: auto; overflow: auto; padding: 0.667em 0.917em; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px;\">ln -s '\/usr\/lib\/systemd\/system\/httpd.service' '\/etc\/systemd\/system\/multi-user.target.wants\/httpd.service'<\/pre>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">The following command will disable the httpd service at the boot time:<br style=\"margin: 0px; padding: 0px;\" \/><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo systemctl disable httpd.service<\/code><br style=\"margin: 0px; padding: 0px;\" \/>Sample outputs:<\/div>\n<pre style=\"-webkit-text-stroke-width: 0px; background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); clear: both; color: #111111; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5em; margin: 0px 0px 1.833em; orphans: auto; overflow: auto; padding: 0.667em 0.917em; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px;\">rm '\/etc\/systemd\/system\/multi-user.target.wants\/httpd.service'<\/pre>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Start the httpd service on a CentOS\/RHEL v7.x<\/h3>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo systemctl start httpd.service<\/code><br style=\"margin: 0px; padding: 0px;\" \/>At this stage, you can point your web-browser to your server&#8217;s IP address such as http:\/\/10.41.143.156). The following page should display on screen:<\/div>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; border: 0px none rgb(221, 221, 221); clear: both; color: #111111; float: none; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: italic; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px auto 1.571em; orphans: auto; padding: 0px; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 608px; word-spacing: 0px;\"><a href=\"http:\/\/www.cyberciti.biz\/faq\/howto-install-linux-apache-mariadb-php-lamp-stack-on-centos7-rhel7\/test-page\/\" rel=\"attachment wp-att-53771 noopener\" style=\"color: #2361a1; margin: 0px; padding: 0px; text-decoration: underline;\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" alt=\"Fig.01: Check if Apache is Running on CentOS\/RHEL 7 server\" class=\"size-full wp-image-53771\" height=\"445\" src=\"http:\/\/s0.cyberciti.org\/uploads\/faq\/2014\/06\/test-page.jpg\" style=\"border: 0px; margin: 0px; padding: 0px;\" width=\"598\" title=\"\"><\/a><\/p>\n<div style=\"font-size: 0.857em; line-height: 1.5em; margin: 0px; padding: 0px;\">Fig.01: Check if Apache is Running on CentOS\/RHEL 7 server<\/div>\n<\/div>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Stop the httpd service on a CentOS\/RHEL v7.x<\/h3>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 22\n1); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo systemctl stop httpd.service<\/code><\/div>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Restart the httpd service on a CentOS\/RHEL v7.x<\/h3>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo systemctl restart httpd.service<\/code><\/div>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Finding the httpd service status on a CentOS\/RHEL v7.x<\/h3>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">To verify that the httpd service is running, enter:<br style=\"margin: 0px; padding: 0px;\" \/><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">systemctl is-active httpd.service<\/code><br style=\"margin: 0px; padding: 0px;\" \/>Sample outputs:<\/div>\n<pre style=\"-webkit-text-stroke-width: 0px; background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); clear: both; color: #111111; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5em; margin: 0px 0px 1.833em; orphans: auto; overflow: auto; padding: 0.667em 0.917em; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px;\">active<\/pre>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Gracefully restart the httpd service on a CentOS\/RHEL v7.x<\/h3>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo apachectl graceful<\/code><\/div>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Test httpd\/Apache configuration file for errors on a CentOS\/RHEL v7.x<\/h3>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\"><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo apachectl configtest<\/code><br style=\"margin: 0px; padding: 0px;\" \/>Sample outputs:<\/div>\n<pre style=\"-webkit-text-stroke-width: 0px; background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); clear: both; color: #111111; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5em; margin: 0px 0px 1.833em; orphans: auto; overflow: auto; padding: 0.667em 0.917em; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px;\">Syntax OK<\/pre>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">httpd service default configuration<\/h3>\n<ol style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">\n<li style=\"margin: 0px; padding: 0px;\">Default config file:<span>&nbsp;<\/span><kbd style=\"margin: 0px; padding: 0px;\">\/etc\/httpd\/conf\/httpd.conf<\/kbd><\/li>\n<li style=\"margin: 0px; padding: 0px;\">Configuration files which load modules :<span>&nbsp;<\/span><kbd style=\"margin: 0px; padding: 0px;\">\/etc\/httpd\/conf.modules.d\/<\/kbd><span>&nbsp;<\/span>directory (e.g. PHP)<\/li>\n<li s\ntyle=\"margin: 0px; padding: 0px;\">Select MPMs (Processing Model) as loadable modules [worker, prefork (default)] and event:<kbd style=\"margin: 0px; padding: 0px;\">\/etc\/httpd\/conf.modules.d\/00-mpm.conf<\/kbd><\/li>\n<li style=\"margin: 0px; padding: 0px;\">Default ports: 80 and 443 (SSL)<\/li>\n<li style=\"margin: 0px; padding: 0px;\">Default log files:<span>&nbsp;<\/span><kbd style=\"margin: 0px; padding: 0px;\">\/var\/log\/httpd\/{access_log,error_log}<\/kbd><\/li>\n<\/ol>\n<h2 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Step #2: Install MariaDB on a CentOS 7 \/ RHEL 7 server<\/h2>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">MariaDB An enhanced, drop-in replacement for MySQL server. RHEL\/CentOS v7.x shifts from MySQL to MariaDB for its database management system needs. Type the following<span>&nbsp;<\/span><a href=\"http:\/\/www.cyberciti.biz\/faq\/rhel-centos-fedora-linux-yum-command-howto\/\" style=\"color: #2361a1; margin: 0px; padding: 0px; text-decoration: underline;\" title=\"See Linux\/Unix yum command examples for more info\" target=\"_blank\" rel=\"noopener\">yum command<\/a><span>&nbsp;<\/span>to install MariaDB server:<br style=\"margin: 0px; padding: 0px;\" \/><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo yum install mariadb-server mariadb<\/code><br style=\"margin: 0px; padding: 0px;\" \/>To start mariadb, type:<br style=\"margin: 0px; padding: 0px;\" \/><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo systemctl start mariadb.service<\/code><br style=\"margin: 0px; padding: 0px;\" \/>To make sure the mariadb service start automatically at the boot time, enter:<br style=\"margin: 0px; padding: 0px;\" \/><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo systemctl enable mariadb.service<\/code><br style=\"margin: 0px; padding: 0px;\" \/>Sample outputs:<\/div>\n<pre style=\"-webkit-text-stroke-width: 0px; background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); clear: both; color: #111111; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5em; margin: 0px 0px 1.833em; orphans: auto; overflow: auto; padding: 0.667em 0.917em; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px;\">ln -s '\/usr\/lib\/systemd\/system\/mariadb.service' '\/etc\/systemd\/system\/multi-user.target.wants\/mariadb.service'<\/pre>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">To stop\/restart and disable mariadb service use the following commands:<\/div>\n<pre style=\"-webkit-text-stroke-width: 0px; background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); clear: both; color: #111111; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5em; margin: 0px 0px 1.833em; orphans: auto; overflow: auto; padding: 0.667em 0.917em; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px;\"><span style=\"color: #c20cb9; font-weight: bold; margin: 0px; padding: 0px;\">sudo<\/span> systemctl stop mariadb.service <span style=\"color: grey; font-style: italic; margin: 0px; padding: 0px;\">#&lt;-- Stop mariadb server<\/span><br \/><span style=\"color: #c20cb9; font-weight: bold; margin: 0px; padding: 0px;\">sudo<\/span> systemctl restart mariadb.service <span style=\"color: grey; font-style: italic; margin: 0px; padding: 0px;\">#&lt;-- Restart mariadb server<\/span><br \/><span style=\"color: #c20cb9; font-weight: bold; margin: 0px; padding: 0px;\">sudo<\/span> systemctl disable mariadb.service <span style=\"color: grey; font-style: italic; margin: 0px; padding: 0px;\">#&lt;-- Disable mariadb server<\/span><br \/><span style=\"color: #c20cb9; font-weight: bold; margin: 0px; padding: 0px;\">sudo<\/span> systemctl is-active mariadb.service   <span style=\"color: grey; font-style: italic; margin: 0px; padding: 0px;\">#&lt;-- Is mariadb server running?<\/span><\/pre>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Securing MariaDB<\/h3>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Type the following command:<br style=\"margin: 0px; padding: 0px;\" \/><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo \/usr\/bin\/mysql_secure_installation<\/code><br style=\"margin: 0px; padding: 0px;\" \/>Sample outputs:<\/div>\n<pre style=\"-webkit-text-stroke-width: 0px; background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); clear: both; color: #111111; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5em; margin: 0px 0px 1.833em; orphans: auto; overflow: auto; padding: 0.667em 0.917em; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px;\">NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB<br \/>      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!<br \/>In order to log into MariaDB to secure it, we'll need the current<br\n \/>password for the root user.  If you've just installed MariaDB, and<br \/>you haven't set the root password yet, the password will be blank,<br \/>so you should just press enter here.<br \/>Enter current password for root (enter for none): <strong style=\"margin: 0px; padding: 0px;\"><span style=\"color: #009900; margin: 0px; padding: 0px;\">PRESS-ENTER-KEY<\/span><\/strong><br \/>OK, successfully used password, moving on...<br \/>Setting the root password ensures that nobody can log into the MariaDB<br \/>root user without the proper authorisation.<br \/>Set root password? [Y\/n] Y<br \/>New password: <strong style=\"margin: 0px; padding: 0px;\"><span style=\"color: #009900; margin: 0px; padding: 0px;\">YOUR-NEW-PASSWORD-HERE<\/span><\/strong><br \/>Re-enter new password: <strong style=\"margin: 0px; padding: 0px;\"><span style=\"color: #009900; margin: 0px; padding: 0px;\">YOUR-NEW-PASSWORD-HERE<\/span><\/strong><br \/>Password updated successfully!<br \/>Reloading privilege tables..<br \/> ... Success!<br \/>By default, a MariaDB installation has an anonymous user, allowing anyone<br \/>to log into MariaDB without having to have a user account created for<br \/>them.  This is intended only for testing, and to make the installation<br \/>go a bit smoother.  You should remove them before moving into a<br \/>production environment.<br \/>Remove anonymous users? [Y\/n] <strong style=\"margin: 0px; padding: 0px;\"><span style=\"color: #009900; margin: 0px; padding: 0px;\">Y<\/span><\/strong><br \/> ... Success!<br \/>Normally, root should only be allowed to connect from 'localhost'.  This<br \/>ensures that someone cannot guess at the root password from the network.<br \/>Disallow root login remotely? [Y\/n] <span style=\"color: #009900; margin: 0px; padding: 0px;\"><strong style=\"margin: 0px; padding: 0px;\">Y<\/strong><\/span><br \/> ... Success!<br \/>By default, MariaDB comes with a database named 'test' that anyone can<br \/>access.  This is also intended only for testing, and should be removed<br \/>before moving into a production environment.<br \/>Remove test database and access to it? [Y\/n] <strong style=\"margin: 0px; padding: 0px;\"><span style=\"color: #009900; margin: 0px; padding: 0px;\">Y<\/span><\/strong><br \/> - Dropping test database...<br \/> ... Success!<br \/> - Removing privileges on test database...<br \/> ... Success!<br \/>Reloading the privilege tables will ensure that all changes made so far<br \/>will take effect immediately.<br \/>Reload privilege tables now? [Y\/n] <span style=\"color: #009900; margin: 0px; padding: 0px;\"><strong style=\"margin: 0px; padding: 0px;\">Y<\/strong><\/span><br \/> ... Success!<br \/>Cleaning up...<br \/>All done!  If you've completed all of the above steps, your MariaDB<br \/>installation should now be secure.<br \/>Thanks for using MariaDB!<br \/><\/pre>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Test MariaDB installation<\/h3>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Type the following command<br style=\"margin: 0px; padding: 0px;\" \/><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">mysql -u root -p<\/code><br style=\"margin: 0px; padding: 0px;\" \/>Sample outputs:<\/div>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; border: 0px none rgb(221, 221, 221); clear: both; color: #111111; float: none; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: italic; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px auto 1.571em; orphans: auto; padding: 0px; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 608px; word-spacing: 0px;\"><a href=\"http:\/\/www.cyberciti.biz\/faq\/howto-install-linux-apache-mariadb-php-lamp-stack-on-centos7-rhel7\/mariadb-test\/\" rel=\"attachment wp-att-53789 noopener\" style=\"color: #2361a1; margin: 0px; padding: 0px; text-decoration: underline;\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" alt=\"Fig.02: Mariadb test connection on a CentOS \/ RHEL Linux v7.x\" class=\"size-full wp-image-53789\" height=\"320\" src=\"http:\/\/s0.cyberciti.org\/uploads\/faq\/2014\/06\/mariadb-test.jpg\" style=\"border: 0px; margin: 0px; padding: 0px;\" width=\"598\" title=\"\"><\/a><\/p>\n<div style=\"font-size: 0.857em; line-height: 1.5em; margin: 0px; padding: 0px;\">Fig.02: Mariadb test connection on a CentOS \/ RHEL Linux v7.x<\/div>\n<\/div>\n<h2 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Step #3: Install PHP on a CentOS\/RHEL v7.x<\/h2>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">To install PHP and modules such as gd\/msyql type the following<span>&nbsp;<\/span><a href=\"http:\/\/www.cyberciti.biz\/faq\/rhel-centos-fedora-linux-yum-command-howto\/\" style=\"color: #2361a1; margin: 0px; padding: 0px; text-decoration: underline;\" title=\"See Linux\/Unix yum command examples for more info\" target=\"_blank\" rel=\"noopener\">yum command<\/a>:<br style=\"margin: 0px; padding: 0px;\" \/><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo yum install php php-mysql php-gd php-pear<\/code><br style=\"margin: 0px; padding: 0px;\" \/>You must restart the httpd (Apache) service, enter:<br style=\"margin: 0px; padding: 0px;\" \/><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo systemctl restart httpd.service<\/code><br style=\"margin: 0px; padding: 0px;\" \/>To search all other php modules, type:<br style=\"margin: 0px; padding: 0px;\" \/><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo yum search php-<\/code><br style=\"margin: 0px; padding: 0px;\" \/>Sample outputs:<\/div>\n<pre style=\"-webkit-text-stroke-width: 0px; background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); clear: both; col\nor: #111111; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5em; margin: 0px 0px 1.833em; orphans: auto; overflow: auto; padding: 0.667em 0.917em; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px;\">php-cli.x86_64 : Command-line interface for PHP<br \/>php-common.x86_64 : Common files for PHP<br \/>php-gd.x86_64 : A module for PHP applications for using the gd graphics library<br \/>php-ldap.x86_64 : A module for PHP applications that use LDAP<br \/>php-mysql.x86_64 : A module for PHP applications that use MySQL databases<br \/>php-odbc.x86_64 : A module for PHP applications that use ODBC databases<br \/>php-pdo.x86_64 : A database access abstraction module for PHP applications<br \/>php-pear.noarch : PHP Extension and Application Repository framework<br \/>php-pecl-memcache.x86_64 : Extension to work with the Memcached caching daemon<br \/>php-pgsql.x86_64 : A PostgreSQL database module for PHP<br \/>php-process.x86_64 : Modules for PHP script using system process interfaces<br \/>php-recode.x86_64 : A module for PHP applications for using the recode library<br \/>php-soap.x86_64 : A module for PHP applications that use the SOAP protocol<br \/>php-xml.x86_64 : A module for PHP applications which use XML<br \/>php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol<\/pre>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">To find more info about a module type:<br style=\"margin: 0px; padding: 0px;\" \/><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo yum info php-pgsql<\/code><br style=\"margin: 0px; padding: 0px;\" \/>To install php module called php-pgsql type:<br style=\"margin: 0px; padding: 0px;\" \/><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo yum install php-pgsql<\/code><\/div>\n<h3 style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 1.286em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.222em; margin: 1.833em 0px 0.611em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Test PHP on your server<\/h3>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Create a file called \/var\/www\/html\/test.php as follows:<br style=\"margin: 0px; padding: 0px;\" \/><code style=\"background: none 0px 0px repeat scroll rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); display: block; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; line-height: 1.5em; margin: 0px 0px 1.833em; overflow: auto; padding: 0.667em 0.917em;\">sudo vi \/var\/www\/html\/test.php<\/code><br style=\"margin: 0px; padding: 0px;\" \/>Append the following code:<\/div>\n<pre style=\"-webkit-text-stroke-width: 0px; background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); clear: both; color: #111111; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5em; margin: 0px 0px 1.833em; orphans: auto; overflow: auto; padding: 0.667em 0.917em; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px;\">&nbsp;<br \/><span style=\"color: black; font-weight: bold; margin: 0px; padding: 0px;\">&lt;?php<\/span><br \/>   <a href=\"http:\/\/www.php.net\/phpinfo\" style=\"color: #2361a1; margin: 0px; padding: 0px; text-decoration: underline;\" target=\"_blank\" rel=\"noopener\"><span style=\"color: #000066; margin: 0px; padding: 0px;\">phpinfo<\/span><\/a><span style=\"color: #66cc66; margin: 0px; padding: 0px;\">(<\/span>INFO_GENERAL<span style=\"color: #66cc66; margin: 0px; padding: 0px;\">)<\/span>;<br \/><span style=\"color: black; font-weight: bold; margin: 0px; padding: 0px;\">?&gt;<\/span><br \/>&nbsp;<\/pre>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Save and close the file. Point your web-browser to your server&#8217;s IP address such as http:\/\/10.41.143.156\/test.php (feel free to replace the 10.41.143.156 with your actual IP address):<\/div>\n<pre style=\"-webkit-text-stroke-width: 0px; background: rgb(238, 238, 238); border: 1px solid rgb(221, 221, 221); clear: both; color: #111111; font-family: Consolas, 'Andale Mono', Monaco, Courier, 'Courier New', Verdana, sans-serif; font-size: 0.857em; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.5em; margin: 0px 0px 1.833em; orphans: auto; overflow: auto; padding: 0.667em 0.917em; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px;\">http:\/\/10.41.143.156\/test.php<\/pre>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px 0px 1.571em; orphans: auto; padding: 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;\">Sample outputs:<\/div>\n<div style=\"-webkit-text-stroke-width: 0px; background-color: white; border: 0px none rgb(221, 221, 221); clear: both; color: #111111; float: none; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; font-style: italic; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21.9939994812012px; margin: 0px auto 1.571em; orphans: auto; padding: 0px; text-align: center; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 510px; word-spacing: 0px;\"><a href=\"http:\/\/www.cyberciti.biz\/faq\/howto-install-linux-apache-mariadb-php-lamp-stack-on-centos7-rhel7\/phpinfo-rhel-centos-7-output\/\" rel=\"attachment wp-att-53794 noopener\" style=\"color: #2361a1; margin: 0px; padding: 0px; text-decoration: underline;\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" alt=\"Fig.03: Test Apache+PHP with phpinfo() On a CentOS\/RHEL v7.x server\" class=\"size-full wp-image-53794\" height=\"781\" src=\"http:\/\/s0.cyberciti.org\/uploads\/faq\/2014\/06\/phpinfo-rhel-centos-7-output.jpg\" style=\"border: 0px; margin: 0px; padding: 0px;\" width=\"500\" title=\"\"><\/a><\/p>\n<div style=\"font-size: 0.857e\nm; line-height: 1.5em; margin: 0px; padding: 0px;\">Fig.03: Test Apache+PHP with phpinfo() On a CentOS\/RHEL v7.x server<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Iam new Red Hat Enterprise Linux version 7 user\/sysadmin\/developer. This version made the big number change for RHEL 7\/CentOS 7. How can I install LAMP (Linux, Apache, MariaDB, PHP) stack on a RHEL version 7&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-58","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/comments?post=58"}],"version-history":[{"count":0,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/posts\/58\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/media?parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/categories?post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.asianux.org.vn\/index.php\/wp-json\/wp\/v2\/tags?post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}