{"id":4807,"date":"2014-01-11T01:20:07","date_gmt":"2014-01-10T17:20:07","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=4807"},"modified":"2023-04-28T09:48:20","modified_gmt":"2023-04-28T09:48:20","slug":"install-mysql-apache-and-php-on-centos-6-5","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/install-mysql-apache-and-php-on-centos-6-5\/","title":{"rendered":"Install MySQL, Apache and PHP on CentOS 6.5"},"content":{"rendered":"<p>LAMP stand for Linux, Apache, MySQL and PHP which is group of software used to run an web applications. The combination of these software is called LAMP stack. This document will walk you through the steps to install MySQL, Apache and PHP on CentOS 6.5.<\/p>\n<p><strong><br \/>\nWhat is Apache ?<\/strong><br \/>\nApache httpd is one of the most popular web servers and has a lot of features that make it very extensible and useful for many different types of websites.<\/p>\n<p><strong>What is MySQL?<\/strong><br \/>\nMySQL Database server is one of the most popular used database in the internet especially for content management and blogging site.<\/p>\n<p><strong>What is PHP?<\/strong><br \/>\nPHP is a widely-used and open-source server-side scripting language that was especially designed for web development to produce dynamic web pages and can be embedded into HTML.<\/p>\n<p><strong>Steps :<\/strong><br \/>\n1. Install MySQL, Apache and PHP :<\/p>\n<pre>[root@centos6-05 ~]# yum install mysql mysql-server httpd php* -y<\/pre>\n<p>2. Start Apache and MySQL :<\/p>\n<pre>[root@centos6-05 ~]# service httpd start<\/pre>\n<pre>[root@centos6-05 ~]# service mysqld start<\/pre>\n<p>3. Check Apache, MySQL and PHP version :<br \/>\n<strong>Apache<\/strong><\/p>\n<pre>[root@centos6-05 ~]# httpd -v\nServer version: Apache\/2.2.15 (Unix)\nServer built:   Aug 13 2013 17:29:28<\/pre>\n<p><strong>MySQL<\/strong><\/p>\n<pre>[root@centos6-05 ~]# mysql -V\nmysql  Ver 14.14 Distrib 5.1.71, for redhat-linux-gnu (x86_64) using readline 5.1<\/pre>\n<p><strong>PHP<\/strong><\/p>\n<pre>[root@centos6-05 ~]# php -v\nPHP 5.3.3 (cli) (built: Dec 11 2013 03:29:57)\nCopyright (c) 1997-2010 The PHP Group\nZend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies<\/pre>\n<p>4. Verifying Apache, MySQL and PHP :<\/p>\n<p>Create a page called phpinfo.php under web root directory \/var\/www\/html.<\/p>\n<pre>[root@centos6-05 ~]# vi \/var\/www\/html\/index.php<\/pre>\n<pre>&lt;?php\n\n     phpinfo ();\n?&gt;<\/pre>\n<p>Restart Apache :<\/p>\n<pre>[root@centos6-05 ~]# service httpd restart<\/pre>\n<p><img decoding=\"async\" class=\"alignnone  wp-image-4809 lazyload\" alt=\"php-info\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/01\/php-info.png\" width=\"549\" height=\"394\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/01\/php-info.png 610w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2014\/01\/php-info-300x215.png 300w\" data-sizes=\"(max-width: 549px) 100vw, 549px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 549px; --smush-placeholder-aspect-ratio: 549\/394;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>LAMP stand for Linux, Apache, MySQL and PHP which is group of software used to run an web applications. The combination of these software is called LAMP stack. This document&#8230;<\/p>\n","protected":false},"author":6,"featured_media":5598,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1103,2055,1008,1025],"tags":[1199,1256,1536,1585,1646],"class_list":["post-4807","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","category-centos","category-mysql","category-php","tag-apache","tag-centos-6-5","tag-linux","tag-mysql","tag-php"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=4807"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4807\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/5598"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=4807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=4807"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=4807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}