In this tutorial we will show you how you can setup your Python app in cPanel hosting. Yes! You can host or setup a Python based app or script in your cPanel account. The process is bit different from setting up PHP based apps.
Setting up Python App in cPanel is much easier now. To start with the process, make sure you have the .py file ready uploaded in file manager with 755 permission. Also keep your cPanel login credentials ready.
Steps to setup Python App in cPanel
Step 1. Login to your cPanel account and search for ‘Python’ and locate “Setup Python App”.
Step 2. Click on Create Application button.
Step 3. Select the Python version which is compatible with your Python app.
Step 4. Now enter the basic details like the directory like root directory and Application URL. Don’t forget to enter the passenger log file path.
Step 5. Enter environment variables if you have a requirement for those.
Step 6. Click on create and done! Now open the Application URL and verify that everything is working or not.
This is the easiest way to create and deploy Python Apps on cPanel hosting. Open a support ticket if you are under Host It Bro network if you face any issues. Stay tuned for more easy tutorials.