- Your cart is currently empty.
Creating Your First Python App in cPanel
Did you know that Python is the third most popular programming language in the world? It’s an open-source system that allows you to develop applications and build websites. Find out how to make your first Python app in the cPanel control panel below.
Python application in cPanel
To build a Python application, you need a suitable web hosting. We offer the latter at NEOSERV, as Python is supported on the Green, Blue and Red packages, as well as on all Reseller and TURBO hosting packages.
After activating your hosting package, you can create your first Python application in the cPanel control panel in just six steps.
- Log in to the cPanel Control Panel and click on the Setup Python App icon under Software.
- In the newly opened window, select the Python version.
- In the Application root window, enter the name of the folder where the Python application will be created.
- In the Application URL window , select the domain where the Python application will be available.
- In the Passenger log file window, specify the path to save the error log.
- Click on the Create button.
You have successfully created your Python application.
Python application settings
In the cPanel, you can edit various settings for your Python application. Click on the Edit the application icon next to the desired application. 
- Change the Python version.
- Application root – change the name of the folder where the application is located.
- Application URL – change the URL where the application is located.
- Application startup file – change the name of the startup file.
- Application Entry point – change/set the application function.
- Passenger log file* – change the path for storing the error log.
- To save the changes made, click on the Restart button.
* If you have a hosting package on a Litespeed server, then you can set up the Passenger log file directly by entering the command below in the .htaccess file (,located in the folder where the Application URL points):
PassengerAppLogFile "/home/vasadomesh13/hello/logs/passenger.log"
IMPORTANT: The root directory of the application in this example is “hello”; if you want to put the log in a subfolder (e.g. “logs”), you need to create this folder first.
Access to Python files
Python files are easily accessed via the control panel.
- Log in to the cPanel control panel.
- Under Files, click on File Manager.
- Open the folder where you made your application. In our case, this is the hello folder.
- Open the file passenger_wsgi.py.
- You can now write your first Python command, for example “My first Python application”.
- Save your changes by clicking the Save changes button .
- In the cPanel, under Software, click on the Setup Python App icon.
- For the application you have changed, click on the Restart the application button.
Congratulations, you have successfully made your first Python application. Open a web browser and enter the URL you specified when setting up your application.
At NEOSERV, we offer Python hosting that you can order in a few simple steps. Python hosting at NEOSERV also supports the installation of the extremely popular Django framework and systems such as SSH, GIT, PIP, MySQL/MariaDB and PostgreSQL.
After activating the package, follow the steps in this post to build your first Python application.








COMMENT THE POST
Your comment has been successfully submitted
The comment will be visible on the page when our moderators approve it.