{"id":156,"date":"2017-07-20T15:41:08","date_gmt":"2017-07-20T15:41:08","guid":{"rendered":"https:\/\/newdelhihosting.co.in\/blog\/?p=156"},"modified":"2017-07-21T07:48:17","modified_gmt":"2017-07-21T07:48:17","slug":"how-to-host-on-vps-without-control-panel","status":"publish","type":"post","link":"https:\/\/www.newdelhihosting.co.in\/blog\/how-to-host-on-vps-without-control-panel\/","title":{"rendered":"How to host domain on VPS without Control Panel"},"content":{"rendered":"<p style=\"text-align: left;\">Once you got the server or Vps,Login to the server through SSH using the tool called putty.Once you have logged in type in the bellow command.For CENTOS:Installing Apache with Mysql support<\/p>\n<pre>#yum install httpd php php-mysql<\/pre>\n<p>Set the Apache Service to start automatically when you restart<\/p>\n<pre>#chkconfig httpd on\r\n#service httpd start<\/pre>\n<p>Set the mysql service to start automatically when you restart<\/p>\n<pre>#chkconfig mysqld on\r\n#service mysqld start<\/pre>\n<p><strong>Configuration<\/strong><br \/>\n<!--more--><\/p>\n<p style=\"text-align: left;\">If you want to load any other scripts through the ip address,just upload the file to var\/www\/html.If you want to host a website and load through a website or domain name.follow the bellow steps just edit the httpd.conf file using nano text editor.<\/p>\n<pre>#nano \/etc\/httpd\/conf\/httpd.conf<\/pre>\n<ul>\n<li style=\"text-align: left;\">\u00a0 \u00a0 \u00a0 \u00a0Go to very bottom of the configuration file and add this below lines and replace domain name instead of &#8220;www.domainname.com&#8221;<\/li>\n<\/ul>\n<pre>\u00a0NamevirtualHost *:80\r\n&lt;VirtualHost *:80&gt;\r\nServerName domain.com\r\nServerAlias *.domain.com www.domain.com\r\nErrorLog \/var\/log\/htpd\/error_log\r\nCustomLog \/var\/www\/domain.com\r\nDocumentRoot \/var\/www\/domain.com\r\n&lt;Directory \/var\/www\/domain.com&gt;\r\nordr allow,deny\r\nallow from all\r\n&lt;Directory&gt;\r\n&lt;\/VirtualHost&gt;<\/pre>\n<ul>\n<li>Save File<\/li>\n<li>Restart the apache server by <strong>&#8220;service httpd restart&#8221;<\/strong><\/li>\n<li>Test for run<\/li>\n<\/ul>\n<pre>http:\/\/domain.com<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-210 aligncenter\" src=\"https:\/\/newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/06\/apache-300x147.png\" alt=\"\" width=\"506\" height=\"248\" srcset=\"https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/06\/apache-300x147.png 300w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/06\/apache-768x377.png 768w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/06\/apache-1024x502.png 1024w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/06\/apache-250x123.png 250w, https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/06\/apache.png 1556w\" sizes=\"(max-width: 506px) 100vw, 506px\" \/><br \/>\nApache setup is complete<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Once you got the server or Vps,Login to the server through SSH using the tool called putty.Once you have logged in type in the bellow command.For CENTOS:Installing Apache with Mysql support #yum install httpd php php-mysql Set the Apache Service to start automatically when you restart #chkconfig httpd on #service httpd start Set the mysql&#8230;<\/p>\n","protected":false},"author":1,"featured_media":430,"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":[12],"tags":[],"class_list":["post-156","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps"],"jetpack_featured_media_url":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-content\/uploads\/2017\/06\/vps-host.jpg","_links":{"self":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts\/156"}],"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=156"}],"version-history":[{"count":14,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"predecessor-version":[{"id":848,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/posts\/156\/revisions\/848"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/media\/430"}],"wp:attachment":[{"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.newdelhihosting.co.in\/blog\/wp-json\/wp\/v2\/tags?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}