{"id":1945,"date":"2012-02-12T18:43:40","date_gmt":"2012-02-12T10:43:40","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=1945"},"modified":"2023-06-23T13:12:56","modified_gmt":"2023-06-23T13:12:56","slug":"how-to-install-wordpress-blog-on-linux-centos-6-rhel-6","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-wordpress-blog-on-linux-centos-6-rhel-6\/","title":{"rendered":"How to Install WordPress Blog on Linux CentOS 6 \/ RHEL 6"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignleft wp-image-6188 size-full lazyload\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2015\/03\/centos-wordpress.png\" alt=\"How to Install WordPress Blog on Linux\" width=\"200\" height=\"120\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 200px; --smush-placeholder-aspect-ratio: 200\/120;\" \/>This article will explain the steps on\u00a0how to install WordPress blog on Linux CentOS 6,\u00a0Redhat Enterprise Linux 6 (RHEL 6) and Oracle Linux 6. WordPress is an open-source blogging platform. It&#8217;s a free blogging tool and content management system (CMS) based on PHP and MySQL. Follow this howto guides to install the WordPress on RHEL 6. This post assumed that apache and mysql has been setup on this server. If not, proceed to the following Apache and MySQL installation howto :<\/p>\n<p><a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-install-apache-httpd-server-on-rhel-6\/\">How to Install Apache Httpd Server on RHEL 6<\/a><br \/>\n<a href=\"https:\/\/webhostinggeeks.com\/howto\/how-to-install-mysql-server-on-rhel-6\/\">How to Install MySQL Server on RHEL 6<\/a><\/p>\n<h4>Steps\u00a0to Install WordPress Blog on Linux<\/h4>\n<p>1. Make sure you are on the DocumentRoot directory where you will put the wordpress files :<\/p>\n<pre class=\"code\">[root@rhel6 html]# pwd\n\/var\/www\/html<\/pre>\n<p>2. Download the WordPress :<\/p>\n<pre class=\"code\">[root@rhel6 html]# wget http:\/\/wordpress.org\/latest.tar.gz<\/pre>\n<p>3. Extract the lates.tar.gz files :<\/p>\n<pre class=\"code\">[root@rhel6 html]# tar xzvf latest.tar.gz\n<\/pre>\n<p>4. Proceed to create the database for WordPress. On your server, try to create a new (empty) MySQL database for WordPress (For example, you can call it \u201cwpdb\u201d. If your the newbie, you can follow this basic steps to create a new database and assign a user and it\u2019s permission :<\/p>\n<pre class=\"code\">[root@rhel6 ~]# mysql -u root -p\nEnter password:\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\nYour MySQL connection id is 2\nServer version: 5.1.47 Source distribution\n\nCopyright (c) 2000, 2010, Oracle and\/or its affiliates. All rights reserved.\nThis software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL v2 license\n\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nmysql&gt; CREATE DATABASE wpdb;\nQuery OK, 1 row affected (0.00 sec)\n\nmysql&gt; CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'wppassword';\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql&gt; GRANT ALL PRIVILEGES ON wpdb.* to wpuser@localhost;\nQuery OK, 0 rows affected (0.00 sec)\n\nmysql&gt; SHOW GRANTS FOR 'wpuser'@'localhost';\n+---------------------------------------------------------------------------------------------------------------+\n| Grants for wpuser@localhost                                                                                   |\n+---------------------------------------------------------------------------------------------------------------+\n| GRANT USAGE ON *.* TO 'wpuser'@'localhost' IDENTIFIED BY PASSWORD '*977FDAC11B3F74324912DA4F9D489A3E6D59B281' |\n| GRANT ALL PRIVILEGES ON `wpdb`.* TO 'wpuser'@'localhost'                                                      |\n+---------------------------------------------------------------------------------------------------------------+\n2 rows in set (0.00 sec)<\/pre>\n<p>5. Make wordpress folder writable, otherwise you will not able to create config.php during the installation :<\/p>\n<pre class=\"code\">[root@rhel6 ~]# chmod o+wx \/var\/www\/html\/wordpress\/<\/pre>\n<p>6. Run the installation script on your server. Go to the following address in your web browser :<\/p>\n<p><strong>http:\/\/serveripaddress\/wordpress<\/strong><\/p>\n<p>7. Click &#8220;<strong>Create Configuration File<\/strong>&#8221; :<br \/>\n<img decoding=\"async\" class=\"alignnone lazyload\" title=\"WordPress\" data-src=\"http:\/\/1.bp.blogspot.com\/-7MbIvKd9fUQ\/TzeVzWg2GzI\/AAAAAAAABtc\/AjAbx59tJxw\/s1600\/1.PNG\" alt=\"WordPress\" width=\"621\" height=\"215\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 621px; --smush-placeholder-aspect-ratio: 621\/215;\" \/><br \/>\n8. Click &#8220;<strong>Let&#8217;s Go!<\/strong>&#8221; :<br \/>\n<img decoding=\"async\" class=\"alignnone lazyload\" title=\"Wordpress\" data-src=\"http:\/\/1.bp.blogspot.com\/-BT1CwPM5sMI\/TzeVzmO1EHI\/AAAAAAAABtk\/iD_f_uCxRVQ\/s1600\/2.PNG\" alt=\"Wordpress\" width=\"614\" height=\"412\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 614px; --smush-placeholder-aspect-ratio: 614\/412;\" \/><br \/>\n9. Enter &#8220;<strong>Database Name<\/strong>&#8220;, &#8220;<strong>User Name<\/strong>&#8221; and &#8220;<strong>Password<\/strong>&#8220;. Click &#8220;<strong>Submit<\/strong>&#8221; to proceed :<br \/>\n<img decoding=\"async\" class=\"alignnone lazyload\" title=\"Wordpress\" data-src=\"http:\/\/3.bp.blogspot.com\/-ObCBvBKaMGk\/TzeVzqHrOVI\/AAAAAAAABtw\/VH5cTD3FR_g\/s1600\/3.PNG\" alt=\"Wordpress\" width=\"581\" height=\"412\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 581px; --smush-placeholder-aspect-ratio: 581\/412;\" \/><br \/>\n10. Click &#8220;<strong>Run the Install<\/strong>&#8221; to proceed :<br \/>\n<img decoding=\"async\" class=\"alignnone lazyload\" title=\"Wordpress\" data-src=\"http:\/\/1.bp.blogspot.com\/-bQa1lVmWLP8\/TzeVz3BckxI\/AAAAAAAABuA\/w_L4NgEItso\/s1600\/4.PNG\" alt=\"Wordpress\" width=\"566\" height=\"163\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 566px; --smush-placeholder-aspect-ratio: 566\/163;\" \/><br \/>\n11. Provide the blog information. You can change it later :<br \/>\n<img decoding=\"async\" class=\"alignnone lazyload\" title=\"Wordpress\" data-src=\"http:\/\/4.bp.blogspot.com\/-0Sj717lveSA\/TzeV0V6V69I\/AAAAAAAABuM\/Aq9UhEZCTBQ\/s1600\/5.PNG\" alt=\"Wordpress\" width=\"565\" height=\"422\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 565px; --smush-placeholder-aspect-ratio: 565\/422;\" \/><br \/>\n12. WordPress has been successfully installed on your RHEL 6 server :<br \/>\n<img decoding=\"async\" class=\"alignnone lazyload\" title=\"Wordpress\" data-src=\"http:\/\/1.bp.blogspot.com\/-9iLhw5EzgKE\/TzeWXUnqBdI\/AAAAAAAABuY\/Pc6BXhzAvJs\/s1600\/6.PNG\" alt=\"Wordpress\" width=\"614\" height=\"335\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 614px; --smush-placeholder-aspect-ratio: 614\/335;\" \/><\/p>\n<p>13. For security reason, remove the writable access to wordpress root folder :<\/p>\n<pre class=\"code\">[root@rhel6 ~]# chmod o-wx \/var\/www\/html\/wordpress\/<\/pre>\n<p>14. Assigned the secure permission for wordpress root folder. 755 means read and execute access for everyone and also write access for the owner of the file.<\/p>\n<pre class=\"code\">[root@rhel6 ~]# chmod 755 \/var\/www\/html\/wordpress\/<\/pre>\n<p>15. As a blog administrator, you can login to the wordpress dashboard using this URL:<br \/>\n<strong>http:\/\/serveripaddress\/wordpress\/wp-login.php<\/strong><\/p>\n<p>Normal usercan access the blog using the following URL :<br \/>\n<strong>http:\/\/serveripaddress\/wordpress\/<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article will explain the steps on\u00a0how to install WordPress blog on Linux CentOS 6,\u00a0Redhat Enterprise Linux 6 (RHEL 6) and Oracle Linux 6. WordPress is an open-source blogging platform&#8230;.<\/p>\n","protected":false},"author":6,"featured_media":6188,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2056],"tags":[1933],"class_list":["post-1945","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cms","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1945","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=1945"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1945\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/6188"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=1945"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=1945"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=1945"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}