{"id":42,"date":"2019-11-22T05:16:04","date_gmt":"2019-11-22T05:16:04","guid":{"rendered":"http:\/\/tiruppurwebhosting.com\/blog\/?p=42"},"modified":"2019-11-28T12:02:53","modified_gmt":"2019-11-28T12:02:53","slug":"list-of-commands-to-config-vps-through-ssh-putty","status":"publish","type":"post","link":"https:\/\/tiruppurwebhosting.com\/blog\/list-of-commands-to-config-vps-through-ssh-putty\/","title":{"rendered":"List of Commands to config VPS through SSH (PUTTY):-"},"content":{"rendered":"<p>login into the Putty by using our login name and password in SSH Mode.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-88\" src=\"https:\/\/www.coimbatorewebhosting.com\/blog\/wp-content\/uploads\/2017\/06\/Capture1-293x300.jpg\" alt=\"\" width=\"293\" height=\"300\" \/><\/p>\n<p>By entering the Host name or IP address and suitable port &lt;&#8212; enter<\/p>\n<p>Put the configuration type in SSH than the Putty Command Window is Open<\/p>\n<p>by entering root as login\/user name and Password:&lt;&#8212;- right clik in mouse<\/p>\n<p>we enter in to the VPS root ~<\/p>\n<p>Now follow the commands below:<\/p>\n<p lang=\"zxx\">1 yum install httpd php php-mysql&#8212;&#8212;&#8212;&#8212; installation of apache,php and php-mysql(application)<\/p>\n<p lang=\"zxx\">2 service httpd start&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; that restart appache(httpd)<\/p>\n<p lang=\"zxx\">3 yum install mysql-server&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- install mysql server<\/p>\n<p lang=\"zxx\">4 service mysqld start&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;start mysql service<\/p>\n<p lang=\"zxx\">yum install nano&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-instakk of nano(text editing file)<\/p>\n<p lang=\"zxx\">5 nano \/etc\/httpd\/conf\/httpd.conf&#8212;&#8212;&#8212;&#8212;-open editing file to configure appache(httpd) according<\/p>\n<p lang=\"zxx\">to our details ip,Doamin name,root&#8230;After editing the file save(ctl o) and exit(ctrl x)<\/p>\n<p lang=\"zxx\">6 service httpd restart&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;than restart httpd(appache)<\/p>\n<p lang=\"zxx\">7 nano httpd.conf&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;creat a new httpd config file and to edit<\/p>\n<p lang=\"zxx\">8 touch httpd.conf&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-creat a new httpd config file and to edit<\/p>\n<p lang=\"zxx\">9 service httpd restart&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;than restart httpd(appache)<\/p>\n<p lang=\"zxx\">10 mysql_secure_installation&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-starting installation of mysql<\/p>\n<p lang=\"zxx\">11 mysql -u root -p&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-entering into the mysql-&gt; by username and password<\/p>\n<p lang=\"zxx\">12 cd \/var\/www\/example.com\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;entering unto the particular diractory( example .com)<\/p>\n<p lang=\"zxx\">13 mkdir domainname.in&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;make or create an new directory or folder(named =<\/p>\n<p lang=\"zxx\">domainname.in)<\/p>\n<p lang=\"zxx\">14 cd domainname.in&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;entering into an folder or directory<\/p>\n<p lang=\"zxx\">15 mkdir public_html&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;make or create an new directory or folder(named =<\/p>\n<p lang=\"zxx\">public_html)<\/p>\n<p lang=\"zxx\">16 ll &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;look all the files and folders present inthe directory<\/p>\n<p lang=\"zxx\">17 cd &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;get IN and OUT of the directory\/folder<\/p>\n<p lang=\"zxx\">18 cd \/var\/www\/domainname.in\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;entering into the particular path\/ root directory<\/p>\n<p lang=\"zxx\">19 wget https:\/\/wordpress.org\/latest.zip&#8212;&#8212;-get or download the wordpress file in Zip<\/p>\n<p lang=\"zxx\">20 unzip latest.zip &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;extract the above downloaded zip file wordpress<\/p>\n<p lang=\"zxx\">21 wget http:\/\/wordpress.org\/latest.tar.gz&#8212;&#8211;get or download the wordpress file in Zip<\/p>\n<p lang=\"zxx\">22 tar -xzvf latest.tar.gzm &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-extract the above downloaded zip file wordpress<\/p>\n<p lang=\"zxx\">23 unzip latest.zip &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;extract the above downloaded zip file wordpress<\/p>\n<p lang=\"zxx\">24 yum install unzip&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;if ZIP software is not installed we want to install<\/p>\n<p lang=\"zxx\">25 cp wp-config-sample.php wp-config.php&#8212;&#8212;-copy the content in wp-config-sample.php to the<\/p>\n<p lang=\"zxx\">new file wp-config.php<\/p>\n<p lang=\"zxx\">26 cp wp-config-sample.php wp-config.php<\/p>\n<p lang=\"zxx\">27 pwd &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;to know where the current path is and the root<\/p>\n<p lang=\"zxx\">28 rm domainname.in\/ -f &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-to remove the file<\/p>\n<p lang=\"zxx\">29 rm domainname.in\/ -fr&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-to remove the folder<\/p>\n<p lang=\"zxx\">30 cd var\/www\/domainname.in\/wp-config.php&#8212;&#8211;this cmd will<\/p>\n<p lang=\"zxx\">31 cd wordpress mv -Rf * \/var\/www\/domainname.in\/&#8211; move the wordpress into the domainname.in<\/p>\n<p lang=\"zxx\">32 mv * \/var\/www\/domainname.in -f<\/p>\n<p lang=\"zxx\">33 cd ..<\/p>\n<p lang=\"zxx\">34 ll<\/p>\n<p lang=\"zxx\">35 pwd<\/p>\n<p lang=\"zxx\">36 mv wp-config-sample.php wp-config.php<\/p>\n<p lang=\"zxx\">37 mysql -u root -p&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;entering into the mysql-&gt; by username and password<\/p>\n<p lang=\"zxx\">38 service mysql start&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;start the mysql service start<\/p>\n<p lang=\"zxx\">39 service httpd start&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;start the httpd service<\/p>\n<p lang=\"zxx\">40. nano \/etc\/httpd\/conf\/httpd.conf&#8212;&#8212;&#8212;&#8212;&#8211;to configure the appache (httpd) file acc to out details<\/p>\n<p lang=\"zxx\">ip,Doamin name,root&#8230;After editing the file save(ctl o) and exit(ctrl x)<\/p>\n<p lang=\"zxx\">41 service httpd restart&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;Restart the httpd service<\/p>\n<p lang=\"zxx\">42 mysql -u root -p&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;entering to the mysql by our password<\/p>\n<p lang=\"zxx\">43 cd \/var\/www\/domainname.in\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;going into the particular our path or directory<\/p>\n<p lang=\"zxx\">44 nano wp-config.php &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;config the wordpress file into our database name,use<\/p>\n<p lang=\"zxx\">name, and user pasword<\/p>\n<p lang=\"zxx\">45 cd wp-content&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;enter into folder named wp-content<\/p>\n<p lang=\"zxx\">46 mkdir uploads 2017 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;create an new folder or directory named uploads 2017<\/p>\n<p lang=\"zxx\">47 chmod 755 uploads\/ -rf&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;give permissions to the particular file uploads(755-<\/p>\n<p lang=\"zxx\">read ,write and execute)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>login into the Putty by using our login name and password in SSH Mode. By entering the Host name or IP address and suitable port &lt;&#8212; enter Put the configuration type in SSH than the Putty Command Window is Open by entering root as login\/user name and Password:&lt;&#8212;- right clik in mouse we enter in<\/p>\n","protected":false},"author":1,"featured_media":99,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,1],"tags":[],"class_list":["post-42","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-basics","category-home"],"_links":{"self":[{"href":"https:\/\/tiruppurwebhosting.com\/blog\/wp-json\/wp\/v2\/posts\/42","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tiruppurwebhosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tiruppurwebhosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tiruppurwebhosting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tiruppurwebhosting.com\/blog\/wp-json\/wp\/v2\/comments?post=42"}],"version-history":[{"count":0,"href":"https:\/\/tiruppurwebhosting.com\/blog\/wp-json\/wp\/v2\/posts\/42\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tiruppurwebhosting.com\/blog\/wp-json\/wp\/v2\/media\/99"}],"wp:attachment":[{"href":"https:\/\/tiruppurwebhosting.com\/blog\/wp-json\/wp\/v2\/media?parent=42"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tiruppurwebhosting.com\/blog\/wp-json\/wp\/v2\/categories?post=42"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tiruppurwebhosting.com\/blog\/wp-json\/wp\/v2\/tags?post=42"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}