Skip to content
Want to get Premium Web Hosting only at 45₹/Month Signup Now!

Setting Up a Python Application in CloudLinux cPanel

Setting up a Python application in a CloudLinux environment through cPanel is a straightforward process. This guide will walk you through the steps to create and configure your Python application using the user-friendly cPanel interface.

Step 1: Log in to cPanel

  • Start by logging into your cPanel account using your credentials.

Step 2: Access the Python Application Setup

  • In the SOFTWARE section of cPanel, click on the Setup Python App icon.

Step 3: Create a New Application

  • On the Python Selector page, click on the Create Application button to begin the setup process.

Step 4: Fill in the Application Setup Form

  • You will need to complete the following fields:
    • Python version: Select the version of Python your application will use.
    • Application root: Enter the directory path where your app files will reside.
    • Application URL: Specify the URL to access your application in a web browser.
    • Application startup file: Enter the path to the wsgi.py file, which is essential for running your app.
    • Application Entry Point: This can generally be left blank, as cPanel auto-populates this field unless your application has specific requirements.
    • Environment Variables: Optionally, you can add any environment variables your application might need.

Step 5: Create the Python App

  • After filling in all required fields, click the CREATE button to finalize the application setup.
  • You will receive the command to enter your virtual environment at the start. This is helpful if you need to run specific commands in the future.

Step 6: Install Application Dependencies

  • Use the Run Pip Install button to install any necessary dependencies for your application directly from the cPanel interface.

Step 7: Set Up Environment Variables (Optional)

  • If your application requires additional environment variables, click on Add Variable. Here, you can enter the Name and Value for each variable, and click Done to create them.

Step 8: Save and Restart the Application

  • Once everything is configured, be sure to click Save and then RESTART your application to apply the changes.

Conclusion

You have successfully set up a Python application in CloudLinux cPanel. The intuitive interface allows you to manage your application efficiently, ensuring that you can focus on development and deployment.

Was this article helpful?
YesNo
Back To Top