Beforehand please contact Getspace technical support to enable Shell Access for your account. You will be able to use Terminal in the Advanced Section:
1. Log in to your cPanel account.
2. In the SOFTWARE section select Setup Python App tool:
3. Click CREATE APPLICATION
The application form appears:
4. In the Python version list box, select 3.8.6.
5. In the Application root text box, type myapp.
6. In the Application URL list box, select the domain. Leave the rest of the URL blank.
7. Leave the Application startup file text box and Application Entry point text box blank.
When these text boxes are blank, cPanel automatically creates a passenger_wsgi.py startup file and default application object for you.
8. In the Passenger log file text box, you can optionally specify a log file for the application.
9. In the top right corner of the page, click CREATE:
cPanel will create the application and set up the Python environment.
10. At the top of the page, there is “Enter to the virtual environment. To enter to virtual environment, run the command” - copy the command. This is the command you input in the Terminal to enter the virtual environment that is set up for the application. To install packages through pip, this command must be run first.
Add Comment