{"id":1256,"date":"2017-05-19T14:27:01","date_gmt":"2017-05-19T14:27:01","guid":{"rendered":"http:\/\/reseller-hosting-themes.com\/wordpress\/?p=1256"},"modified":"2017-05-19T14:27:01","modified_gmt":"2017-05-19T14:27:01","slug":"supervisor-background-processes-manager-hepsia-control-panel","status":"publish","type":"post","link":"https:\/\/reseller-hosting-themes.com\/wordpress\/supervisor-background-processes-manager-hepsia-control-panel\/","title":{"rendered":"Supervisor \u2013 background processes manager in Hepsia Control Panel"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" class=\"alignright size-medium wp-image-1288\" src=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/supervisor-in-the-control-panel-300x225.png\" alt=\"supervisor in the control panel\" width=\"300\" height=\"225\" srcset=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/supervisor-in-the-control-panel-300x225.png 300w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/supervisor-in-the-control-panel.png 640w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/> Although programming may seem like an overwhelming activity if you\u2019re a novice. Yet, nowadays some of its basic principles are easy to learn and apply when using our advanced web hosting platform.<\/p>\n<p>In order to help our web hosting account owners, we\u2019ve optimized all of the commonly performed website management tasks. For instance: choosing the PHP version for your site, setting up cron jobs, creating Memcached\/Varnish instances, filtering outgoing connections, etc. Customers can easily access all of them\u00a0from the Advanced section of the intuitive <a href=\"https:\/\/hepsia.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Hepsia\u00a0Control Panel<\/a>.<\/p>\n<p>Thanks to the new Supervisor functionality, now you can run scripts in the background.<\/p>\n<h2>What is the Supervisor all about?<\/h2>\n<p>When you use the new Supervisor functionality, you will be able to execute various long-running scripts or programs in the background of your website. The Supervisor feature is trully\u00a0a great new innovation, as all kinds of background-running scripts were prohibited on our platform from day one. The majority of the web hosting platforms on the market today still do not allow background scripts.<\/p>\n<p>The background running of scripts can sometimes make a web hosting platform prone to hacking. In brief, a bot script (used by a hacker) can be disguised like a standard background script, especially if it is a long-running one. Once a given website is compromised by hackers, it can be used for spreading large-scale DDoS attacks on the entire web hosting platform. That being said, there are many different cases where background scripts can be legally used by website owners and developers and can make the administration of a website significantly easier.<\/p>\n<p>In addition, there have been many user requests to us through the years to allow the usage of background programs and scripts. As a result, we\u2019ve developed and integrated the Supervisor functionality. You can use it to run background processes, every time you log in to your Control Panel. The Control Panel itself is a controlled environment, so the security of our web hosting platform including all of the user web hosting accounts will remain uncompromised.<\/p>\n<h3>Example:\u00a0starting a PHP\u00a0WebSocket server<\/h3>\n<p>The brand new Supervisor functionality can be invaluable when it comes to establishing real-time, two-way connections between web clients and servers over the TCP-based WebSocket Protocol.<\/p>\n<p>WebSocket is the name of a recently introduced HTML5 feature. It allows JavaScript clients clients to open bidirectional socket connections to a server without interruptions. This way, the interaction between web browsers and websites as well as the syndication of live web content are enhanced.<\/p>\n<p>Here is how a WebSocket URL looks like. As you can see, the name of the host and the port to which the connection is made are included:<\/p>\n<p><em>ws:\/\/host:port\/path (ex. ws:\/\/localhost:8000\/echo)<\/em><\/p>\n<p>You need to download the WebSocket server and activate it, ensuring that it is running in the background. Then, you can establish a WebSocket connection by sending a regular HTTP request using an Upgrade header that informs the server of the client\u2019s desire to set up such a connection.<\/p>\n<p>Here is an illustration of a WebSocket background process and a regular request-response client-server communication process (Ajax Polling):<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-1289\" src=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/websocket-scheme.png\" alt=\"\" width=\"600\" height=\"423\" srcset=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/websocket-scheme.png 900w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/websocket-scheme-300x211.png 300w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/websocket-scheme-768x541.png 768w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>The figure above shows that a bidirectional communication between a client and a server is possible when you use WebSocket. What\u2019s even better, you\u2019ll be able to get your server updates in real time. Therefore a lot of the web traffic resources needed for standard server polling will be spared.<\/p>\n<h2>How to use the Supervisor<\/h2>\n<p>In order to start using the useful Supervisor functionality and initiate a background process in your hosting account, you have to create an instance.<\/p>\n<p>To create an instance: go to the Supervisor section of the Control Panel. Then press the &#8220;Create an instance button&#8221;:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-1401\" src=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/create-supervisor-instance-1000x400.png\" alt=\"create supervisor instance\" width=\"600\" height=\"240\" srcset=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/create-supervisor-instance-1000x400.png 1000w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/create-supervisor-instance-300x120.png 300w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/create-supervisor-instance-768x307.png 768w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/create-supervisor-instance.png 1190w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>\u041ence your Supervisor instance is created successfully, a TCP port will be automatically assigned to the background application.<\/p>\n<h2>Where\u00a0to find Supervisor?<\/h2>\n<p>You will find the Supervisor functionality neatly located inside the Advanced section of the Web Hosting Control Panel. To access it, just click on its icon from the index page:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-1402\" src=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/supervisor-control-panel-icon.png\" alt=\"supervisor control panel icon\" width=\"600\" height=\"225\" srcset=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/supervisor-control-panel-icon.png 914w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/supervisor-control-panel-icon-300x112.png 300w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/supervisor-control-panel-icon-768x287.png 768w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>For your convenience, there\u2019s an alternative route as well. You can access the Supervisor section\u00a0from the Advanced drop-down menu:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-1403\" src=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/supervisor-hepsia-control-panel-menu.png\" alt=\"supervisor hepsia control panel menu\" width=\"600\" height=\"228\" srcset=\"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/supervisor-hepsia-control-panel-menu.png 900w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/supervisor-hepsia-control-panel-menu-300x114.png 300w, https:\/\/reseller-hosting-themes.com\/wordpress\/wp-content\/uploads\/2017\/03\/supervisor-hepsia-control-panel-menu-768x292.png 768w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Your customers can now run &#038; manage background processes in any hosting account thanks to the new Supervisor tool, integrated in the Hepsia Control Panel<\/p>\n","protected":false},"author":1,"featured_media":1288,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/posts\/1256"}],"collection":[{"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1256"}],"version-history":[{"count":9,"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/posts\/1256\/revisions"}],"predecessor-version":[{"id":1542,"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/posts\/1256\/revisions\/1542"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/media\/1288"}],"wp:attachment":[{"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reseller-hosting-themes.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}