{"id":5821,"date":"2017-06-22T09:46:01","date_gmt":"2017-06-22T09:46:01","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=5821"},"modified":"2021-02-01T06:13:20","modified_gmt":"2021-02-01T06:13:20","slug":"install-apache-2-php7-mariadb-10-2-centos-7-x","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/","title":{"rendered":"How to Install Apache 2, PHP7 and MariaDB 10.2 on CentOS 7.x"},"content":{"rendered":"<p><span style=\"color: #000000;\">In this tutorial, I\u2019m going to focus on work from the command line to install Apache PHP7 and MariaDB on Linux. This will be the same for all version of Linux \u2013 only the package manager will be different.<\/span><!--more--><\/p>\n<p><span style=\"color: #000000;\"> So in these examples I\u2019m using \u201cyum\u201d for CentOS. If you\u2019re using Ubuntu, you need to use \u201capt-get\u201d etc.<\/span><\/p>\n<h3><span style=\"color: #000000;\">Step 1: Enabling the EPEL Repository<\/span><\/h3>\n<p><span style=\"color: #000000;\">Some of the required packages are might not available through the main CentOS repository, you must enable the <a href=\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-and-enable-epel-repo-on-centos-7\/\">EPEL repository<\/a> (Extra Packages for Enterprise Linux). As root, run following commands:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>rpm --import \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY*\r\nrpm --import https:\/\/fedoraproject.org\/static\/0608B895.txt\r\nyum -y install epel-release<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<h3><span style=\"color: #000000;\">Step 2: Removing the Previous PHP Version<\/span><\/h3>\n<p><span style=\"color: #000000;\">It is necessary to remove the existing PHP packages (if there are any) since Apache will need the <a href=\"https:\/\/cpanelplesk.com\/wp62\/install-php-7-on-centos\/\">PHP7 packages<\/a> to run PHP scripts:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>yum -y remove php-cli mod_php php-common<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<h3><span style=\"color: #000000;\">Step 4: Enabling the MariaDB 10.2 Repository<\/span><\/h3>\n<p><span style=\"color: #000000;\">By default, Yum will install MariaDB 5.5. In order to force Yum to install <a href=\"https:\/\/cpanelplesk.com\/wp62\/install-mysql-server-instead-mariadb-centos\/\">MariaDB<\/a> 10.3, you must create a file named MariaDB.repo in \/etc\/yum.repos.d:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>nano \/etc\/yum.repos.d\/MariaDB.repo<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Insert the following content into the newly created file:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>[mariadb]\r\nname = MariaDB-10.2.3\r\nbaseurl = http:\/\/yum.mariadb.org\/10.2.3\/centos7-amd64\r\ngpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB\r\ngpgcheck=1<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<h3><span style=\"color: #000000;\">Step 5: Installing the Required Modules<\/span><\/h3>\n<p><span style=\"color: #000000;\">You can install all the required packages using a single <a href=\"https:\/\/cpanelplesk.com\/wp62\/how-to-fix-yum-duplicate-packages-or-broken-dependencies-2\/\">yum <\/a>command (I assume you\u2019re logged into root):<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>yum -q -y install httpd mod_ssl mod_php71u php71u-cli php71u-mbstring \r\nphp71u-mcrypt php71u-mysqlnd php71u-json MariaDB-server MariaDB-client \r\nMariaDB-devel<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">This will install the required packages and their dependencies from the repositories. please note that you should change this command depending on your specific Linux falvour .<\/span><\/p>\n<p><span style=\"color: #000000;\">Confirm the download of packages and wait for it to finish. And you\u2019re done! Apache, PHP 7, and <a href=\"https:\/\/cpanelplesk.com\/wp62\/upgrade-mariadb-5-5-mariadb-10-0-mariadb-10-1-linux\/\">MariaDB<\/a> 10.2 are installed.<\/span><\/p>\n<h3><span style=\"color: #000000;\">Step 6: Check if the httpd Service is Running<\/span><\/h3>\n<p><span style=\"color: #000000;\">Package installation doesn\u2019t mean that it\u2019s automatically running. To verify whether or not Apache is running on your server, type the following command:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>systemctl status httpd<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">You will see, the current status is \u201cinactive\u201d. This means that <a href=\"https:\/\/cpanelplesk.com\/wp62\/add-new-site-apache-based-centos-server\/\">Apache<\/a> isn\u2019t running yet and won\u2019t be able to service any requests. So we need to manually start it.<\/span><\/p>\n<h3><span style=\"color: #000000;\">Step 7: Starting Apache HTTPD Server<\/span><\/h3>\n<p><span style=\"color: #000000;\">To start Apache, use the following:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>systemctl start httpd,\/pre.<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">This won\u2019t generate any output, but Apache will start running in the background. Using the previous step, you can now check once again to see if the httpd service is active. If so, it\u2019ll highlight the status in green as shown here<\/span><\/p>\n<h3><span style=\"color: #000000;\">Step 8: Open up your Firewall Port<\/span><\/h3>\n<p><span style=\"color: #000000;\">Apache uses port 80 by default and port 443 for SSL to receive incoming connections. Depending upon your firewall setup, these ports might not be open. For example If you\u2019re using <a href=\"https:\/\/cpanelplesk.com\/wp62\/how-to-install-csf-firewall-on-cpanel-server\/\">ConfigServer Firewall <\/a>, the list of open ports is located in the following file:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>\/etc\/csf\/csf.conf<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Open it and scroll down till you see the line starting with TCP_IN. It\u2019ll show you a list of ports separated by a comma. Make sure that 80 and 443 are among the opened ports:<\/span><br \/>\n<span style=\"color: #000000;\"> After that, you\u2019ll probably need to restart the<a href=\"https:\/\/cpanelplesk.com\/wp62\/installing-apf-firewall-on-your-system\/\"> firewall<\/a> for the rules to take effect.<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>csf -r<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Now that port 80 is open and Apache is running, we can test to see if everything is working.<\/span><\/p>\n<h3><span style=\"color: #000000;\">Step 9: Testing Apache<\/span><\/h3>\n<p><span style=\"color: #000000;\">To test if all is well, simply open a browser and visit your server by typing in the IP address or the domain name into the address bar using http. If all the above steps have gone perfect, you should see a testing page.<\/span><br \/>\n<span style=\"color: #000000;\"> Step 10: Setting Apache to Run on Boot<\/span><\/p>\n<p><span style=\"color: #000000;\">Even though Apache is running right now, httpd will not persist through server reboots. To make that happen, we need to enable the service. Doing this is simple. Just use:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>systemctl enable httpd<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<h3><span style=\"color: #000000;\">Step 11: Testing PHP 7.1<\/span><\/h3>\n<p><span style=\"color: #000000;\">To make sure that PHP7 is working correctly, create a file named phpinfo.php and save it to \/var\/www\/html:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>nano \/var\/www\/html\/phpinfo.php<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Add the following content to the PHP file and save it:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>&lt;?php phpinfo(); ?&gt;<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Now open <strong>http:\/\/[your server hostname]\/phpinfo.php<\/strong> using your web browser. You should get the information page for PHP.<\/span><br \/>\n<span style=\"color: #000000;\"> Once done make sure to delete the phpinfo.php file as it exposes your PHP configuration to the whole world:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>rm \/var\/www\/html\/phpinfo.php<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<h3><span style=\"color: #000000;\">Step 12: Starting the MariaDB Server<\/span><\/h3>\n<p><span style=\"color: #000000;\">In order for the MariaDB server to start automatically at boot, use this command:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>systemctl enable mariadb<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Next, start the MariaDB server:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>systemctl start mariadb<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<h3><span style=\"color: #000000;\">Step 13: Securing the MariaDB Server<\/span><\/h3>\n<p><span style=\"color: #000000;\">As root, run the mysql_secure_installation script to harden your <a href=\"https:\/\/cpanelplesk.com\/wp62\/install-upgrade-mariadb-10-1-12-ubuntu-debian-mint\/\">MariaDB <\/a>server:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>mysql_secure_installation<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Make sure to specify the MariaDB root password, remove the anonymous users and disallow remote root login.<\/span><\/p>\n<h3><span style=\"color: #000000;\">Step 14: Creating a New MariaDB User and Database<\/span><\/h3>\n<p><span style=\"color: #000000;\">We\u2019re now going to create a test database as well as a MariaDB user. To do so, we\u2019ll use the \u201cmysql\u201d command line tool. Type this command and enter your MariaDB root password when prompted:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>mysql -u root -p<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Now we\u2019ll create a database named \u201ccppldb\u201d and a user named \u201ccppl\u201d:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>MariaDB [(none)]&gt; create database cppldb;\r\nMariaDB [(none)]&gt; create user 'cppl'@localhost identified by \r\n'password';\r\nMariaDB [(none)]&gt; grant all on maindb.* to 'cppl' identified by \r\n'password';\r\nMariaDB [(none)]&gt; exit;<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<h3><span style=\"color: #000000;\">Step 15: Installing phpMyAdmin<\/span><\/h3>\n<p><span style=\"color: #000000;\">phpMyAdmin is a PHP application that allows you to manage MySQL and MariaDB databases through a web interface.<\/span><\/p>\n<p><span style=\"color: #000000;\">Since the <a href=\"https:\/\/cpanelplesk.com\/wp62\/upgrade-phpmyadmin-latest-version-linux\/\">phpMyAdmin<\/a> package for CentOS depends on PHP 5 packages, it will not be possible to install it using Yum. Here\u2019s how to install phpMyAdmin manually<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>cd \/root\/temp\r\nwget https:\/\/files.phpmyadmin.net\/phpMyAdmin\/4.6.5.2\/phpMyAdmin\r\n-4.6.5.2-all-languages.tar.gz\r\ntar xvzf phpMyAdmin-4.6.5.2-all-languages.tar.gz\r\nmv phpMyAdmin-4.6.5.2-all-languages phpmyadmin\r\nmv phpmyadmin \/var\/www\/html\/\r\nchown -R nobody.nobody \/var\/www\/html\/phpmyadmin<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Next you need to create a configuration file. Copy the sample file provided with phpMyAdmin:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>cp \/var\/www\/html\/phpmyadmin\/config.sample.inc.php \/var\/www\/html\r\n\/phpmyadmin\/config.inc.php\r\nnano \/var\/www\/html\/phpmyadmin\/config.inc.php<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Set the value for the $cfg[\u2018blowfish_secret\u2019] parameter. The minimum length for the password is 32 characters:<\/span><\/p>\n<div class=\"space1\"><\/div>\n<div class=\"command-sh\">\n<pre>$cfg['blowfish_secret'] = 'my_blowfish_secret_32_chars';<\/pre>\n<\/div>\n<div class=\"space1\"><\/div>\n<p><span style=\"color: #000000;\">Save the file and exit the editor. Open your web browser to <strong>http:\/\/[your server hostname]\/phpmyadmin<\/strong> and use the cppl account credentials you created earlier to log in.<\/span><\/p>\n<p><span style=\"color: #000000;\">you should now be able to manage your databases through <a href=\"https:\/\/cpanelplesk.com\/wp62\/install-phpmyadmin-fedora-centos-rhel-apache-web-server\/\">phpMyAdmin.<\/a><\/span><\/p>\n<p><span style=\"color: #000000;\">So that\u2019s it, you now have a brand new web server running Apache 2.4, PHP 7.1 and MariaDB 10.2. This is a very basic setup so feel free to give your opinion below if you experience any issues or to discuss your ideas and experiences.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, I\u2019m going to focus on work from the command line to install Apache PHP7 and MariaDB on Linux. This will be the same for all version of Linux \u2013 only the package manager will be different. [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":2,"featured_media":5823,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,14],"tags":[],"class_list":["post-5821","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install Apache 2, PHP7 and MariaDB 10.2 on CentOS 7.x - cPanel Plesk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install Apache 2, PHP7 and MariaDB 10.2 on CentOS 7.x - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"In this tutorial, I\u2019m going to focus on work from the command line to install Apache PHP7 and MariaDB on Linux. This will be the same for all version of Linux \u2013 only the package manager will be different. [...]Continue Reading...\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2017\/06\/centos7.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Seemab Saleem\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/\"},\"author\":{\"name\":\"Seemab Saleem\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\"},\"headline\":\"How to Install Apache 2, PHP7 and MariaDB 10.2 on CentOS 7.x\",\"datePublished\":\"2017-06-22T09:46:01+00:00\",\"dateModified\":\"2021-02-01T06:13:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/\"},\"wordCount\":924,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2017\/06\/centos7.jpg\",\"articleSection\":[\"Cpanel\",\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/\",\"name\":\"How to Install Apache 2, PHP7 and MariaDB 10.2 on CentOS 7.x - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2017\/06\/centos7.jpg\",\"datePublished\":\"2017-06-22T09:46:01+00:00\",\"dateModified\":\"2021-02-01T06:13:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2017\/06\/centos7.jpg\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2017\/06\/centos7.jpg\",\"width\":225,\"height\":225},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Apache 2, PHP7 and MariaDB 10.2 on CentOS 7.x\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648\",\"name\":\"Seemab Saleem\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g\",\"caption\":\"Seemab Saleem\"},\"description\":\"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!\",\"sameAs\":[\"https:\/\/cpanelplesk.com\/wp62\"],\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Apache 2, PHP7 and MariaDB 10.2 on CentOS 7.x - cPanel Plesk","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/","twitter_card":"summary_large_image","twitter_title":"How to Install Apache 2, PHP7 and MariaDB 10.2 on CentOS 7.x - cPanel Plesk","twitter_description":"In this tutorial, I\u2019m going to focus on work from the command line to install Apache PHP7 and MariaDB on Linux. This will be the same for all version of Linux \u2013 only the package manager will be different. [...]Continue Reading...","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2017\/06\/centos7.jpg","twitter_misc":{"Written by":"Seemab Saleem","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/"},"author":{"name":"Seemab Saleem","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648"},"headline":"How to Install Apache 2, PHP7 and MariaDB 10.2 on CentOS 7.x","datePublished":"2017-06-22T09:46:01+00:00","dateModified":"2021-02-01T06:13:20+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/"},"wordCount":924,"commentCount":0,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2017\/06\/centos7.jpg","articleSection":["Cpanel","Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/","url":"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/","name":"How to Install Apache 2, PHP7 and MariaDB 10.2 on CentOS 7.x - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2017\/06\/centos7.jpg","datePublished":"2017-06-22T09:46:01+00:00","dateModified":"2021-02-01T06:13:20+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2017\/06\/centos7.jpg","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2017\/06\/centos7.jpg","width":225,"height":225},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/install-apache-2-php7-mariadb-10-2-centos-7-x\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"How to Install Apache 2, PHP7 and MariaDB 10.2 on CentOS 7.x"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/73d573cc7eaaf6625cf0dbd72191a648","name":"Seemab Saleem","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6a87ff2e53b03e6839250e5278a6bd46?s=96&d=mm&r=g","caption":"Seemab Saleem"},"description":"Linux Server Administrator, Web Hosting engineer. I'm dealing with Linux servers since 2014. I started this blog to share the work i love with the world . let me know if you need any assistance. Thanks!!","sameAs":["https:\/\/cpanelplesk.com\/wp62"],"url":"https:\/\/cpanelplesk.com\/wp62\/author\/cmb\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/5821","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=5821"}],"version-history":[{"count":0,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/5821\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media\/5823"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=5821"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=5821"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=5821"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}