iis 8 - django on IIS, process exited unexpectedly -
i have read every article find on topic i'm still unable run django project on iis. error message 500 internal server error, c:\program files (x86)\python 3.5\python.exe - fastcgi process exited unexpectedly.
tracing rule error 500 provides following:
error -fastcgi_unexpected_exit warning -set_response_error_description errordescription c:\program files (x86)\python 3.5\python.exe - fastcgi process exited unexpectedly warning -module_set_response_error_status modulename fastcgimodule notification execute_request_handler httpstatus 500 httpreason internal server error httpsubstatus 0 errorcode system cannot find file specified. (0x2)
environment:
- windows server 2012 r2
- iis 8.5 (cgi enabled)
- wfastcgi installed , enabled (command "c:\program files (x86)\python 3.5\python.exe|c:\program files (x86)\python 3.5\lib\site-packages\wfastcgi.py" opens python shell - right?)
web.config under c:\inetpub\wwwroot\testapp:
<configuration> <system.webserver> <handlers> <add name="python fastcgi" path="*" verb="*" modules="fastcgimodule" scriptprocessor="c:\program files (x86)\python 3.5\python.exe|c:\program files (x86)\python 3.5\lib\site-packages\wfastcgi.py" resourcetype="unspecified" requireaccess="script" /> </handlers> <tracing> <tracefailedrequests> <add path="*"> <traceareas> <add provider="asp" verbosity="verbose" /> <add provider="isapi extension" verbosity="verbose" /> <add provider="www server" areas="authentication,security,filter,staticfile,cgi,compression,cache,requestnotifications,module,fastcgi,websocket" verbosity="verbose" /> </traceareas> <failuredefinitions statuscodes="500" /> </add> </tracefailedrequests> </tracing> </system.webserver> <appsettings> <!-- required settings --> <add key="wsgi_handler" value="django.core.wsgi.get_wsgi_application()" /> <add key="pythonpath" value="c:\inetpub\wwwroot\testapp" /> <!-- optional settings --> <add key="wsgi_log" value="c:\inetpub\logs\testapp.log" /> <add key="wsgi_restart_file_regex" value=".*((\.py)|(\.config))$" /> <add key="appinsights_instrumentationkey" value="__instrumentation_key__" /> <add key="django_settings_module" value="testapp.settings" /> </appsettings> </configuration>
thanks help.
Comments
Post a Comment