python - ': [Errno 2] No such file or directoryile ' in Linux -
-bash-3.2$ dir dispatch.cgi stats -bash-3.2$ ./dispatch.cgi ': [errno 2] no such file or directoryile ' this dispatch.cgi:
#!/usr/local/bin/python2.7 import sys, os sys.path += ['/home/content/88/10907688/lib/venv/lib/python2.7/site-packages'] sys.path += ['/home/content/88/10907688/lib/venv/bin/gccfishing'] os.environ['django_settings_module'] = 'gccfishing.settings' flup.server.fcgi import wsgiserver django.core.handlers.wsgi import wsgihandler wsgiserver(wsgihandler()).run() why dispatch.cgi not getting executed?
try give script proper permission
chmod +x dispatch.cgi and ensure path python correct
which python2.7
Comments
Post a Comment