{"id":158,"date":"2017-07-03T15:42:39","date_gmt":"2017-07-03T15:42:39","guid":{"rendered":"https:\/\/newdelhihosting.co.in\/blog\/?p=158"},"modified":"2017-07-05T09:27:57","modified_gmt":"2017-07-05T09:27:57","slug":"how-to-install-wordpress","status":"publish","type":"post","link":"https:\/\/www.newdelhihosting.co.in\/blog\/how-to-install-wordpress\/","title":{"rendered":"Steps to install WordPress"},"content":{"rendered":"<p style=\"text-align: left;\"><strong>WordPress:-<\/strong><br \/>\n<a href=\"https:\/\/wordpress.org\/\" target=\"_blank\" rel=\"noopener\">WordPress<\/a>\u00a0ia an online,open source website creation tool written in php.<\/p>\n<p><strong>WordPress Installation<\/strong><\/p>\n<p>Step1:Dowbload file with following command.<\/p>\n<pre>[root@vps]# wget http:\/\/wordpress.org\/latest.tar.gz<\/pre>\n<p><!--more--><\/p>\n<p>Step2:Extract file with following command<\/p>\n<pre>tar -xzvf latest.tar.gz<\/pre>\n<p>Step3:Connect to your mysql to create db installation<\/p>\n<pre>mysql -u root -p<\/pre>\n<p>If no password press enter<br \/>\nStep4:Create wordpress database with following command<\/p>\n<pre>CREATE DATABASE WORDPRESS<\/pre>\n<p><strong>NOTE<\/strong>:whatever you want instead of database name(wordpress)<\/p>\n<p>Step5:create User with following command<\/p>\n<pre>CREATE USER 'user@localhost' IDENTIFIED BY 'password';<\/pre>\n<p><strong>NOTE:<\/strong>whatever you want instead of user name(wordpressuser)<\/p>\n<p>Step6:Grant all privileges to your db user using<\/p>\n<pre>GRANT ALL PRIVILEGES ON wordpress. * To wordpressuser@localhost IDENTIFIED BY 'yourpassword';<\/pre>\n<p>Step7: Refresh mysql privileges<\/p>\n<pre>FLUSH PRIVILEGES;<\/pre>\n<p>Step8:<\/p>\n<pre>exit;<\/pre>\n<p>Step9:Rename wordpress sample config file using<\/p>\n<pre>mv ~\/wordpress\/wp-config-smple.php\r\n~\/wordpress\/wp.config.php<\/pre>\n<p>Step10:edit the wordpress configuration file using<\/p>\n<pre>nano ~\/wordpress\/wp-config.php<\/pre>\n<p>Now replace database name,user,password with the one you created earlier<\/p>\n<p>define(&#8216;DB_NAME&#8217;,&#8217;databasenamehere&#8217;);<br \/>\ndefine(&#8216;DB_USER&#8217;,&#8217;Usernamehere&#8217;);<br \/>\ndefine(&#8216;DB_PWD&#8217;,&#8217;pwdhere&#8217;);<\/p>\n<p><strong>Output will be<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-280 alignleft\" src=\"https:\/\/newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/06\/wp-output-300x124.png\" alt=\"\" width=\"300\" height=\"124\" srcset=\"https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/06\/wp-output-300x124.png 300w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/06\/wp-output-768x318.png 768w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/06\/wp-output-1024x424.png 1024w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/06\/wp-output-250x103.png 250w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/06\/wp-output.png 1295w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress:- WordPress\u00a0ia an online,open source website creation tool written in php. WordPress Installation Step1:Dowbload file with following command. [root@vps]# wget http:\/\/wordpress.org\/latest.tar.gz<\/p>\n","protected":false},"author":1,"featured_media":423,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[14],"tags":[],"class_list":["post-158","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps-2"],"jetpack_featured_media_url":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/07\/wp.jpg","_links":{"self":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts\/158"}],"collection":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/comments?post=158"}],"version-history":[{"count":11,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions"}],"predecessor-version":[{"id":472,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts\/158\/revisions\/472"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/media\/423"}],"wp:attachment":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/media?parent=158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/categories?post=158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/tags?post=158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}