Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
litespeed_wiki:cloudlinux:enable_passenger [2018/09/17 19:46]
George Wang [Trouble shooting]
litespeed_wiki:cloudlinux:enable_passenger [2018/09/17 20:15]
Jackson Zhang [Trouble shooting]
Line 18: Line 18:
   - If possible, switch back to Apache temporarily to verify if the application works properly or not.   - If possible, switch back to Apache temporarily to verify if the application works properly or not.
   - check if any error logged into <​APP_ROOT_DIR>/​stderr.log,​ fix the error and try again.   - check if any error logged into <​APP_ROOT_DIR>/​stderr.log,​ fix the error and try again.
 +
 +For example:
 +
 +Python application writes error to stderr.log under the application root directory.
 +
 +/​home/​user1/​dingodossier/​mbntp/​stderr.log has
 +
 +Traceback (most recent call last):
 +  File "/​home/​user1/​dingodossier/​mbntp/​passenger_wsgi.py",​ line 8, in <​module>​
 +    wsgi = imp.load_source('​wsgi',​ '​mbntp/​wsgi.py'​)
 +  File "/​home/​user1/​virtualenv/​dingodossier_mbntp/​3.4/​lib64/​python3.4/​imp.py",​ line 171, in load_source
 +    module = methods.load()
 +  File "<​frozen importlib._bootstrap>",​ line 1220, in load
 +  File "<​frozen importlib._bootstrap>",​ line 1200, in _load_unlocked
 +  File "<​frozen importlib._bootstrap>",​ line 1129, in _exec
 +  File "<​frozen importlib._bootstrap>",​ line 1471, in exec_module
 +  File "<​frozen importlib._bootstrap>",​ line 321, in _call_with_frames_removed
 +  File "​mbntp/​wsgi.py",​ line 10, in <​module>​
 +    from django.core.wsgi import get_wsgi_application
 +ImportError:​ No module named '​django'​
 +
 +It indicates Django was not properly set up for this application. You should try it under Apache to make sure it is working.
  • Admin
  • Last modified: 2018/09/17 20:27
  • by Lisa Clarke