Python Script
We have followed the guide from this link https://forums.cpanel.net/threads/short-guide-to-running-python-scripts-with-cpanel.244361/. We did all modifications. Still i am not able to run the python scripts.
There are no python files uder /usr/bin/cgi-bin. Please do the python setup in the cpanel.
1 Reply
Sorry to hear that you are having difficulty setting up your Python script. We are more than happy to point you in the right troubleshooting direction!
We'd like to confirm that you have python installed on your Linode. You will need to connect to your Linode using SSH to perform the following step.
Step to check that python is configured properly:
python --version
This command should output something similar to:
Python 2.7.5
If you find that python is not already installed, you can use the below command to fix that, if you are running CentOS.
sudo yum install python
We are a little uncertain what you are trying to achieve by running a python script with cPanel. In order for the Community to better help you, and understand your situation, I recommend checking out the Community site post we wrote about Asking Better Questions.
Since we are unable to perform configuration changes on your Linode for you, we recommend reaching out to a local system administrator for assistance making configuration changes. Another option is to reach out to our Professional Services team. They will be able to provide you with a custom quote for performing any configuration setting you need, once they understand your situation better.
Have a lovely day!
Edit: This post has been edited in order to understand the situation better so that we, as a Community, can help! I have also provided additional troubleshooting steps.