Article.Pk - Write, Earn, and Be Heard

A Guide to Setting Up a Python Application on Shared Hosting

Setting up a Python application on shared hosting involves specific steps like configuring virtual environments, ensuring compatibility, and deploying the application using tools like SSH and FTP. This guide offers...

A Guide to Setting Up a Python Application on Shared Hosting

Python Selector plugin.

NOTE:

Python Selector icon in the end-user interface is hidden when python is disabled.

Close-up of tower servers in a data center with blue and red lighting.

 

End User interface allows end users to set up and manage Python for their web applications.

Login to your hosting control panel and then find the setup python application if you couldn't find it contact your hosting provider.

Web Applications page is displayed.

A sleek and modern desk setup featuring a monitor, laptop, and ambient lighting, perfect for productivity.

There are several columns in the list:

 

  • App URI — application URI including the domain.
  • App Root Directory — application root directory relative to the user's home.
  • Status — started/stopped — displays if an application is running or not and the version of the application.
  • Actions — allows to migrate, start, restart, stop, edit, and remove a particular application.

How to manage an application

Create application

  1. Click Create Application to create an application. The Create Application tab opens.

Close-up black and white photo showing hands typing on a laptop, emphasizing modern technology.

  1. Specify the following:
  • Python version — select from the dropdown (required);
  • Application root — physical address to your application on a server that corresponds with its URI (required);
  • Application URL — HTTP/HTTPS link to your application (optional);
  • Application startup file — the file where WSGI callable object is located. It is required for the application to run. Default is passenger_wsgi.py;
  • Application Entry point — WSGI callable object for your application (optional). Default is application;

Optionally, add an environment variable. To do so, click Add Variable and specify the variable name and value, then click the Done or Cancel to close an adding form.

To delete or edit an environment variable, click Bin or Pencil for the required variable.

Close-up view of Ethernet ports with cables and illuminated LED indicator. Modern data connection setup.

Start application

To start a stopped application do the following:

  • Click Start in the Actions column in a stopped application row.
  • When an action is completed a Start changes to Stop.

Stop application

To stop a started application do the following:

  • Click Stop icon in the Actions column in a started application row.
  • When an action is completed a Stop changes to Start.

Detailed view of a power button on a sleek laptop, emphasizing technology design.

Restart application

To restart a started application do the following:

  • Click Restart in the Actions column in a started application row. A current row is blocked and when a process is completed it will be unblocked.

Remove application

To remove application do the following:

  • Click Bin in the Actions column in a particular application row.
  • In the confirmation popup click Agree to start removing or Cancel to close the popup.
  • When an action is completed an application will be removed from the Web Applications table and a confirmation popup will be displayed.

Edit application

To edit the application do the following:

  • Click the Pencil in the Actions column in a particular application row. A particular application tab opens.

 

The following actions are available:

  • Restart the application — click Restart.
  • Stop application — click Stop App.
  • Remove the application — click Destroy and confirm the action in a popup.
  • Change Python version — choose the Python version from a dropdown.
  • Change Application root — specify in a field a physical address to the application on a server that corresponds with its URI.
  • Change Application URL — specify in a field an HTTP/HTTPS link to the application.
  • Open Application URL — click the Open.
  • Change Application startup file — specify as NAME.py file.
  • Change Application Entry point — specify WSGI callable object for your application.
  • Passenger log file — starting from CloudLinux Manager 5.1.0-2 you can set paths to Passenger logs for Python applications via UI (or using cloudlinux-selector utility).
  • Run pip install command — click Run pip install to install the package(s) described in the configuration file.
  • Add Configuration files — click Add and specify all required information.
  • Edit available configuration file — click Edit, the file opens in a new popup.
  • Remove the available configuration file from the list — click Remove and confirm the action or click Cancel to close the popup.
  • Add Environment variables — click Add Variable and specify a name and a value.

Click Save to save all changes or Cancel to close the tab.

 

AR
Written by
@abdulrehman · 35 articles · Joined Aug 2022

Hi! This is Abdul Rehman. I am a 22-year-old content writer. I am a very passionate and responsible writer. I like to write on biological terms mostly. I also write content on various websites, such as http://www.mtlogis...

Comments 0

Sign in to join the conversation.

No comments yet. Be the first to say something.

Keep reading

2 Best Apps For Watching Korean DramasEntertainment31.1kviews4paid views

2 Best Apps For Watching Korean Dramas

Creating an account on HiTv and Hulu for Korean dramas is a simple and straightforward process. By following the steps outlined in this article, you'll be able to create an...

HTHajra Tareen
  • 31.1kviews
  • 4paid views
  • 9 May 2023published
How To Create  And Use A Paytm AccountTech34.5kviews11paid views

How To Create And Use A Paytm Account

Paytm is a popular Indian digital payments and e-commerce platform that offers a range of services such as mobile recharges, bill payments, movie tickets, flight bookings, and more. If you're...

HTHajra Tareen
  • 34.5kviews
  • 11paid views
  • 9 May 2023published
Latest Mehndi Design Trends for Weddings and FestivalsTech12.1kviews

Latest Mehndi Design Trends for Weddings and Festivals

Mehndi design is a beautiful tradition in South Asia. Discover popular bridal, simple, and modern mehndi designs used in weddings and festive celebrations.

UUUsman Ullah
  • 12.1kviews
  • 19 Mar 2026published
How To Use Jazz Cash And The Easy Paisa AppTech17kviews12paid views

How To Use Jazz Cash And The Easy Paisa App

In Pakistan, JazzCash and EasyPaisa are two of the most popular mobile payment solutions. These apps provide users with a wide range of services, including bill payments, money transfers, mobile...

HTHajra Tareen
  • 17kviews
  • 12paid views
  • 9 May 2023published
Laptop Price in Pakistan 2026: Complete Buying Guide for Every BudgetTech6kviews23paid views

Laptop Price in Pakistan 2026: Complete Buying Guide for Every Budget

Complete guide to laptop prices in Pakistan covering budget, mid-range, high-performance, and premium laptops from HP, Lenovo, Dell, ASUS, and Apple MacBook. Includes prices by brand, best laptops for students...

ZMZeeshan Mudassir Hussain
  • 6kviews
  • 23paid views
  • 5comments
  • 13 minminute read
  • 23 Feb 2026published
Writing Articles and Earning Money in Pakistan: A Lucrative Opportunity on Article.pkEntrepreneurship & Startups7kviews50paid views

Writing Articles and Earning Money in Pakistan: A Lucrative Opportunity on Article.pk

Writing articles and earning money in Pakistan is a lucrative opportunity available on Article.pk. Explore the platform's features, learn essential tips for success, and discover effective strategies to optimize your...

ZMZeeshan Mudassir Hussain
  • 7kviews
  • 50paid views
  • 5 Sept 2021published