{"id":38,"date":"2021-06-28T07:50:05","date_gmt":"2021-06-28T07:50:05","guid":{"rendered":"https:\/\/cloudlinuxhosting.in\/blog\/?p=38"},"modified":"2021-07-11T07:54:57","modified_gmt":"2021-07-11T07:54:57","slug":"list-of-commands-to-config-vps-through-ssh-putty","status":"publish","type":"post","link":"https:\/\/cloudlinuxhosting.in\/blog\/list-of-commands-to-config-vps-through-ssh-putty\/","title":{"rendered":"List of Commands to config VPS through SSH (PUTTY):-"},"content":{"rendered":"<p>step:1<\/p>\n<p>login into the Putty by using our login name and password in SSL Mode.<\/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<\/p>\n<p>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>1 yum install httpd php php-mysql&#8212;&#8212;&#8212;&#8212; installation of apache,php and php-mysql(application)<\/p>\n<p>2 service httpd start&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; that restart appache(httpd)<\/p>\n<p>3 yum install mysql-server&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- install mysql server<\/p>\n<p>4 service mysqld start&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;start mysql service<\/p>\n<p>yum install nano&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-instakk of nano(text editing file)<\/p>\n<p>5 nano \/etc\/httpd\/conf\/httpd.conf&#8212;&#8212;&#8212;&#8212;-open editing file to configure appache(httpd) according<\/p>\n<p>to our details ip,Doamin name,root&#8230;After editing the file save(ctl o) and exit(ctrl x)<\/p>\n<p>6 service httpd restart&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;than restart httpd(appache)<\/p>\n<p>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>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>9 service httpd restart&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;than restart httpd(appache)<\/p>\n<p>10 mysql_secure_installation&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-starting installation of mysql<\/p>\n<p>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>12 cd \/var\/www\/example.com\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;entering unto the particular diractory( example .com)<\/p>\n<p>13 mkdir domainname.in&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;make or create an new directory or folder(named =<\/p>\n<p>domainname.in)<\/p>\n<p>14 cd domainname.in&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;entering into an folder or directory<\/p>\n<p>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>public_html)<\/p>\n<p>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>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>18 cd \/var\/www\/domainname.in\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;entering into the particular path\/ root directory<\/p>\n<p>19 wget https:\/\/wordpress.org\/latest.zip&#8212;&#8212;-get or download the wordpress file in Zip<\/p>\n<p>20 unzip latest.zip &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;extract the above downloaded zip file wordpress<\/p>\n<p>21 wget http:\/\/wordpress.org\/latest.tar.gz&#8212;&#8211;get or download the wordpress file in Zip<\/p>\n<p>22 tar -xzvf latest.tar.gzm &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-extract the above downloaded zip file wordpress<\/p>\n<p>23 unzip latest.zip &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;extract the above downloaded zip file wordpress<\/p>\n<p>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>25 cp wp-config-sample.php wp-config.php&#8212;&#8212;-copy the content in wp-config-sample.php to the<\/p>\n<p>new file wp-config.php<\/p>\n<p>26 cp wp-config-sample.php wp-config.php<\/p>\n<p>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>28 rm domainname.in\/ -f &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-to remove the file<\/p>\n<p>29 rm domainname.in\/ -fr&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-to remove the folder<\/p>\n<p>30 cd var\/www\/domainname.in\/wp-config.php&#8212;&#8211;this cmd will<\/p>\n<p>31 cd wordpress mv -Rf * \/var\/www\/domainname.in\/&#8211; move the wordpress into the domainname.in<\/p>\n<p>32 mv * \/var\/www\/domainname.in -f<\/p>\n<p>33 cd ..<\/p>\n<p>34 ll<\/p>\n<p>35 pwd<\/p>\n<p>36 mv wp-config-sample.php wp-config.php<\/p>\n<p>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>38 service mysql start&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;start the mysql service start<\/p>\n<p>39 service httpd start&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;start the httpd service<\/p>\n<p>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>ip,Doamin name,root&#8230;After editing the file save(ctl o) and exit(ctrl x)<\/p>\n<p>41 service httpd restart&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;Restart the httpd service<\/p>\n<p>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>43 cd \/var\/www\/domainname.in\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;going into the particular our path or directory<\/p>\n<p>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>name, and user pasword<\/p>\n<p>45 cd wp-content&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;enter into folder named wp-content<\/p>\n<p>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>47 chmod 755 uploads\/ -rf&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;give permissions to the particular file uploads(755-<\/p>\n<p>read ,write and execute)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>step:1 login into the Putty by using our login name and password in SSL 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":57,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[5,4],"class_list":["post-38","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","tag-commands","tag-ssh"],"_links":{"self":[{"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":2,"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":42,"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/posts\/38\/revisions\/42"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/media\/57"}],"wp:attachment":[{"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudlinuxhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}