{"id":550,"date":"2012-07-04T11:41:21","date_gmt":"2012-07-04T11:41:21","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=550"},"modified":"2025-07-24T06:26:46","modified_gmt":"2025-07-24T11:26:46","slug":"how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/","title":{"rendered":"How to install LAMP on CentOS 6 with phpMyAdmin and APC cache"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\n<h5 class=\"wp-block-heading\" id=\"h-status-this-os-is-no-longer-supported\">Status: This OS is no longer supported<\/h5>\n\n\n\n<p><em>This article, &#8220;How to install LAMP on CentOS 6,&#8221; covers a version of CentOS that reached end of life (EOL) on November 30th, 2020, and is no longer supported. For this reason, this guide is no longer maintained. If you are currently operating a server running CentOS 6, we highly recommend contacting <a href=\"https:\/\/www.rosehosting.com\/support\/\">RoseHosting&#8217;s fully managed support<\/a> to upgrade or migrate to a supported version of AlmaLinux.<\/em><\/p>\n\n\n\n<p><strong>See Instead: <\/strong>Although this guide may still be helpful as a reference, it may not be compatible with current AlmaLinux releases. The following RoseHosting tutorial outlines <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mariadb-php-on-centos-7\/\">how to install LAMP on CentOS 7<\/a>.<\/p>\n\n\n\n<!--more-->\n\n\n<p><a href=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/06\/lamp-linux-apache-mysql-php1.jpg\"><img decoding=\"async\" class=\"alignleft size-full wp-image-553\" title=\"lamp-linux-apache-mysql-php\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/06\/lamp-linux-apache-mysql-php1.jpg\" alt=\"Linux Apache MySQL and PHP\" width=\"200\" height=\"124\" \/><\/a>In today&#8217;s article, we will cover the steps on how to install the LAMP (Linux Apache MySQL and PHP) stack on a <a title=\"CentOS 6 Virtual Servers\" href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">CentOS 6 based VPS<\/a>.<\/p>\n<p>LAMP represents a full-featured stack containing the most popular web server, known as Apache, the most popular database server, MySQL, and the most popular open-source web programming language, known as PHP.<\/p>\n<p>This article shows how to setup LAMP on a <a title=\"CentOS Virtual Servers\" href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">CentOS 6 VPS<\/a>, but the procedure is quite similar for <a title=\"Fedora Virtual Servers\" href=\"https:\/\/www.rosehosting.com\/fedora-vps.html\" target=\"_blank\" rel=\"noopener noreferrer\">Fedora Linux<\/a> and\u00a0<a title=\"Scientific Linux virtual servers\" href=\"https:\/\/www.rosehosting.com\/scientific-linux-vps.html\" target=\"_blank\" rel=\"noopener noreferrer\">Scientific Linux<\/a> based <a title=\"Virtual Private Servers\" href=\"https:\/\/www.rosehosting.com\/vps-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">virtual servers<\/a>.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69cc5582075d7\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69cc5582075d7\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/#Installation-Guide\" >Installation Guide<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/#Installing-PHP\" >Installing PHP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/#Installing-MySQL\" >Installing MySQL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Installation-Guide\"><\/span>Installation Guide<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The first thing we need to do is to <strong>make sure our system is fully up-to-date<\/strong>. So, executing the command below will install all available updates:<\/p>\n<pre class=\"brush: shell; gutter: false\"># yum update -y<\/pre>\n<p>After &#8216;yum&#8217; finishes updating your system, let&#8217;s proceed with the Apache installation. Since it is available as a package in the official CentOS repositories, the <strong>installation of Apache<\/strong> goes like this:<\/p>\n<pre class=\"brush: shell; gutter: false\"># yum install httpd -y<\/pre>\n<p>Once the installation is completed, <strong>add Apache to your system&#8217;s startup<\/strong>:<\/p>\n<pre class=\"brush: shell; gutter: false\"># chkconfig --levels 235 httpd on<\/pre>\n<p>And finally <strong>start it up<\/strong>:<\/p>\n<pre class=\"brush: shell; gutter: false\"># service httpd start<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Installing-PHP\"><\/span>Installing PHP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><em>Now, navigate to http:\/\/yourdomain.tld and you should see Apache&#8217;s default page in your browser.<\/em><\/p>\n<p>The next step is to <strong>install PHP<\/strong> as an Apache module (mod_php) so you can run PHP scripts under your Apache web server. To do this execute:<\/p>\n<pre class=\"brush: shell; gutter: false\"># yum install php -y<\/pre>\n<p>After it is installed, <strong>create a PHP info page within Apache&#8217;s document root<\/strong> (\/var\/www\/html) so you can verify if PHP support is enabled on your system.<\/p>\n<pre class=\"brush: shell; gutter: false\"># echo -e \"&lt;?php\\n\\tphpinfo();\\n?&gt;\" &gt; \/var\/www\/html\/info.php<\/pre>\n<p>Once the info.php file is created, reload Apache so the newly installed PHP module can take effect.<\/p>\n<pre class=\"brush: shell; gutter: false\"># service httpd restart<\/pre>\n<p><em>Now open this test.php file in your browser (http:\/\/yourdomain.tld\/info.php) and you should see various information about your PHP installation.<\/em><\/p>\n<p>If you want to have additional PHP modules, for example, mysql support in your PHP, then you need to install the corresponding PHP module for MySQL. The package is named &#8216;php-mysql&#8217; and can easily be installed using &#8216;yum&#8217;. The following is a list of the available PHP modules:<\/p>\n<pre class=\"brush: shell; gutter: false\">php-bcmath \t\t\t=&gt; \tA module for PHP applications using the bcmath library\nphp-cli \t\t\t=&gt; \tCommand-line interface for PHP\nphp-common \t\t\t=&gt; \tCommon files for PHP\nphp-dba \t\t\t=&gt; \tA database abstraction layer module for PHP applications\nphp-devel \t\t\t=&gt; \tFiles needed for building PHP extensions\nphp-embedded\t\t=&gt; \tPHP library for embedding in applications\nphp-enchant\t \t\t=&gt; \tHuman Language and Character Encoding Support\nphp-gd \t\t\t\t=&gt; \tA module for PHP applications using the gd graphics library\nphp-imap \t\t\t=&gt; \tA module for PHP applications that use IMAP\nphp-intl \t\t\t=&gt; \tInternationalization extension for PHP applications\nphp-ldap \t\t\t=&gt; \tA module for PHP applications that use LDAP\nphp-mbstring        =&gt; \tA module for PHP applications which need multi-byte string handling\nphp-mysql \t\t\t=&gt; \tA module for PHP applications that use MySQL databases\nphp-odbc \t\t\t=&gt; \tA module for PHP applications that use ODBC databases\nphp-pdo \t\t\t=&gt; \tA database access abstraction module for PHP applications\nphp-pear.noarch \t=&gt; \tPHP Extension and Application Repository framework\nphp-pecl-apc \t\t=&gt; \tAPC cache optimizing PHP intermediate code\nphp-pecl-memcache \t=&gt; \tExtension to work with the Memcached caching daemon\nphp-pgsql \t\t\t=&gt; \tA PostgreSQL database module for PHP\nphp-process \t\t=&gt; \tModules for PHP scripts using system process interfaces\nphp-pspell \t\t\t=&gt; \tA module for PHP applications using pspell interfaces\nphp-recode \t\t\t=&gt; \tA module for PHP applications using the recode library\nphp-snmp \t\t\t=&gt; \tA module for PHP applications that query SNMP-managed devices\nphp-soap \t\t\t=&gt; \tA module for PHP applications that use the SOAP protocol\nphp-tidy \t\t\t=&gt; \tStandard PHP module provides tidy library support\nphp-xml \t\t\t=&gt; \tA module for PHP applications which use XML\nphp-xmlrpc \t\t\t=&gt; \tA module for PHP applications which use the XML-RPC protocol\nphp-zts \t\t\t=&gt; \tThread-safe PHP interpreter for use with the Apache HTTP Server<\/pre>\n<p>So, pick up the ones you need and install them using &#8216;yum&#8217;, for example:<\/p>\n<pre class=\"brush: shell; gutter: false\"># yum install php-cli php-common php-gd php-mysql -y<\/pre>\n<p>Will install PHP command line interface, PHP&#8217;s standard files, and MySQL support for PHP. Do not forget to reload Apache so the new modules can take effect:<\/p>\n<pre class=\"brush: shell; gutter: false\"># service httpd restart<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Installing-MySQL\"><\/span>Installing MySQL<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Next, we will <strong>install the MySQL server<\/strong>. This can be achieved by doing:<\/p>\n<pre class=\"brush: shell; gutter: false\"># yum install mysql mysql-server -y<\/pre>\n<p>After that, <strong>add it to your system startup <\/strong>and <strong>start the MySQL server<\/strong> using the following commands:<\/p>\n<pre class=\"brush: shell; gutter: false\"># chkconfig --levels 235 mysqld on\n# service mysqld start<\/pre>\n<p>Once it is started, it is recommended to <strong>set the MySQL &#8216;root&#8217; password<\/strong>, <strong>disable remote &#8216;root&#8217; login<\/strong>, <strong>remove anonymous users, and remove the &#8216;test&#8217; database<\/strong>. This can be easily accomplished by executing MySQL&#8217;s &#8216;mysql_secure_installation&#8217; script. So execute:<\/p>\n<pre class=\"brush: shell; gutter: false\"># mysql_secure_installation<\/pre>\n<p>and just hit &#8216;ENTER&#8217; when prompted.<\/p>\n<p>With all that in place, you have a working <strong>LAMP stack<\/strong> on your <strong>CentOS 6<\/strong>. A good idea is to <strong>install phpMyAdmin<\/strong> so you can easily manage your MySQL databases via a nice frontend written in PHP. So, proceed with installing phpMyAdmin using the following commands:<\/p>\n<p><em>(At the time of writing this article, the latest version of phpMyAdmin is 3.5.1. You can always go to http:\/\/sourceforge.net\/projects\/phpmyadmin\/files\/phpMyAdmin\/ and install the latest version available.<\/em><\/p>\n<pre class=\"brush: shell; gutter: false\"># wget -P \/tmp http:\/\/prdownloads.sourceforge.net\/phpmyadmin\/phpMyAdmin-3.5.1-english.tar.gz\n# tar -zxf \/tmp\/phpMyAdmin*.tar.gz -C \/var\/www\/html\/\n# mv \/var\/www\/html\/phpMyAdmin-3.5.1-english \/var\/www\/html\/dbAdmin\n# cd \/var\/www\/html\/dbAdmin\n# cp config.sample.inc.php config.inc.php<\/pre>\n<p>The last thing you should do is open phpMyAdmin&#8217;s configuration file:<\/p>\n<pre class=\"brush: shell; gutter: false\"># vim config.inc.php<\/pre>\n<p>and change the following line:<\/p>\n<pre class=\"brush: shell; gutter: false\">$cfg['Servers'][$i]['auth_type'] = 'cookie';<\/pre>\n<p>with<\/p>\n<pre class=\"brush: shell; gutter: false\">$cfg['Servers'][$i]['auth_type'] = 'http';<\/pre>\n<p>Save the file and navigate to http:\/\/yourdomain.com\/dbAdmin, where you can log in using your MySQL &#8216;root&#8217; user and its password.<\/p>\n<hr \/>\n<p>Before we finish with the setup it is recommended to<strong> install some PHP cache engine<\/strong> so it can do some caching and will certainly speed things up. So, <strong>install PHP APC cache<\/strong> by executing:<\/p>\n<pre class=\"brush: shell; gutter: false\"># yum install php-pecl-apc -y<\/pre>\n<p>The default APC settings are fine, but configuring it to your needs is recommended if you want maximum performance. For a 512MB RAM-based <a title=\"CentOS 6 Virtual Servers\" href=\"https:\/\/www.rosehosting.com\/centos-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">CentOS 6 VPS,<\/a> the following APC configuration is optimal and is working perfectly fine. So edit\/create &#8216;\/etc\/php.d\/apc.ini&#8217; containing the following options:<\/p>\n<pre class=\"brush: shell; gutter: false\">extension=apc.so\napc.enabled = 1\napc.shm_segments = 1\napc.shm_size = 32M\napc.optimization = 0\napc.num_files_hint = 512\napc.user_entries_hint = 1024\napc.ttl = 0\napc.user_ttl = 0\napc.gc_ttl = 600\napc.cache_by_default = 1\napc.filters = \"apc\\.php$\"\napc.slam_defense = 0\napc.use_request_time = 1\napc.mmap_file_mask = \/tmp\/apc-CentOS.XXXXXX\n;OR apc.mmap_file_mask = \/dev\/zero\napc.file_update_protection = 2\napc.enable_cli = 0\napc.max_file_size = 2M\napc.stat = 1\napc.write_lock = 1\napc.report_autofilter = 0\napc.include_once_override = 0\napc.rfc1867 = 0\napc.rfc1867_prefix = \"upload_\"\napc.rfc1867_name = \"APC_UPLOAD_PROGRESS\"\napc.rfc1867_freq = 0\napc.localcache = 1\napc.localcache.size = 512\napc.coredump_unmap = 0\napc.stat_ctime = 0<\/pre>\n<p>And finally, reload Apache so the changes can take effect. Do that by executing:<\/p>\n<pre class=\"brush: shell; gutter: false\"># service httpd restart<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>That&#8217;s it as far as the installation of the LAMP stack goes. However, in some of the next articles, we will describe how you can use the LAMP stack to host multiple domains using Apache&#8217;s &#8216;Virtual Host Directives&#8217;, as we showed you how to <a title=\"Set up a new virtual host (server block) on your Nginx server.\" href=\"https:\/\/www.rosehosting.com\/blog\/set-up-a-new-virtual-host-server-block-on-your-nginx-server\/\" target=\"_blank\" rel=\"noopener noreferrer\">set up a new virtual host on your Nginx server<\/a>. We will also describe how to enable SSL (secure socket layer) for your website(s), so stay tuned. Alternatively, you may want to read this guide, <a href=\"https:\/\/www.rosehosting.com\/blog\/install-lamp-linux-apache-mariadb-and-php-with-phpmyadmin-on-a-fedora-20-vps\/\">Install LAMP (Linux Apache MariaDB and PHP) with phpMyAdmin on Fedora 20<\/a>, for updates.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>","protected":false},"excerpt":{"rendered":"<p>Status: This OS is no longer supported This article, &#8220;How to install LAMP on CentOS 6,&#8221; covers a version of &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to install LAMP on CentOS 6 with phpMyAdmin and APC cache\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/#more-550\" aria-label=\"Read more about How to install LAMP on CentOS 6 with phpMyAdmin and APC cache\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":553,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1699,1702,13,1707],"tags":[37,52,34,7,93,91,27,39,50,94,1152,28],"class_list":["post-550","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-databases","category-tutorials","category-web-servers","tag-apache","tag-apc","tag-centos","tag-debian-vps-server","tag-fedora","tag-lamp","tag-linux","tag-mysql","tag-php","tag-phpmyadmin","tag-rosehosting","tag-virtual-private-server","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Install LAMP on CentOS 6 Easily with These Steps<\/title>\n<meta name=\"description\" content=\"Learn how to install LAMP on CentOS 6 quickly and easily. Set up your web server efficiently with our comprehensive guide.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install LAMP on CentOS 6 with phpMyAdmin and APC cache\" \/>\n<meta property=\"og:description\" content=\"How to install LAMP on CentOS 6 with phpMyAdmin and APC cache | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2012-07-04T11:41:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-24T11:26:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/06\/lamp-linux-apache-mysql-php1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"124\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to install LAMP on CentOS 6 with phpMyAdmin and APC cache\",\"datePublished\":\"2012-07-04T11:41:21+00:00\",\"dateModified\":\"2025-07-24T11:26:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\\\/\"},\"wordCount\":898,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/06\\\/lamp-linux-apache-mysql-php1.jpg\",\"keywords\":[\"apache\",\"apc\",\"centos\",\"debian vps server\",\"fedora\",\"lamp\",\"Linux\",\"mysql\",\"php\",\"phpmyadmin\",\"rosehosting\",\"Virtual Private Server\"],\"articleSection\":[\"CentOS\",\"Databases\",\"Tutorials\",\"Web Servers\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\\\/\",\"name\":\"Install LAMP on CentOS 6 Easily with These Steps\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/06\\\/lamp-linux-apache-mysql-php1.jpg\",\"datePublished\":\"2012-07-04T11:41:21+00:00\",\"dateModified\":\"2025-07-24T11:26:46+00:00\",\"description\":\"Learn how to install LAMP on CentOS 6 quickly and easily. Set up your web server efficiently with our comprehensive guide.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/06\\\/lamp-linux-apache-mysql-php1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/06\\\/lamp-linux-apache-mysql-php1.jpg\",\"width\":\"200\",\"height\":\"124\",\"caption\":\"Linux Apache MySQL and PHP\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install LAMP on CentOS 6 with phpMyAdmin and APC cache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Install LAMP on CentOS 6 Easily with These Steps","description":"Learn how to install LAMP on CentOS 6 quickly and easily. Set up your web server efficiently with our comprehensive guide.","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:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/","og_locale":"en_US","og_type":"article","og_title":"How to install LAMP on CentOS 6 with phpMyAdmin and APC cache","og_description":"How to install LAMP on CentOS 6 with phpMyAdmin and APC cache | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2012-07-04T11:41:21+00:00","article_modified_time":"2025-07-24T11:26:46+00:00","og_image":[{"width":200,"height":124,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/06\/lamp-linux-apache-mysql-php1.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to install LAMP on CentOS 6 with phpMyAdmin and APC cache","datePublished":"2012-07-04T11:41:21+00:00","dateModified":"2025-07-24T11:26:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/"},"wordCount":898,"commentCount":4,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/06\/lamp-linux-apache-mysql-php1.jpg","keywords":["apache","apc","centos","debian vps server","fedora","lamp","Linux","mysql","php","phpmyadmin","rosehosting","Virtual Private Server"],"articleSection":["CentOS","Databases","Tutorials","Web Servers"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/","name":"Install LAMP on CentOS 6 Easily with These Steps","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/06\/lamp-linux-apache-mysql-php1.jpg","datePublished":"2012-07-04T11:41:21+00:00","dateModified":"2025-07-24T11:26:46+00:00","description":"Learn how to install LAMP on CentOS 6 quickly and easily. Set up your web server efficiently with our comprehensive guide.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/06\/lamp-linux-apache-mysql-php1.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2012\/06\/lamp-linux-apache-mysql-php1.jpg","width":"200","height":"124","caption":"Linux Apache MySQL and PHP"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-lamp-linux-apache-mysql-and-php-on-centos-6-with-phpmyadmin-and-apc-cache\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install LAMP on CentOS 6 with phpMyAdmin and APC cache"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=550"}],"version-history":[{"count":9,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/550\/revisions"}],"predecessor-version":[{"id":50890,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/550\/revisions\/50890"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/553"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}