{"id":3004,"date":"2020-04-10T12:42:33","date_gmt":"2020-04-10T12:42:33","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=ht_kb&#038;p=3004"},"modified":"2024-04-03T08:36:08","modified_gmt":"2024-04-03T08:36:08","slug":"how-to-setup-python-application-in-cpanel","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/how-to-setup-python-application-in-cpanel\/","title":{"rendered":"How to Setup Python Application in cPanel"},"content":{"rendered":"<p>In this tutorial, you will learn to quickly set up Python application with the cPanel graphical interface or from the command line.<\/p>\n<p>ChemiCloud\u2019s infrastructure supports Python out of the box. Try our <a href=\"https:\/\/chemicloud.com\/python-hosting\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Python Hosting<\/strong><\/a> plans if you\u2019d like to experience top speed and reliability and have access to our easy Python installer.<\/p>\n<p>We support the following python versions: 2.7.18, 3.3.7, 3.4.9, 3.5.9, 3.6.15, 3.7.12, 3.8.12, 3.9.12, 3.10.9 and 3.11.1<\/p>\n    \t\t<div class=\"hts-messages hts-messages--alert   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tPlease note that Python Application in cPanel is available for customers using any of our <a href=\"https:\/\/chemicloud.com\/web-hosting#60b65e4e63b58\" target=\"_blank\" rel=\"noopener\">Shared Hosting<\/a> or <a href=\"https:\/\/chemicloud.com\/reseller-hosting#60b65e4e63b58\" target=\"_blank\" rel=\"noopener\">Reseller Hosting<\/a> plans. If you are a <a href=\"https:\/\/chemicloud.com\/vps-hosting\" target=\"_blank\" rel=\"noopener\">Managed VPS Hosting<\/a> customer, you&#8217;ll require a CloudLinux License &#8211;\u00a0 Please get in touch with our Support team for pricing.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<h2 id=\"how-to-set-up-python-application-in-cpanel\">How to Set up Python Application in cPanel<\/h2>\n<p><strong>1)<\/strong> Log in to cPanel.<br \/>\n<strong>2)<\/strong> In the <strong>SOFTWARE<\/strong> section of cPanel, click on the <strong>Setup Python App<\/strong> icon<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-3005\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/04\/Setup-Python-300x93.png\" alt=\"Setup Python\" width=\"300\" height=\"93\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/04\/Setup-Python-300x93.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/04\/Setup-Python-50x15.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/04\/Setup-Python-60x19.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/04\/Setup-Python-100x31.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/04\/Setup-Python.png 388w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><br \/>\n<strong>3)<\/strong> On the Python selector page, click on the <strong>Create Application<\/strong> button to start the application setup.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2523\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/09\/Create-Application.png\" alt=\"\" width=\"276\" height=\"60\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/09\/Create-Application.png 276w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/09\/Create-Application-50x11.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/09\/Create-Application-60x13.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/09\/Create-Application-100x22.png 100w\" sizes=\"auto, (max-width: 276px) 100vw, 276px\" \/><\/p>\n<p><strong>4)<\/strong> Fill in the required fields on the application setup form.<\/p>\n<ul>\n<li>\n<div class=\"lvemanager-row-wrapper\">\n<div class=\"lvemanager-title-wrapper\">\n<div class=\"lvemanager-title ng-star-inserted\"><strong>Python version<\/strong>: Python version that your app will use to run and install dependencies.<\/div>\n<\/div>\n<\/div>\n<\/li>\n<li><strong>Application root<\/strong>: The directory path where all app files will reside.<\/li>\n<li><strong>Application URL<\/strong>: the URL to enter in the browser to visit the app.<\/li>\n<li>\n<div class=\"lvemanager-title-wrapper\">\n<div class=\"lvemanager-title ng-star-inserted\"><strong>Application startup file<\/strong>: The Path to wsgi.pg file. It must be specified as a filename.<\/div>\n<\/div>\n<\/li>\n<li><strong>Application Entry point<\/strong>: This can be left blank. cPanel will auto-populate this section unless your application needs a specific value, in which case you add it.<\/li>\n<li><strong>Environment Variables<\/strong>: Optionally you can add environment variables to your application.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-3007\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/04\/Create-Python-App-1024x443.png\" alt=\"Create Python App\" width=\"643\" height=\"278\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/04\/Create-Python-App-1024x443.png 1024w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/04\/Create-Python-App-300x130.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/04\/Create-Python-App-768x332.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/04\/Create-Python-App-50x22.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/04\/Create-Python-App-1536x664.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/04\/Create-Python-App-2048x886.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/04\/Create-Python-App-60x26.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2020\/04\/Create-Python-App-100x43.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<p><strong>5)<\/strong> After you are done, click \u201c<strong>CREATE<\/strong>\u201d to finish setting up the app.<\/p>\n<p>You have the command necessary to enter your virtual environment at the very start. This is useful when you need to manually execute some commands either via SSH or with the terminal menu in cPanel.<\/p>\n<p><strong>6)<\/strong> Click <strong>Run Pip Install<\/strong> to install your app dependencies<\/p>\n<p>You can additionally set up\u00a0<b>Environment variables<\/b>:<\/p>\n<p>Click\u00a0<b>Add Variable<\/b> and you will be able to set up the\u00a0<b>Name<\/b>\u00a0and\u00a0<b>Value<\/b>\u00a0of the variable in question. After you have entered the correct data, click\u00a0<b>Done<\/b>\u00a0to create the variable.<\/p>\n<p><strong>7)<\/strong> When everything is done, Save and <strong>RESTART<\/strong> your app.<\/p>\n<p><strong>That\u2019s a wrap! Now you know how to set up a Python app using the cPanel.<\/strong><\/p>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you will learn to quickly set up Python application with the cPanel graphical interface or from the command line. ChemiCloud\u2019s infrastructure supports Python out of the box. Try our Python Hosting plans if you\u2019d like to experience top speed and reliability and have access to our easy&#8230;<\/p>\n","protected":false},"author":10,"featured_media":3010,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[213],"ht-kb-tag":[],"class_list":["post-3004","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-python"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/3004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=3004"}],"version-history":[{"count":14,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/3004\/revisions"}],"predecessor-version":[{"id":8179,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/3004\/revisions\/8179"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media\/3010"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=3004"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=3004"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=3004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}