{"id":120,"date":"2015-04-30T08:12:01","date_gmt":"2015-04-30T08:12:01","guid":{"rendered":"http:\/\/localhost\/blog\/?p=120"},"modified":"2015-04-30T08:12:29","modified_gmt":"2015-04-30T08:12:29","slug":"wordpress-on-lamp-server","status":"publish","type":"post","link":"http:\/\/www.mandcgroup.in\/blog\/wordpress-on-lamp-server\/","title":{"rendered":"WordPress on LAMP Server"},"content":{"rendered":"<p>Before Install WordPress. See Appache Server, Appache Server and PHP and Mysql Sever.<\/p>\n<p>[root@www ~]# service mysqld restart<br \/>\n[root@www ~]# service httpd restart<br \/>\n[root@www ~]# service vsftpd restart<br \/>\n[root@www ~]# service named restart<\/p>\n<p><!--more--><\/p>\n<p>[root@www ~]# chkconfig mysqld on<br \/>\n[root@www ~]# chkconfig httpd on<br \/>\n[root@www ~]# chkconfig vsftpd on<br \/>\n[root@www ~]# chkconfig named on<\/p>\n<p>[root@www ~]# cd \/var\/www\/html<br \/>\n[root@www html]# rm -rf *<br \/>\n[root@www html]# ls<\/p>\n<p>Downoad wordpress from here !<\/p>\n<p>[root@www Desktop]# ls<br \/>\nwordpress-3.4.1.tar.gz<br \/>\n(wordpress package present on Desktop)<\/p>\n<p>[root@www ~]# mv wordpress-3.4.1.tar.gz \/var\/www\/html\/<\/p>\n<p>[root@www ~]# cd \/var\/www\/html<br \/>\n[root@www html]# ls<br \/>\nwordpress-3.4.1.tar.gz<br \/>\n[root@www html]# tar -xvzf wordpress-3.4.1.tar.gz<br \/>\n[root@www html]# ls<br \/>\nwordpress wordpress-3.4.1.tar.gz<br \/>\n[root@www html]# rm -rf wordpress-3.4.1.tar.gz<br \/>\n[root@www html]# ls<\/p>\n<p>wordpress<\/p>\n<p>[root@www html]# cd wordpress\/<\/p>\n<p>[root@www wordpress]# ls -l<\/p>\n<p>total 164<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 395 Jan 8 2012 index.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 19929 May 6 2012 license.txt<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 9177 Jun 27 03:24 readme.html<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 4264 Dec 14 2011 wp-activate.php<br \/>\ndrwxr-xr-x. 9 33 tape 4096 Jun 28 01:15 wp-admin<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 1354 May 14 2012 wp-app.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 271 Jan 8 2012 wp-blog-header.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 3522 Apr 10 2012 wp-comments-post.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 3177 Nov 1 2010 wp-config-sample.php<br \/>\ndrwxr-xr-x. 4 33 tape 4096 Jun 28 01:15 wp-content<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 2726 Jan 10 2012 wp-cron.php<br \/>\ndrwxr-xr-x. 8 33 tape 4096 Jun 28 01:15 wp-includes<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 1997 Oct 23 2010 wp-links-opml.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 2341 Apr 22 2012 wp-load.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 29084 Jun 27 00:23 wp-login.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 7712 May 2 2012 wp-mail.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 9916 Apr 27 2012 wp-settings.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 18299 Apr 21 2012 wp-signup.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 3700 Jan 8 2012 wp-trackback.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 2788 Feb 17 2012 xmlrpc.php<br \/>\n[root@www wordpress]# mv * \/var\/www\/html<\/p>\n<p>(moving these above files to \/var\/www\/html\/)<br \/>\n[root@www wordpress]# cd \/var\/www\/html<\/p>\n<p>[root@www html]# rm -rf wordpress\/<\/p>\n<p>(because this directory is empty after moving files in html)<\/p>\n<p>[root@www html]# ls -l<\/p>\n<p>total 164<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 395 Jan 8 2012 index.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 19929 May 6 2012 license.txt<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 9177 Jun 27 03:24 readme.html<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 4264 Dec 14 2011 wp-activate.php<br \/>\ndrwxr-xr-x. 9 33 tape 4096 Jun 28 01:15 wp-admin<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 1354 May 14 2012 wp-app.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 271 Jan 8 2012 wp-blog-header.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 3522 Apr 10 2012 wp-comments-post.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 3177 Nov 1 2010 wp-config-sample.php<br \/>\ndrwxr-xr-x. 4 33 tape 4096 Jun 28 01:15 wp-content<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 2726 Jan 10 2012 wp-cron.php<br \/>\ndrwxr-xr-x. 8 33 tape 4096 Jun 28 01:15 wp-includes<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 1997 Oct 23 2010 wp-links-opml.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 2341 Apr 22 2012 wp-load.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 29084 Jun 27 00:23 wp-login.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 7712 May 2 2012 wp-mil.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 9916 Apr 27 2012 wp-settings.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 18299 Apr 21 2012 wp-signup.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 3700 Jan 8 2012 wp-trackback.php<br \/>\n-rw-r\u2013r\u2013. 1 33 tape 2788 Feb 17 2012 xmlrpc.php<\/p>\n<p>[root@www html]# cp wp-config-sample.php wp-config.php<br \/>\n[root@www html]# vim wp-config.php<br \/>\nfile before editing<\/p>\n<p><a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/wordpress1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-121\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/wordpress1.png\" alt=\"wordpress1\" width=\"300\" height=\"126\" \/><\/a><\/p>\n<p>and after editing<\/p>\n<p><a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/wordpress2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-122\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/wordpress2.png\" alt=\"wordpress2\" width=\"300\" height=\"127\" \/><\/a><\/p>\n<p><strong>[root@www html]#<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span>service httpd restart<br \/>\nStopping httpd:\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 OK\u00a0 ]<br \/>\nStarting httpd:\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 OK\u00a0 ]<br \/>\n<strong>[root@www html]#<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span>cd<br \/>\n<strong>[root@www ~]#<\/strong><span class=\"Apple-converted-space\">\u00a0<\/span>firefox<span class=\"Apple-converted-space\">\u00a0<\/span><a href=\"http:\/\/www.mc712.com\/\" rel=\"nofollow\">http:\/\/www.mc712.com<\/a><\/p>\n<p><a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-123\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/1.png\" alt=\"1\" width=\"460\" height=\"345\" srcset=\"http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/1.png 460w, http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/1-300x225.png 300w\" sizes=\"auto, (max-width: 460px) 100vw, 460px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-124\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/2.png\" alt=\"2\" width=\"462\" height=\"347\" srcset=\"http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/2.png 462w, http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/2-300x225.png 300w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-125\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/3.png\" alt=\"3\" width=\"462\" height=\"347\" srcset=\"http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/3.png 462w, http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/3-300x225.png 300w\" sizes=\"auto, (max-width: 462px) 100vw, 462px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-126\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/4.png\" alt=\"4\" width=\"465\" height=\"349\" srcset=\"http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/4.png 465w, http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/4-300x225.png 300w\" sizes=\"auto, (max-width: 465px) 100vw, 465px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-127\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/5.png\" alt=\"5\" width=\"466\" height=\"350\" srcset=\"http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/5.png 466w, http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/5-300x225.png 300w\" sizes=\"auto, (max-width: 466px) 100vw, 466px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-128\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/6.png\" alt=\"6\" width=\"464\" height=\"348\" srcset=\"http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/6.png 464w, http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/6-300x225.png 300w\" sizes=\"auto, (max-width: 464px) 100vw, 464px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-129\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/04\/7.png\" alt=\"7\" width=\"463\" height=\"347\" srcset=\"http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/7.png 463w, http:\/\/www.mandcgroup.in\/blog\/wp-content\/uploads\/2015\/04\/7-300x225.png 300w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Before Install WordPress. See Appache Server, Appache Server and PHP and Mysql Sever. [root@www ~]# service mysqld restart [root@www ~]# service httpd restart [root@www ~]# service vsftpd restart [root@www ~]# service named restart<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-120","post","type-post","status-publish","format-standard","hentry","category-redhat-linux-operating-system"],"_links":{"self":[{"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":1,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":130,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/posts\/120\/revisions\/130"}],"wp:attachment":[{"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mandcgroup.in\/blog\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}