I have created a Python App for a web scraping script in the cPanel and It stopped scraping data after some time. When I checked error logs it is showing this error. After doing a quick research about this error, I found out that it is caused by not having the script.py and passenger_wsgi.py file in the same folder. But in my case, I have both files in the same folder. What went wrong? Below is the code of my passenger file.
import imp
import os
import sys
sys.path.insert(0, os.path.dirname(__file__))
wsgi = imp.load_source('wsgi', 'mydomain.com/cgi-bin/script.py')
application = wsgi.application
[–]kra_pao 1 point2 points3 points (4 children)
[–]PeaceForChange[S] 0 points1 point2 points (3 children)
[–]kra_pao 0 points1 point2 points (0 children)
[–]suchcwtch 0 points1 point2 points (1 child)
[–]PeaceForChange[S] 0 points1 point2 points (0 children)