{"id":1172,"date":"2009-10-24T18:04:19","date_gmt":"2009-10-24T10:04:19","guid":{"rendered":"http:\/\/akuadi.org\/life\/?p=1172"},"modified":"2009-10-24T18:05:31","modified_gmt":"2009-10-24T10:05:31","slug":"install-wordpress-on-linux-machine","status":"publish","type":"post","link":"https:\/\/akuadi.org\/life\/blog\/2009\/10\/24\/install-wordpress-on-linux-machine\/","title":{"rendered":"Install WordPress  on Linux Machine"},"content":{"rendered":"<p align=\"justify\">\n<p align=\"justify\">This is the perfect tutorial, how to install wordpress on Linux Server. For this tutorial, my machine running on Centos 5.4.<\/p>\n<div>\n<blockquote><p>[root@server1 ~]# uname -a;date;uptime<br \/>\nLinux server1 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 athlon i386 GNU\/Linux<br \/>\nSat Oct 24 17:52:06 MYT 2009<br \/>\n17:52:06 up\u00a0 2:17,\u00a0 2 users,\u00a0 load average: 0.00, 0.00, 0.03<br \/>\n[root@server1 ~]# cat \/etc\/redhat-release<br \/>\nCentOS release 5.4 (Final)<br \/>\n[root@server1 ~]#<\/p><\/blockquote>\n<\/div>\n<p align=\"justify\">Firstly make sure your system already have this 3 package if not follow the 1st step,<\/p>\n<p align=\"justify\">1. Install http*, mysql* php*<\/p>\n<div>\n<blockquote><p>[root@server1 ~]# yum -y install httpd* mysql* php*<\/p><\/blockquote>\n<\/div>\n<p align=\"justify\">2. Create the new database called \u201cwordpress\u201d<\/p>\n<div>\n<blockquote><p>[root@server1 ~]# mysqladmin -u root -p create wordpress<\/p><\/blockquote>\n<\/div>\n<p align=\"justify\">3. Download latest WordPress package<\/p>\n<div>\n<blockquote><p>[root@server1 tmp]# wget <a href=\"http:\/\/wordpress.org\/latest.zip\" target=\"_blank\" rel=\"noopener\">http:\/\/wordpress.org\/latest.zip<\/a><br \/>\n&#8211;2009-10-24 17:27:23&#8211;\u00a0 <a href=\"http:\/\/wordpress.org\/latest.zip\" target=\"_blank\" rel=\"noopener\">http:\/\/wordpress.org\/latest.zip<\/a><br \/>\nResolving wordpress.org&#8230; 72.233.56.138, 72.233.56.139<br \/>\nConnecting to wordpress.org|72.233.56.138|:80&#8230; connected.<br \/>\nHTTP request sent, awaiting response&#8230; 200 OK<br \/>\nLength: unspecified [application\/zip]<br \/>\nSaving to: `latest.zip&#8217;<\/p>\n<p>[\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;=&gt;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ] 2,354,670\u00a0\u00a0\u00a0 136K\/s\u00a0\u00a0 in 18s 2009-10-24 17:27:42 (129 KB\/s) &#8211; `latest.zip&#8217; saved [2354670]<\/p><\/blockquote>\n<\/div>\n<p align=\"justify\">4. Unzip latest.zip that contains the WordPress installation file.<\/p>\n<div>\n<blockquote><p>[root@server1 tmp]# unzip latest.zip<\/p><\/blockquote>\n<\/div>\n<div>\n<blockquote><p>[root@server1tmp]# ls<br \/>\nlatest.zip\u00a0 wordpress<br \/>\n[root@server1 tmp]# cd wordpress<\/p><\/blockquote>\n<\/div>\n<p align=\"justify\">5. Copy all file in the WordPress folder to directory \/var\/www\/html<\/p>\n<div>\n<blockquote><p>[root@server1 wordpress]# cp -a * \/var\/www\/html<\/p><\/blockquote>\n<\/div>\n<p align=\"justify\">6. Rename file wp-config-sample.php to wp-config.php<\/p>\n<div>\n<blockquote><p>[root@server1 wordpress]# cd \/var\/www\/html<br \/>\n[root@server1 html]# mv wp-config-sample.php wp-config.php<\/p><\/blockquote>\n<\/div>\n<p align=\"justify\">7. Edit the config file : wp-config.php<\/p>\n<div>\n<blockquote><p>[root@server1 html]# vi wp-config.php<\/p><\/blockquote>\n<\/div>\n<p align=\"justify\">\n<p align=\"justify\">* Edit this 3 line to<\/p>\n<div>\n<blockquote>\n<p>define(&#8216;DB_NAME&#8217;, &#8216;wordpress&#8217;);<br \/>\ndefine(&#8216;DB_USER&#8217;, &#8216;root&#8217;);<br \/>\ndefine(&#8216;DB_PASSWORD&#8217;, &#8216;mysqlrootpass&#8217;);<\/p><\/blockquote>\n<\/div>\n<p align=\"justify\">and replace to this one<\/p>\n<div>\n<blockquote><p>\/\/ ** MySQL settings &#8211; You can get this info from your web host ** \/\/<\/p>\n<p>\/** The name of the database for WordPress *\/<br \/>\ndefine(&#8216;DB_NAME&#8217;, &#8216;wordpress&#8217;);<\/p>\n<p>\/** MySQL database username *\/<br \/>\ndefine(&#8216;DB_USER&#8217;, &#8216;root&#8217;);<\/p>\n<p>\/** MySQL database password *\/<br \/>\ndefine(&#8216;DB_PASSWORD&#8217;, &#8216;**********&#8217;);<\/p><\/blockquote>\n<\/div>\n<p align=\"justify\">7. Open your web browser and go to <a href=\"http:\/\/yourdomain.com\" target=\"_blank\" rel=\"noopener\">http:\/\/yourdomain.com<\/a> and follow the setup process. Just enter your blog name and email address. After that it will generate user name and password for you. Please change the password after that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the perfect tutorial, how to install wordpress on Linux Server. For this tutorial, my machine running on Centos 5.4. [root@server1 ~]# uname -a;date;uptime Linux server1 2.6.18-164.el5 #1 SMP Thu Sep 3 03:33:56 EDT 2009 i686 athlon i386 GNU\/Linux Sat Oct 24 17:52:06 MYT 2009 17:52:06 up\u00a0 2:17,\u00a0 2 users,\u00a0 load average: 0.00, 0.00, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,12,81],"tags":[],"class_list":["post-1172","post","type-post","status-publish","format-standard","hentry","category-blogger","category-linux","category-wordpress"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/posts\/1172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/comments?post=1172"}],"version-history":[{"count":0,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/posts\/1172\/revisions"}],"wp:attachment":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/media?parent=1172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/categories?post=1172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/tags?post=1172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}