0

I setup a django "hello world" app IIS (Windows Server 2012). The application is run successfully using the Django web server. However, when I tried to install in on IIS (following the instructions provided here) I get an HTTP 500 error with the message "python.exe - The FastCGI process exited unexpectedly".

I have seen numerous related posts on stackoverflow, but nothing seems to work for me. Based on the guidance

  • I have checked file permissions on both the app and virtual environment folder but they in my opinion this should not be the issue as the users IUSR and IIS_IUSRS can Read & execute, Read and List folder contents.
  • I have tried also to run wfastcgi-enable based on the instructions provided by this post but I get the error "ensure your user has sufficient privileges and try again". Please note that I tried running it both from an "elevated" command line and also power shell with no results.
  • I have reinstalled python to make sure it is installed for "all users" (as suggested by this post) but I get an error "0x80070659 - This installation is forbidden by system policy".
  • I looked in the Event viewer but I could not find something useful.

My questions:

  • Is there a specific log that I should check? How could I find it?
  • My django app does not have a web.config file. Should I create one?

My setup: Windows Server 2012 R2, IIS 8.5, Python 3.9.1

Pantelis Natsiavas
  • 5,293
  • 5
  • 21
  • 36
  • Have you tried checking the Application and System logs under EventViewer? – Mohsin Mehmood Jan 30 '21 at 15:15
  • @MohsinMehmood Yes I did. However, nothing suspicious came up. Should I look for something specific? Obviously I miss something here... – Pantelis Natsiavas Jan 31 '21 at 19:40
  • There are many reasons for this error. first of all, the php version may cause this error, you can try to install Python 3.6.8 or other version. If you still can't solve the problem, please post more detailed information about the error page. – samwu Feb 01 '21 at 09:21
  • @samwu The python version is 3.9.1. I don't see how the php version might be relevant though... When you say "more detailed information" what do you mean? Is there a specific log file that I could share? – Pantelis Natsiavas Feb 06 '21 at 14:40
  • "Detailed information" means the information of your error page, you can post a screenshot of it. – samwu Feb 08 '21 at 08:43

0 Answers0