We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

Python-Django Web IIS configuration on VMRSS

9 replies

Last post Jun 04, 2021 01:18 PM by lextm

‹ Previous Thread|Next Thread ›
  • Python-Django Web IIS configuration on VM

    Feb 06, 2019 07:35 AM|Hastik|LINK

    Hello guys,

    i configured IIS for python Django web Application on VM but i am getting this error. anyone have any idea how to solve this error thanks in advanced 

    Module FastCgiModule
    Notification ExecuteRequestHandler
    Handler Python FastCGI
    Error Code 0x8007010b
    Requested URL http://localhost:8003/
    Physical Path C:\inetpub\wwwroot\KPMG_KRX
    Logon Method Anonymous
    Logon User Anonymous

  • Re: Python-Django Web IIS configuration on VM

    Feb 06, 2019 03:29 PM|lextm|LINK

    https://blog.lextudio.com/shifting-to-azure-app-service-on-linux-b216f4584b03

    It is time to run Python on Linux again. Microsoft no longer makes Windows/IIS a suitable option for you.

    Lex Li
    Want to have a chat on the issues you meet? Book an appointment at https://buy.stripe.com/cN24ia0yi7sAdIA7sv
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Python-Django Web IIS configuration on VM

    Feb 07, 2019 04:30 AM|Hastik|LINK

    hi lex thanks to replay me so there is video on YouTube show that its possible to deploying python-Django web Application on azure VM (window server) and i try that but its given me error 500.0 internal server error so what is issue. or i have not try that and switch to Linux environment can you please guide me thanks in advanced my Email id: hastikpatel786@gmail.com

  • Re: Python-Django Web IIS configuration on VM

    Feb 07, 2019 05:15 AM|lextm|LINK

    Hastik

    its possible to deploying python-Django web Application on azure VM

    Anything is possible, but you have to find your own way when Microsoft no longer supports it. Neither do I.

    Lex Li
    Want to have a chat on the issues you meet? Book an appointment at https://buy.stripe.com/cN24ia0yi7sAdIA7sv
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Python-Django Web IIS configuration on VM

    Feb 07, 2019 05:49 AM|Jalpa Panchal|LINK

    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
  • Re: Python-Django Web IIS configuration on VM

    Feb 07, 2019 06:12 AM|Hastik|LINK

    hi Jalpa,

    i already did all the thing installation of python,wfastcgi, adding handler and other thing. i follow this video both video mostly are same and in first video link there is solution of my error is give and i try that also but still i am getting error 

    link

    https://www.youtube.com/watch?v=CpFU16KrJcQ

    https://www.youtube.com/watch?v=cgTFrAwXeoI&t=1s

     and error is HTTP error 500.0 internal server error unknown fastcgi occurred 

  • Re: Python-Django Web IIS configuration on VM

    Feb 07, 2019 06:41 AM|Jalpa Panchal|LINK

    Hi,

    You need to be sure that the The scriptProcessor attribute of the web.config matches Full Path and the Arguments of the FastCGI application.

    .NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
  • Re: Python-Django Web IIS configuration on VM

    Feb 07, 2019 06:49 AM|Hastik|LINK

    Hi,

    yes its correct config already 

    This my web config file

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
    <system.webServer>
    <handlers>
    <add name="Python FastCGI"
    path="*"
    verb="*"
    modules="FastCgiModule"
    scriptProcessor="c:\users\hastik\appdata\local\programs\python\python37\python.exe|c:\users\hastik\appdata\local\programs\python\python37\lib\site-packages\wfastcgi.py"
    resourceType="Unspecified"
    requireAccess="Script" />
    </handlers>
    </system.webServer>

    <appSettings>
    <!-- Required settings -->
    <add key="WSGI_HANDLER" value="KPMG.wsgi.application" />
    <add key="PYTHONPATH" value="C:\inetpub\wwwroot\KPMG_KRX" />
    <!-- Optional settings -->
    <add key="DJANGO_SETTINGS_MODULE" value="KPMG.settings" />
    </appSettings>
    </configuration>

  • Re: Python-Django Web IIS configuration on VM

    Jun 03, 2021 11:00 PM|Juancode1|LINK

    welll first of all your web.config file is ok that ceratinly is not the issue , not completely sure about this but i had the same problem that you had, what i did was first reinstalling python and its packages back into C: folder so the path would be shorter just c:\python\python37.... cant say that solved the error but i did it and stayed that way since, how we actually solved the error was with this https://www.programmersought.com/article/59043206697/ so basically says (with some images too) that you should go to the ISS into Application Pool -> Advanced Settings -> ID: ApplicationPoolIdentify then modify whatever is there with the default LocalSystem. 
    pd: also check on the ISS permissions on the django app file so it can be accessed

  • Re: Python-Django Web IIS configuration on VM

    Jun 04, 2021 01:18 PM|lextm|LINK

    Juancode1

    modify whatever is there with the default LocalSystem. 

    You opened a security black hole on this web server.

    Lex Li
    Want to have a chat on the issues you meet? Book an appointment at https://buy.stripe.com/cN24ia0yi7sAdIA7sv
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
‹ Previous Thread|Next Thread ›