{"id":1147,"date":"2015-08-28T16:41:07","date_gmt":"2015-08-28T16:41:07","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=1147"},"modified":"2015-08-28T16:44:16","modified_gmt":"2015-08-28T16:44:16","slug":"how-to-install-wordpress-via-ssh","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/how-to-install-wordpress-via-ssh\/","title":{"rendered":"How to install WordPress via ssh"},"content":{"rendered":"<p>Quick look at the commands.\u00a0 Skip below to view the explanation of the commands<\/p>\n<pre>ssh steve@incredigeek.com\r\ncd ~\/\r\nwget https:\/\/wordpress.org\/latest.tar.gz\r\ntar zxvf latest.tar.gz\r\nvi wordpress\/wp-config.php   &lt;-- Edit MySQL settings\r\nmv -R wordpress\/ \/var\/www\/html\/\r\nexit\r\nsteve@localhost ~: chrome incredigeek.com\/<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>SSH into your webserver<\/strong><\/p>\n<pre>ssh bob@yourserver.com\r\n<\/pre>\n<p><strong>Download the latest version of WordPress<\/strong><\/p>\n<pre>cd ~\/ &amp;&amp; wget https:\/\/wordpress.org\/latest.tar.gz<\/pre>\n<p><strong>Extract the WordPress archive<\/strong><\/p>\n<pre>tar zxvf latest.tar.gz<\/pre>\n<p><strong>Create MySQL database and user<\/strong><\/p>\n<p>Refer to <a href=\"http:\/\/www.incredigeek.com\/home\/some-basic-mysql-commands\/\">here <\/a>if you want to do it from the command line.\u00a0 The recommended way is through your web control panel i.e. cPanel, Plesk, EHCP etc.<\/p>\n<p><strong>Edit wp-config.php<\/strong><\/p>\n<p>Enter in the DB information.<\/p>\n<pre>vi wordpress\/wp-config.php<\/pre>\n<p><strong>Move WordPress files to web directory<\/strong><\/p>\n<pre>mv -R wordpress\/* \/path\/to\/webdir<\/pre>\n<p>If you want to install WordPress inside a sub directory on your website i.e. instead of going to &#8220;example.com&#8221; to access your WordPress site, you go to &#8220;example.com\/wordpress&#8221;, then create a sub directory in your root web directory and move the WordPress files there.<\/p>\n<p>Open up a browser and go to your website (example.com) to finish the WordPress installation.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quick look at the commands.\u00a0 Skip below to view the explanation of the commands ssh steve@incredigeek.com cd ~\/ wget https:\/\/wordpress.org\/latest.tar.gz tar zxvf latest.tar.gz vi wordpress\/wp-config.php &lt;&#8211; Edit MySQL settings mv -R wordpress\/ \/var\/www\/html\/ exit steve@localhost ~: chrome incredigeek.com\/ &nbsp; SSH &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/how-to-install-wordpress-via-ssh\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3,44,72],"tags":[8,7,221,74,262],"class_list":["post-1147","post","type-post","status-publish","format-standard","hentry","category-command-line","category-linux","category-web","category-wordpress","tag-command-line-2","tag-linux-2","tag-ssh","tag-wordpress-2","tag-wp"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=1147"}],"version-history":[{"count":9,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1147\/revisions"}],"predecessor-version":[{"id":1157,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1147\/revisions\/1157"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=1147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=1147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=1147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}