On May 28, 6:27 am, mojito <meenalp...@gmail.com> wrote: > > > When I come to deploy my django app on Apache , I get this error. > > > > [error] [client 127.0.0.1] Target WSGI script not found or unable to > > > stat: C:/wsgi-django-app > > > /testing/apache/django.wsgi > > > This will occur where the user that the Apache service runs as does > > not have the necessary access permissions to the directory containing > > the WSGI script file. In other works, if the access controls on your > > directories only allow access to yourself and no one else, Apache > > service will not be able to see the WSGI script file. > > > Graham > > Thanks for your response Graham. I do not think permissions is an > issue because I can launch a python script
But you are launching the Python script as yourself aren't you? Apache does not run as you but a distinct user which will have different access permissions. > from this location and view > a test web page with Apache. And how did you do that? Was the page access in same 'apache' subdirectory. > If I use a *.wsgi file from here then > Apache complains. On Linux this setup works fine. What gives ? Change: WSGIScriptAlias / C:/wsgi-django-app/testing/apache/django.wsgi to: Alias / C:/wsgi-django-app/testing/apache/django.wsgi This will cause exact same file to be served as static file rather than interpreted as WSGI script file. If you can't access it either, then it is a permissions problem. Graham -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.