RuntimeError: The 'apxs' command appears not to be installed or is not executable.

4,434 views
Skip to first unread message

Nick Abelson

unread,
Dec 1, 2014, 1:15:28 PM12/1/14
to mod...@googlegroups.com
Hi 
I have downloaded the latest version of Apache: 2.4 and what I believe to be the latest version of mod, 4.4. However when I try to install it, I get the following error:
RuntimeError: The 'apxs' command appears not to be installed or is not executable.

I ran "python setup.py" from the command line whilst in the folder where I had extracted the mod files to. 

What have I done wrong? 

thanks
Nick

Joonas Lehtolahti

unread,
Dec 1, 2014, 2:08:58 PM12/1/14
to mod...@googlegroups.com
On Mon, 01 Dec 2014 20:15:27 +0200, Nick Abelson <nick.a...@gmail.com>
wrote:

> Hi
> I have downloaded the latest version of Apache: 2.4 and what I believe to
> be the latest version of mod, 4.4. However when I try to install it, I
> get
> the following error:
> RuntimeError: The 'apxs' command appears not to be installed or is not
> executable.

This typically means that you do not have the corresponding development
files of Apache installed, but only the binaries. For example on Debian
Linux you can install Apache by installing package "apache2" (or more
specifically, one of the derivatives), but you also need "apache2-dev" to
build mod_wsgi; apxs comes in that package.

Did you install Apache 2.4 by OS package manager, did you compile it from
sources, or did you get a binary package (common method for Windows)? And
related, which Operating System are you on?

- Joonas

Nick Abelson

unread,
Dec 2, 2014, 5:46:15 AM12/2/14
to mod...@googlegroups.com
Hi 
thanks for getting back to me - I installed using a binary package. I tried doing manually but got in a bit of a mess. I am using Windows 8.1 64bit. So do I need to uninstall Apache and start again with the developer version? I think I tried installing that a while back but had problems there as well hence going for the binary install! 

Ultimately I am looking to run Python inside Django then implement my front end with Twitter Bootstrap. I am getting brain ache trying to understand what sits where and how each interacts :(

any suggestions? 

Graham Dumpleton

unread,
Dec 2, 2014, 5:51:45 AM12/2/14
to mod...@googlegroups.com
For Windows you should be using the precompiled binary packages at:


There shouldn't be a need to compile anything as the apxs error suggests you are trying to do. Just get the compiled module .so file and install it into your Apache modules directory and go from there.

BTW, there are now initial development test versions of the latest 4.4.X there for Windows as well. These are new and haven't been tested, so perhaps use the 3.5 versions for now if you are new to mod_wsgi.

Anyway, explain more clearly each step you have taken so far in trying to get things going. As I say, if you see an apxs error on Windows, you have already gone off down the wrong track.

Graham

On 02/12/2014, at 9:46 PM, Nick Abelson <nick.a...@gmail.com> wrote:

Hi 
thanks for getting back to me - I installed using a binary package. I tried doing manually but got in a bit of a mess. I am using Windows 8.1 64bit. So do I need to uninstall Apache and start again with the developer version? I think I tried installing that a while back but had problems there as well hence going for the binary install! 

Ultimately I am looking to run Python inside Django then implement my front end with Twitter Bootstrap. I am getting brain ache trying to understand what sits where and how each interacts :(

any suggestions? 

On Monday, December 1, 2014 7:08:58 PM UTC, Joonas Lehtolahti wrote:
On Mon, 01 Dec 2014 20:15:27 +0200, Nick Abelson <nick.a...@gmail.com>  
wrote:

> Hi
> I have downloaded the latest version of Apache: 2.4 and what I believe to
> be the latest version of mod, 4.4. However when I try to install it, I  
> get
> the following error:
> RuntimeError: The 'apxs' command appears not to be installed or is not
> executable.

This typically means that you do not have the corresponding development  
files of Apache installed, but only the binaries. For example on Debian  
Linux you can install Apache by installing package "apache2" (or more  
specifically, one of the derivatives), but you also need "apache2-dev" to  
build mod_wsgi; apxs comes in that package.

Did you install Apache 2.4 by OS package manager, did you compile it from  
sources, or did you get a binary package (common method for Windows)? And  
related, which Operating System are you on?

- Joonas

--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Nick Abelson

unread,
Dec 2, 2014, 5:59:44 AM12/2/14
to mod...@googlegroups.com
Thanks Graham - it does feel like i have gone down a dead end and a binary install file would be a dream come true! I can only see 64bit versions for AMD. I am running on an Intel processor so presumably I can't use that build?
 
Truth is I have installed so many different things in order to install other things that I am slightly lost. I do know the following:
PIP is installed
Virtualenv is installed and I ran PIP within that to install Django
Apache is working in a different part of my file system
Part of my concern is that I have three different core directories and not sure how those get consolidated:
    Apache root folder to serve webpages
    Python folder with the sub folder containing what I hope are virtual environments
    Django installed within this python sub folder
 
I appreciate this might not give you any useful information but if I can start with the binary i should download and install this might throw up some useful errors/confusion. BTW when you say "Just get the compiled module .so file and install it into your Apache modules directory and go from there." When you say "install" is this more than copy to the relevant directory? Many of my issues revolve around the instruction to "install" when there is no further info as to how to do so.
 
Thanks for any light you might shed upon my confusion :)
 
------ Original Message ------
From: "Graham Dumpleton" <graham.d...@gmail.com>
Sent: 02/12/2014 10:51:37
Subject: Re: [modwsgi] RuntimeError: The 'apxs' command appears not to be installed or is not executable.
 
For Windows you should be using the precompiled binary packages at:


There shouldn't be a need to compile anything as the apxs error suggests you are trying to do. Just get the compiled module .so file and install it into your Apache modules directory and go from there.

BTW, there are now initial development test versions of the latest 4.4.X there for Windows as well. These are new and haven't been tested, so perhaps use the 3.5 versions for now if you are new to mod_wsgi.

Anyway, explain more clearly each step you have taken so far in trying to get things going. As I say, if you see an apxs error on Windows, you have already gone off down the wrong track.

Graham
On 02/12/2014, at 9:46 PM, Nick Abelson <nick.a...@gmail.com> wrote:

Hi 
thanks for getting back to me - I installed using a binary package. I tried doing manually but got in a bit of a mess. I am using Windows 8.1 64bit. So do I need to uninstall Apache and start again with the developer version? I think I tried installing that a while back but had problems there as well hence going for the binary install! 

Ultimately I am looking to run Python inside Django then implement my front end with Twitter Bootstrap. I am getting brain ache trying to understand what sits where and how each interacts :(

--
You received this message because you are subscribed to a topic in the Google Groups "modwsgi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/modwsgi/X_Z4FQxXVoQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to modwsgi+u...@googlegroups.com.

To post to this group, send email to mod...@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.



This email is free from viruses and malware because avast! Antivirus protection is active.


Graham Dumpleton

unread,
Dec 2, 2014, 6:06:47 AM12/2/14
to mod...@googlegroups.com
On 02/12/2014, at 9:59 PM, "Nick Abelson" <nick.a...@gmail.com> wrote:

Thanks Graham - it does feel like i have gone down a dead end and a binary install file would be a dream come true! I can only see 64bit versions for AMD. I am running on an Intel processor so presumably I can't use that build?

I do not understand the naming differences, but my understanding is that for 64 bit Intel you would still use win-amd64 variant for your specific Apache/Python version.

I don't know if you specifically have to use the Apache Lounge Apache distribution or whether other Apache distributions are okay. Better to use what they were compiled for.

As per:


copy the .so file into the Apache modules directory.

Then load the module as defined in:


 How you then restart Apache will be Windows specific. Make sure that Apache at least restarts and can serve default 'It Works' home page.

For Django you should then try and follow instructions in:


So see if you can get the module loaded and try and understand the Django setup instructions and let us know what you get stuck on.

Graham

Truth is I have installed so many different things in order to install other things that I am slightly lost. I do know the following:
PIP is installed
Virtualenv is installed and I ran PIP within that to install Django
Apache is working in a different part of my file system
Part of my concern is that I have three different core directories and not sure how those get consolidated:
    Apache root folder to serve webpages
    Python folder with the sub folder containing what I hope are virtual environments
    Django installed within this python sub folder
 
I appreciate this might not give you any useful information but if I can start with the binary i should download and install this might throw up some useful errors/confusion. BTW when you say "Just get the compiled module .so file and install it into your Apache modules directory and go from there." When you say "install" is this more than copy to the relevant directory? Many of my issues revolve around the instruction to "install" when there is no further info as to how to do so.
 
Thanks for any light you might shed upon my confusion :)
 
------ Original Message ------
From: "Graham Dumpleton" <graham.d...@gmail.com>
Sent: 02/12/2014 10:51:37
Subject: Re: [modwsgi] RuntimeError: The 'apxs' command appears not to be installed or is not executable.
 
For Windows you should be using the precompiled binary packages at:


There shouldn't be a need to compile anything as the apxs error suggests you are trying to do. Just get the compiled module .so file and install it into your Apache modules directory and go from there.

BTW, there are now initial development test versions of the latest 4.4.X there for Windows as well. These are new and haven't been tested, so perhaps use the 3.5 versions for now if you are new to mod_wsgi.

Anyway, explain more clearly each step you have taken so far in trying to get things going. As I say, if you see an apxs error on Windows, you have already gone off down the wrong track.

Graham
On 02/12/2014, at 9:46 PM, Nick Abelson <nick.a...@gmail.com> wrote:

Hi 
thanks for getting back to me - I installed using a binary package. I tried doing manually but got in a bit of a mess. I am using Windows 8.1 64bit. So do I need to uninstall Apache and start again with the developer version? I think I tried installing that a while back but had problems there as well hence going for the binary install! 

Ultimately I am looking to run Python inside Django then implement my front end with Twitter Bootstrap. I am getting brain ache trying to understand what sits where and how each interacts <Mail Attachment.png>

Nick Abelson

unread,
Dec 2, 2014, 6:16:37 AM12/2/14
to mod...@googlegroups.com
Thanks Graham
I have gone back to the beginning and am stuck in a weird place. I am on this page:
 
I did this:
We’ll assume you have Django installed already. You can tell Django is installed by running the Python interactive interpreter and typing import django.
 
I did that successfully but when I try to do this:

From the command line, cd into a directory where you’d like to store your code, then run the following command:

django-admin.py startproject mysite
this fails with the following error:
django-admin.py : The term 'django-admin.py' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ django-admin.py startproject mysite
+ ~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (django-admin.py:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
So I then click on the link to install Django (since my understanding from that is that Django isn't installed) which takes me to:
 
I check to see if Django is installed using this script:
>>> import django

>>> print django.get_version()
4
and I get a positive result - it is installed... so something isn't working right!
 
This is all from the same directory in the powershell within my virtualenv within the python directory
------ Original Message ------
From: "Graham Dumpleton" <graham.d...@gmail.com>
Sent: 02/12/2014 11:06:40
Subject: Re: [modwsgi] RuntimeError: The 'apxs' command appears not to be installed or is not executable.
 
On 02/12/2014, at 9:59 PM, "Nick Abelson" <nick.a...@gmail.com> wrote:

Thanks Graham - it does feel like i have gone down a dead end and a binary install file would be a dream come true! I can only see 64bit versions for AMD. I am running on an Intel processor so presumably I can't use that build?

I do not understand the naming differences, but my understanding is that for 64 bit Intel you would still use win-amd64 variant for your specific Apache/Python version.

I don't know if you specifically have to use the Apache Lounge Apache distribution or whether other Apache distributions are okay. Better to use what they were compiled for.

As per:


copy the .so file into the Apache modules directory.

Then load the module as defined in:


 How you then restart Apache will be Windows specific. Make sure that Apache at least restarts and can serve default 'It Works' home page.

For Django you should then try and follow instructions in:


So see if you can get the module loaded and try and understand the Django setup instructions and let us know what you get stuck on.

Graham

Truth is I have installed so many different things in order to install other things that I am slightly lost. I do know the following:
PIP is installed
Virtualenv is installed and I ran PIP within that to install Django
Apache is working in a different part of my file system
Part of my concern is that I have three different core directories and not sure how those get consolidated:
    Apache root folder to serve webpages
    Python folder with the sub folder containing what I hope are virtual environments
    Django installed within this python sub folder
 
I appreciate this might not give you any useful information but if I can start with the binary i should download and install this might throw up some useful errors/confusion. BTW when you say "Just get the compiled module .so file and install it into your Apache modules directory and go from there." When you say "install" is this more than copy to the relevant directory? Many of my issues revolve around the instruction to "install" when there is no further info as to how to do so.
 
Thanks for any light you might shed upon my confusion :)

Graham Dumpleton

unread,
Dec 2, 2014, 6:25:57 AM12/2/14
to mod...@googlegroups.com
Since I don't use Windows myself I have no idea what specifically you would have to do to run django-admin.py.

Hopefully someone else will chip and answer, but otherwise for such a question one of the Django forums or IRC channels may be a better place to ask.

Graham

Thanks for any light you might shed upon my confusion <Mail Attachment.png>

Nick Abelson

unread,
Dec 2, 2014, 6:28:45 AM12/2/14
to mod...@googlegroups.com
Ok thanks - so leaving that to one side for the moment...
I downloaded the zip file: mod_wsgi-3.5.ap24.win-amd64-py2.7
as I am running Apache 2.4 with Python 2.7 on a Windows 64 bit machine. I added LoadModule wsgi_module modules/mod_wsgi.so to my httpd config file and then tried to restart Apache Server - it wouldn't restart until I had commented out the new line in the config file.
 
Any ideas what is going wrong?
Thanks for your help on this - am starting to pull my hair out

Graham Dumpleton

unread,
Dec 2, 2014, 6:29:51 AM12/2/14
to mod...@googlegroups.com
Did you install Python for all users of your system, or just yourself? It must be installed for all users.

Graham

Nick Abelson

unread,
Dec 2, 2014, 6:31:20 AM12/2/14
to mod...@googlegroups.com
I did for all users when I first installed. I then went onto install virtualenv and that is where I am working from. However this is all in a different part of the physical file system than Apache so not sure how the two would be interacting, if they are, at all

Graham Dumpleton

unread,
Dec 2, 2014, 6:32:53 AM12/2/14
to mod...@googlegroups.com
The virtualenv wouldn't be coming into play at this point.

What is the actual error that appears in the Apache error log when it doesn't start?

Graham

Nick Abelson

unread,
Dec 2, 2014, 6:34:25 AM12/2/14
to mod...@googlegroups.com
[Tue Dec 02 11:23:16.531468 2014] [mpm_winnt:notice] [pid 1712:tid 436] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Dec 02 11:23:18.533372 2014] [mpm_winnt:notice] [pid 1804:tid 728] AH00364: Child: All worker threads have exited.
[Tue Dec 02 11:23:18.550382 2014] [mpm_winnt:notice] [pid 1712:tid 436] AH00430: Parent: Child process exited successfully.
[Tue Dec 02 11:23:23.468691 2014] [mpm_winnt:notice] [pid 11624:tid 688] AH00455: Apache/2.4.2 (Win64) mod_wsgi/3.5 Python/2.7.6 configured -- resuming normal operations
[Tue Dec 02 11:23:23.473695 2014] [mpm_winnt:notice] [pid 11624:tid 688] AH00456: Server built: May 11 2012 20:42:30
[Tue Dec 02 11:23:23.473695 2014] [core:notice] [pid 11624:tid 688] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Tue Dec 02 11:23:23.485704 2014] [mpm_winnt:notice] [pid 11624:tid 688] AH00418: Parent: Created child process 9512
ImportError: No module named site
[Tue Dec 02 11:23:24.797632 2014] [mpm_winnt:crit] [pid 11624:tid 688] AH00419: master_main: create child process failed. Exiting.
[Tue Dec 02 11:23:36.187128 2014] [mpm_winnt:notice] [pid 7380:tid 696] AH00455: Apache/2.4.2 (Win64) mod_wsgi/3.5 Python/2.7.6 configured -- resuming normal operations
[Tue Dec 02 11:23:36.189130 2014] [mpm_winnt:notice] [pid 7380:tid 696] AH00456: Server built: May 11 2012 20:42:30
[Tue Dec 02 11:23:36.189130 2014] [core:notice] [pid 7380:tid 696] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Tue Dec 02 11:23:36.195134 2014] [mpm_winnt:notice] [pid 7380:tid 696] AH00418: Parent: Created child process 13248
ImportError: No module named site
[Tue Dec 02 11:23:36.739519 2014] [mpm_winnt:crit] [pid 7380:tid 696] AH00419: master_main: create child process failed. Exiting.
[Tue Dec 02 11:24:17.118630 2014] [mpm_winnt:notice] [pid 12056:tid 704] AH00455: Apache/2.4.2 (Win64) mod_wsgi/3.5 Python/2.7.6 configured -- resuming normal operations
[Tue Dec 02 11:24:17.120631 2014] [mpm_winnt:notice] [pid 12056:tid 704] AH00456: Server built: May 11 2012 20:42:30
[Tue Dec 02 11:24:17.120631 2014] [core:notice] [pid 12056:tid 704] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Tue Dec 02 11:24:17.125635 2014] [mpm_winnt:notice] [pid 12056:tid 704] AH00418: Parent: Created child process 12764
ImportError: No module named site
[Tue Dec 02 11:24:17.578955 2014] [mpm_winnt:crit] [pid 12056:tid 704] AH00419: master_main: create child process failed. Exiting.
[Tue Dec 02 11:24:28.371565 2014] [mpm_winnt:notice] [pid 2812:tid 708] AH00455: Apache/2.4.2 (Win64) mod_wsgi/3.5 Python/2.7.6 configured -- resuming normal operations
[Tue Dec 02 11:24:28.373567 2014] [mpm_winnt:notice] [pid 2812:tid 708] AH00456: Server built: May 11 2012 20:42:30
[Tue Dec 02 11:24:28.373567 2014] [core:notice] [pid 2812:tid 708] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Tue Dec 02 11:24:28.379571 2014] [mpm_winnt:notice] [pid 2812:tid 708] AH00418: Parent: Created child process 11088
ImportError: No module named site
[Tue Dec 02 11:24:28.815880 2014] [mpm_winnt:crit] [pid 2812:tid 708] AH00419: master_main: create child process failed. Exiting.
[Tue Dec 02 11:25:35.659965 2014] [mpm_winnt:notice] [pid 1020:tid 684] AH00455: Apache/2.4.2 (Win64) configured -- resuming normal operations
[Tue Dec 02 11:25:35.661967 2014] [mpm_winnt:notice] [pid 1020:tid 684] AH00456: Server built: May 11 2012 20:42:30
[Tue Dec 02 11:25:35.661967 2014] [core:notice] [pid 1020:tid 684] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Tue Dec 02 11:25:35.665970 2014] [mpm_winnt:notice] [pid 1020:tid 684] AH00418: Parent: Created child process 5752
[Tue Dec 02 11:25:36.075259 2014] [mpm_winnt:notice] [pid 5752:tid 320] AH00354: Child: Starting 64 worker threads.

Graham Dumpleton

unread,
Dec 2, 2014, 6:38:44 AM12/2/14
to mod...@googlegroups.com

On 02/12/2014, at 10:34 PM, "Nick Abelson" <nick.a...@gmail.com> wrote:

ImportError: No module named site

This message indicates that when Python tries to initialise itself it cannot find where your Python installation is located.

This would possibly suggest the registry entries are screwed up, or it wasn't installed globally meaning the user that Apache runs as cannot find the registry entries.

You can try adding the directive:

    WSGIPythonHome C:/Python27

where the path is the directory where the Python installation is. It should be the directory that contains the Bin/Lib directories.

Otherwise you may have to reinstall the Python installation.

Graham

Graham Dumpleton

unread,
Dec 2, 2014, 6:41:14 AM12/2/14
to mod...@googlegroups.com
Sleep time, so no more from me tonight.

Nick Abelson

unread,
Dec 2, 2014, 6:41:47 AM12/2/14
to mod...@googlegroups.com
Thanks for your help... am going to uninstall everything and try again!
 
------ Original Message ------
From: "Graham Dumpleton" <graham.d...@gmail.com>
Sent: 02/12/2014 11:41:08
Subject: Re: [modwsgi] RuntimeError: The 'apxs' command appears not to be installed or is not executable.
 
Sleep time, so no more from me tonight.
--
You received this message because you are subscribed to a topic in the Google Groups "modwsgi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/modwsgi/X_Z4FQxXVoQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Nick Abelson

unread,
Dec 3, 2014, 5:15:14 AM12/3/14
to mod...@googlegroups.com
Update:
I have reinstalled everything and got as far as successfully restarting the server. Reading this: https://docs.djangoproject.com/en/1.5/howto/deployment/wsgi/modwsgi/ the next thing I have to do is add this:
WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py

WSGIPythonPath /path/to/mysite.com


<Directory /path/to/mysite.com/mysite>

<Files wsgi.py>

Require all granted
</Files>

</Directory>
Where do I put the script alias? Does it go in here: <IfModule alias_module>
 
Presumably it doesn't matter where the <directory> snippet goes?
 
Thanks
 
 
------ Original Message ------
From: "Graham Dumpleton" <graham.d...@gmail.com>
Sent: 02/12/2014 11:41:08
Subject: Re: [modwsgi] RuntimeError: The 'apxs' command appears not to be installed or is not executable.
 
Sleep time, so no more from me tonight.
--
You received this message because you are subscribed to a topic in the Google Groups "modwsgi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/modwsgi/X_Z4FQxXVoQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Graham Dumpleton

unread,
Dec 3, 2014, 5:19:48 AM12/3/14
to mod...@googlegroups.com
Do not start out with Django. Get a WSGI hello world script working first is a better idea.

Select a directory on your system where you intend putting you example.

Lets say you use:

  C:/MyApp

as the directory.

In that directory place a file called 'wsgi.py' and in it place:

def application(environ, start_response):
    status
= '200 OK'
    output
= 'Hello World!'

    response_headers
= [('Content-type', 'text/plain'),
                       
('Content-Length', str(len(output)))]
    start_response
(status, response_headers)

   
return [output]
Then at the very end of the httpd.conf file add:

WSGIScriptAlias / 'C:/MyApp/wsgi.py'

<Directory 'C:/MyApp/wsgi.py'>
Require all granted
</Directory>

Restart Apache and access your web server using:


This presumes it is accepting connections on standard port 80.

Indicate whether that much works.

Graham

You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.

Nick Abelson

unread,
Dec 3, 2014, 5:26:19 AM12/3/14
to mod...@googlegroups.com
I get "forbidden - don't have permission to access this directory"
on the plus side, the webserver did restart

Graham Dumpleton

unread,
Dec 3, 2014, 5:32:14 AM12/3/14
to mod...@googlegroups.com
Sorry, should have been:

<Directory 'C:/MyApp'>
Require all granted
</Directory>

Nick Abelson

unread,
Dec 3, 2014, 5:41:53 AM12/3/14
to mod...@googlegroups.com
Still getting this error:

Forbidden

You don't have permission to access / on this server.

This is what I have put into the config file:

WSGIScriptAlias / 'C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py'

<Directory 'C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test'>
Require all granted
</Directory>

Sorry, should have been:

Graham Dumpleton

unread,
Dec 3, 2014, 5:50:23 AM12/3/14
to mod...@googlegroups.com

On 03/12/2014, at 9:41 PM, "Nick Abelson" <nick.a...@gmail.com> wrote:

WSGIScriptAlias / 'C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py'

<Directory 'C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test'>
Require all granted
</Directory>

Windows can be pretty stupid. My understanding was that Apache still allowed POSIX style path, but maybe not. So try:

WSGIScriptAlias / 'C:\Users\nicka_000\Documents\Coding\websites_go_here\WSGI_test\wsgi.py'

<Directory 'C:\Users\nicka_000\Documents\Coding\websites_go_here\WSGI_test'>
Require all granted
</Directory>

Also ensure that directive doesn't have very restrictive access permissions that would prohibit the separate user that Apache runs as from accessing the files.

To be absolutely sure about the exact reason you are getting that, I need to see the error message from the Apache error log.

Specifically, whether it is something like:

  client denied by server configuration

or:

  (13)Permission denied

Graham

Nick Abelson

unread,
Dec 3, 2014, 5:57:02 AM12/3/14
to mod...@googlegroups.com
Still denied
 
From access log:
::1 - - [03/Dec/2014:10:24:38 +0000] "GET / HTTP/1.1" 403 202
::1 - - [03/Dec/2014:10:24:38 +0000] "GET /favicon.ico HTTP/1.1" 403 213
127.0.0.1 - - [03/Dec/2014:10:24:49 +0000] "GET / HTTP/1.1" 403 202
127.0.0.1 - - [03/Dec/2014:10:24:50 +0000] "GET /favicon.ico HTTP/1.1" 403 213
::1 - - [03/Dec/2014:10:25:35 +0000] "GET / HTTP/1.1" 403 202
::1 - - [03/Dec/2014:10:25:35 +0000] "GET /favicon.ico HTTP/1.1" 403 213
::1 - - [03/Dec/2014:10:33:47 +0000] "GET / HTTP/1.1" 403 202
::1 - - [03/Dec/2014:10:33:48 +0000] "GET /favicon.ico HTTP/1.1" 403 213
::1 - - [03/Dec/2014:10:34:04 +0000] "GET / HTTP/1.1" 403 202
::1 - - [03/Dec/2014:10:34:04 +0000] "GET /favicon.ico HTTP/1.1" 403 213
127.0.0.1 - - [03/Dec/2014:10:35:23 +0000] "GET / HTTP/1.1" 403 202
127.0.0.1 - - [03/Dec/2014:10:35:23 +0000] "GET /favicon.ico HTTP/1.1" 403 213
::1 - - [03/Dec/2014:10:36:19 +0000] "GET / HTTP/1.1" 403 202
::1 - - [03/Dec/2014:10:36:20 +0000] "GET /favicon.ico HTTP/1.1" 403 213
::1 - - [03/Dec/2014:10:36:55 +0000] "GET / HTTP/1.1" 403 202
::1 - - [03/Dec/2014:10:36:55 +0000] "GET /favicon.ico HTTP/1.1" 403 213
::1 - - [03/Dec/2014:10:37:10 +0000] "GET / HTTP/1.1" 403 202
::1 - - [03/Dec/2014:10:37:10 +0000] "GET /favicon.ico HTTP/1.1" 403 213
::1 - - [03/Dec/2014:10:37:37 +0000] "GET / HTTP/1.1" 403 202
::1 - - [03/Dec/2014:10:37:37 +0000] "GET /favicon.ico HTTP/1.1" 403 213
::1 - - [03/Dec/2014:10:37:40 +0000] "GET / HTTP/1.1" 403 202
::1 - - [03/Dec/2014:10:37:40 +0000] "GET /favicon.ico HTTP/1.1" 403 213
::1 - - [03/Dec/2014:10:38:42 +0000] "GET / HTTP/1.1" 403 202
::1 - - [03/Dec/2014:10:38:42 +0000] "GET /favicon.ico HTTP/1.1" 403 213
::1 - - [03/Dec/2014:10:38:45 +0000] "GET / HTTP/1.1" 403 202
::1 - - [03/Dec/2014:10:38:45 +0000] "GET /favicon.ico HTTP/1.1" 403 213
::1 - - [03/Dec/2014:10:40:19 +0000] "GET / HTTP/1.1" 403 202
::1 - - [03/Dec/2014:10:40:20 +0000] "GET /favicon.ico HTTP/1.1" 403 213
::1 - - [03/Dec/2014:10:42:42 +0000] "GET / HTTP/1.1" 403 202
::1 - - [03/Dec/2014:10:42:42 +0000] "GET /favicon.ico HTTP/1.1" 403 213
::1 - - [03/Dec/2014:10:42:48 +0000] "GET / HTTP/1.1" 403 202
::1 - - [03/Dec/2014:10:42:48 +0000] "GET /favicon.ico HTTP/1.1" 403 213
::1 - - [03/Dec/2014:10:44:44 +0000] "GET / HTTP/1.1" 200 88
::1 - - [03/Dec/2014:10:44:44 +0000] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [03/Dec/2014:10:45:08 +0000] "GET / HTTP/1.1" 200 88
127.0.0.1 - - [03/Dec/2014:10:45:08 +0000] "GET /favicon.ico HTTP/1.1" 404 209
127.0.0.1 - - [03/Dec/2014:10:45:57 +0000] "GET / HTTP/1.1" 403 202
127.0.0.1 - - [03/Dec/2014:10:54:15 +0000] "GET / HTTP/1.1" 403 202
::1 - - [03/Dec/2014:10:55:07 +0000] "GET / HTTP/1.1" 403 202
 
and from error log:
[Wed Dec 03 10:24:23.770528 2014] [mpm_winnt:notice] [pid 2304:tid 704] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Dec 03 10:24:25.773732 2014] [mpm_winnt:notice] [pid 8520:tid 676] AH00364: Child: All worker threads have exited.
[Wed Dec 03 10:24:25.805736 2014] [mpm_winnt:notice] [pid 2304:tid 704] AH00430: Parent: Child process exited successfully.
[Wed Dec 03 10:24:29.137234 2014] [:warn] [pid 13448:tid 692] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:24:29.139235 2014] [:warn] [pid 13448:tid 692] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:24:29.142237 2014] [mpm_winnt:notice] [pid 13448:tid 692] AH00455: Apache/2.4.2 (Win64) mod_wsgi/3.5 Python/2.7.9rc1 configured -- resuming normal operations
[Wed Dec 03 10:24:29.142237 2014] [mpm_winnt:notice] [pid 13448:tid 692] AH00456: Server built: May 11 2012 20:42:30
[Wed Dec 03 10:24:29.142237 2014] [core:notice] [pid 13448:tid 692] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Wed Dec 03 10:24:29.147241 2014] [mpm_winnt:notice] [pid 13448:tid 692] AH00418: Parent: Created child process 13092
[Wed Dec 03 10:24:29.556549 2014] [:warn] [pid 13092:tid 624] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:24:29.558554 2014] [:warn] [pid 13092:tid 624] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:24:29.630585 2014] [mpm_winnt:notice] [pid 13092:tid 624] AH00354: Child: Starting 64 worker threads.
[Wed Dec 03 10:24:38.547694 2014] [authz_core:error] [pid 13092:tid 1188] [client ::1:56676] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:24:38.910952 2014] [authz_core:error] [pid 13092:tid 1188] [client ::1:56676] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:24:49.884499 2014] [authz_core:error] [pid 13092:tid 1188] [client 127.0.0.1:56679] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:24:50.356835 2014] [authz_core:error] [pid 13092:tid 1188] [client 127.0.0.1:56679] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:25:35.104155 2014] [authz_core:error] [pid 13092:tid 1188] [client ::1:56693] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:25:35.251259 2014] [authz_core:error] [pid 13092:tid 1188] [client ::1:56693] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:33:47.669412 2014] [authz_core:error] [pid 13092:tid 1188] [client ::1:57096] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:33:48.026663 2014] [authz_core:error] [pid 13092:tid 1188] [client ::1:57096] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:33:54.366550 2014] [mpm_winnt:notice] [pid 13448:tid 692] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Dec 03 10:33:56.368632 2014] [mpm_winnt:notice] [pid 13092:tid 624] AH00364: Child: All worker threads have exited.
[Wed Dec 03 10:33:56.409632 2014] [mpm_winnt:notice] [pid 13448:tid 692] AH00430: Parent: Child process exited successfully.
[Wed Dec 03 10:33:59.108529 2014] [:warn] [pid 9540:tid 496] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:33:59.110512 2014] [:warn] [pid 9540:tid 496] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:33:59.113533 2014] [mpm_winnt:notice] [pid 9540:tid 496] AH00455: Apache/2.4.2 (Win64) mod_wsgi/3.5 Python/2.7.9rc1 configured -- resuming normal operations
[Wed Dec 03 10:33:59.113533 2014] [mpm_winnt:notice] [pid 9540:tid 496] AH00456: Server built: May 11 2012 20:42:30
[Wed Dec 03 10:33:59.113533 2014] [core:notice] [pid 9540:tid 496] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Wed Dec 03 10:33:59.118537 2014] [mpm_winnt:notice] [pid 9540:tid 496] AH00418: Parent: Created child process 11700
[Wed Dec 03 10:33:59.661907 2014] [:warn] [pid 11700:tid 648] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:33:59.664910 2014] [:warn] [pid 11700:tid 648] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:33:59.781991 2014] [mpm_winnt:notice] [pid 11700:tid 648] AH00354: Child: Starting 64 worker threads.
[Wed Dec 03 10:34:04.366926 2014] [authz_core:error] [pid 11700:tid 1188] [client ::1:57101] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:34:04.481007 2014] [authz_core:error] [pid 11700:tid 1188] [client ::1:57101] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:35:23.069824 2014] [authz_core:error] [pid 11700:tid 1188] [client 127.0.0.1:57113] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:35:23.275969 2014] [authz_core:error] [pid 11700:tid 1188] [client 127.0.0.1:57113] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:36:19.628873 2014] [authz_core:error] [pid 11700:tid 1188] [client ::1:57452] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:36:20.221294 2014] [authz_core:error] [pid 11700:tid 1188] [client ::1:57452] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:36:46.048649 2014] [mpm_winnt:notice] [pid 9540:tid 496] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Dec 03 10:36:48.051072 2014] [mpm_winnt:notice] [pid 11700:tid 648] AH00364: Child: All worker threads have exited.
[Wed Dec 03 10:36:48.092106 2014] [mpm_winnt:notice] [pid 9540:tid 496] AH00430: Parent: Child process exited successfully.
[Wed Dec 03 10:36:51.070164 2014] [:warn] [pid 4520:tid 436] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:36:51.074167 2014] [:warn] [pid 4520:tid 436] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:36:51.080171 2014] [mpm_winnt:notice] [pid 4520:tid 436] AH00455: Apache/2.4.2 (Win64) mod_wsgi/3.5 Python/2.7.9rc1 configured -- resuming normal operations
[Wed Dec 03 10:36:51.080171 2014] [mpm_winnt:notice] [pid 4520:tid 436] AH00456: Server built: May 11 2012 20:42:30
[Wed Dec 03 10:36:51.080171 2014] [core:notice] [pid 4520:tid 436] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Wed Dec 03 10:36:51.091179 2014] [mpm_winnt:notice] [pid 4520:tid 436] AH00418: Parent: Created child process 10308
[Wed Dec 03 10:36:51.834710 2014] [:warn] [pid 10308:tid 664] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:36:51.836711 2014] [:warn] [pid 10308:tid 664] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:36:51.969804 2014] [mpm_winnt:notice] [pid 10308:tid 664] AH00354: Child: Starting 64 worker threads.
[Wed Dec 03 10:36:55.235124 2014] [authz_core:error] [pid 10308:tid 1188] [client ::1:57623] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:36:55.460285 2014] [authz_core:error] [pid 10308:tid 1188] [client ::1:57623] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:37:10.590901 2014] [authz_core:error] [pid 10308:tid 1188] [client ::1:57624] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:37:10.840077 2014] [authz_core:error] [pid 10308:tid 1188] [client ::1:57624] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:37:28.803926 2014] [mpm_winnt:notice] [pid 4520:tid 436] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Dec 03 10:37:30.805239 2014] [mpm_winnt:notice] [pid 10308:tid 664] AH00364: Child: All worker threads have exited.
[Wed Dec 03 10:37:30.848210 2014] [mpm_winnt:notice] [pid 4520:tid 436] AH00430: Parent: Child process exited successfully.
[Wed Dec 03 10:37:33.332755 2014] [:warn] [pid 276:tid 472] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:37:33.335757 2014] [:warn] [pid 276:tid 472] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:37:33.339760 2014] [mpm_winnt:notice] [pid 276:tid 472] AH00455: Apache/2.4.2 (Win64) mod_wsgi/3.5 Python/2.7.9rc1 configured -- resuming normal operations
[Wed Dec 03 10:37:33.339760 2014] [mpm_winnt:notice] [pid 276:tid 472] AH00456: Server built: May 11 2012 20:42:30
[Wed Dec 03 10:37:33.339760 2014] [core:notice] [pid 276:tid 472] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Wed Dec 03 10:37:33.344763 2014] [mpm_winnt:notice] [pid 276:tid 472] AH00418: Parent: Created child process 6616
[Wed Dec 03 10:37:33.959200 2014] [:warn] [pid 6616:tid 488] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:37:33.961202 2014] [:warn] [pid 6616:tid 488] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:37:34.065275 2014] [mpm_winnt:notice] [pid 6616:tid 488] AH00354: Child: Starting 64 worker threads.
[Wed Dec 03 10:37:37.182721 2014] [authz_core:error] [pid 6616:tid 1192] [client ::1:57637] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:37:37.311784 2014] [authz_core:error] [pid 6616:tid 1192] [client ::1:57637] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:37:40.063489 2014] [authz_core:error] [pid 6616:tid 1192] [client ::1:57637] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:37:40.150551 2014] [authz_core:error] [pid 6616:tid 1192] [client ::1:57637] AH01630: client denied by server configuration: C:/Usersnicka_000
[Wed Dec 03 10:38:34.496834 2014] [mpm_winnt:notice] [pid 276:tid 472] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Dec 03 10:38:36.499391 2014] [mpm_winnt:notice] [pid 6616:tid 488] AH00364: Child: All worker threads have exited.
[Wed Dec 03 10:38:36.551573 2014] [mpm_winnt:notice] [pid 276:tid 472] AH00430: Parent: Child process exited successfully.
[Wed Dec 03 10:38:39.066728 2014] [:warn] [pid 15968:tid 708] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:38:39.068732 2014] [:warn] [pid 15968:tid 708] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:38:39.072734 2014] [mpm_winnt:notice] [pid 15968:tid 708] AH00455: Apache/2.4.2 (Win64) mod_wsgi/3.5 Python/2.7.9rc1 configured -- resuming normal operations
[Wed Dec 03 10:38:39.072734 2014] [mpm_winnt:notice] [pid 15968:tid 708] AH00456: Server built: May 11 2012 20:42:30
[Wed Dec 03 10:38:39.072734 2014] [core:notice] [pid 15968:tid 708] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Wed Dec 03 10:38:39.077739 2014] [mpm_winnt:notice] [pid 15968:tid 708] AH00418: Parent: Created child process 13068
[Wed Dec 03 10:38:39.536066 2014] [:warn] [pid 13068:tid 632] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:38:39.538065 2014] [:warn] [pid 13068:tid 632] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:38:39.613119 2014] [mpm_winnt:notice] [pid 13068:tid 632] AH00354: Child: Starting 64 worker threads.
[Wed Dec 03 10:38:42.558562 2014] [cgi:error] [pid 13068:tid 1188] [client ::1:57651] Options ExecCGI is off in this directory: C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py
[Wed Dec 03 10:38:42.683650 2014] [cgi:error] [pid 13068:tid 1188] [client ::1:57651] Options ExecCGI is off in this directory: C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py
[Wed Dec 03 10:38:45.687896 2014] [cgi:error] [pid 13068:tid 1188] [client ::1:57651] Options ExecCGI is off in this directory: C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py
[Wed Dec 03 10:38:45.769957 2014] [cgi:error] [pid 13068:tid 1188] [client ::1:57651] Options ExecCGI is off in this directory: C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py
[Wed Dec 03 10:40:06.239728 2014] [mpm_winnt:notice] [pid 15968:tid 708] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Dec 03 10:40:08.241725 2014] [mpm_winnt:notice] [pid 13068:tid 632] AH00364: Child: All worker threads have exited.
[Wed Dec 03 10:40:08.285697 2014] [mpm_winnt:notice] [pid 15968:tid 708] AH00430: Parent: Child process exited successfully.
[Wed Dec 03 10:40:10.806927 2014] [:warn] [pid 5832:tid 688] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:40:10.808928 2014] [:warn] [pid 5832:tid 688] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:40:10.811930 2014] [mpm_winnt:notice] [pid 5832:tid 688] AH00455: Apache/2.4.2 (Win64) mod_wsgi/3.5 Python/2.7.9rc1 configured -- resuming normal operations
[Wed Dec 03 10:40:10.811930 2014] [mpm_winnt:notice] [pid 5832:tid 688] AH00456: Server built: May 11 2012 20:42:30
[Wed Dec 03 10:40:10.811930 2014] [core:notice] [pid 5832:tid 688] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Wed Dec 03 10:40:10.815933 2014] [mpm_winnt:notice] [pid 5832:tid 688] AH00418: Parent: Created child process 7388
[Wed Dec 03 10:40:11.276279 2014] [:warn] [pid 7388:tid 324] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:40:11.278262 2014] [:warn] [pid 7388:tid 324] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:40:11.364323 2014] [mpm_winnt:notice] [pid 7388:tid 324] AH00354: Child: Starting 64 worker threads.
[Wed Dec 03 10:40:19.945505 2014] [authz_core:error] [pid 7388:tid 1192] [client ::1:57666] AH01630: client denied by server configuration: C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py
[Wed Dec 03 10:40:20.232710 2014] [authz_core:error] [pid 7388:tid 1192] [client ::1:57666] AH01630: client denied by server configuration: C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py
[Wed Dec 03 10:42:32.235729 2014] [mpm_winnt:notice] [pid 5832:tid 688] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Dec 03 10:42:34.237759 2014] [mpm_winnt:notice] [pid 7388:tid 324] AH00364: Child: All worker threads have exited.
[Wed Dec 03 10:42:34.269762 2014] [mpm_winnt:notice] [pid 5832:tid 688] AH00430: Parent: Child process exited successfully.
[Wed Dec 03 10:42:36.687946 2014] [:warn] [pid 4520:tid 704] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:42:36.689949 2014] [:warn] [pid 4520:tid 704] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:42:36.692950 2014] [mpm_winnt:notice] [pid 4520:tid 704] AH00455: Apache/2.4.2 (Win64) mod_wsgi/3.5 Python/2.7.9rc1 configured -- resuming normal operations
[Wed Dec 03 10:42:36.693951 2014] [mpm_winnt:notice] [pid 4520:tid 704] AH00456: Server built: May 11 2012 20:42:30
[Wed Dec 03 10:42:36.693951 2014] [core:notice] [pid 4520:tid 704] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Wed Dec 03 10:42:36.697954 2014] [mpm_winnt:notice] [pid 4520:tid 704] AH00418: Parent: Created child process 6612
[Wed Dec 03 10:42:37.117252 2014] [:warn] [pid 6612:tid 636] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:42:37.119253 2014] [:warn] [pid 6612:tid 636] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:42:37.195306 2014] [mpm_winnt:notice] [pid 6612:tid 636] AH00354: Child: Starting 64 worker threads.
[Wed Dec 03 10:42:42.433481 2014] [cgi:error] [pid 6612:tid 1192] [client ::1:57928] Options ExecCGI is off in this directory: C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py
[Wed Dec 03 10:42:42.542559 2014] [cgi:error] [pid 6612:tid 1192] [client ::1:57928] Options ExecCGI is off in this directory: C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py
[Wed Dec 03 10:42:48.333379 2014] [cgi:error] [pid 6612:tid 1192] [client ::1:57929] Options ExecCGI is off in this directory: C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py
[Wed Dec 03 10:42:48.427445 2014] [cgi:error] [pid 6612:tid 1192] [client ::1:57929] Options ExecCGI is off in this directory: C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py
[Wed Dec 03 10:44:35.498635 2014] [mpm_winnt:notice] [pid 4520:tid 704] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Dec 03 10:44:37.500004 2014] [mpm_winnt:notice] [pid 6612:tid 636] AH00364: Child: All worker threads have exited.
[Wed Dec 03 10:44:37.538973 2014] [mpm_winnt:notice] [pid 4520:tid 704] AH00430: Parent: Child process exited successfully.
[Wed Dec 03 10:44:39.939888 2014] [:warn] [pid 11556:tid 696] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:44:39.941889 2014] [:warn] [pid 11556:tid 696] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:44:39.945892 2014] [mpm_winnt:notice] [pid 11556:tid 696] AH00455: Apache/2.4.2 (Win64) mod_wsgi/3.5 Python/2.7.9rc1 configured -- resuming normal operations
[Wed Dec 03 10:44:39.945892 2014] [mpm_winnt:notice] [pid 11556:tid 696] AH00456: Server built: May 11 2012 20:42:30
[Wed Dec 03 10:44:39.945892 2014] [core:notice] [pid 11556:tid 696] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Wed Dec 03 10:44:39.949895 2014] [mpm_winnt:notice] [pid 11556:tid 696] AH00418: Parent: Created child process 8520
[Wed Dec 03 10:44:40.355202 2014] [:warn] [pid 8520:tid 624] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:44:40.357204 2014] [:warn] [pid 8520:tid 624] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:44:40.432240 2014] [mpm_winnt:notice] [pid 8520:tid 624] AH00354: Child: Starting 64 worker threads.
[Wed Dec 03 10:45:47.812628 2014] [mpm_winnt:notice] [pid 11556:tid 696] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Dec 03 10:45:49.814396 2014] [mpm_winnt:notice] [pid 8520:tid 624] AH00364: Child: All worker threads have exited.
[Wed Dec 03 10:45:49.846416 2014] [mpm_winnt:notice] [pid 11556:tid 696] AH00430: Parent: Child process exited successfully.
[Wed Dec 03 10:45:52.348078 2014] [:warn] [pid 11040:tid 708] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:45:52.350082 2014] [:warn] [pid 11040:tid 708] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:45:52.353100 2014] [mpm_winnt:notice] [pid 11040:tid 708] AH00455: Apache/2.4.2 (Win64) mod_wsgi/3.5 Python/2.7.9rc1 configured -- resuming normal operations
[Wed Dec 03 10:45:52.353100 2014] [mpm_winnt:notice] [pid 11040:tid 708] AH00456: Server built: May 11 2012 20:42:30
[Wed Dec 03 10:45:52.353100 2014] [core:notice] [pid 11040:tid 708] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Wed Dec 03 10:45:52.358100 2014] [mpm_winnt:notice] [pid 11040:tid 708] AH00418: Parent: Created child process 14036
[Wed Dec 03 10:45:52.795396 2014] [:warn] [pid 14036:tid 628] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:45:52.798398 2014] [:warn] [pid 14036:tid 628] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:45:52.931493 2014] [mpm_winnt:notice] [pid 14036:tid 628] AH00354: Child: Starting 64 worker threads.
[Wed Dec 03 10:45:57.204673 2014] [cgi:error] [pid 14036:tid 1188] [client 127.0.0.1:58080] Options ExecCGI is off in this directory: C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py
[Wed Dec 03 10:54:08.356184 2014] [mpm_winnt:notice] [pid 11040:tid 708] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Dec 03 10:54:10.358573 2014] [mpm_winnt:notice] [pid 14036:tid 628] AH00364: Child: All worker threads have exited.
[Wed Dec 03 10:54:10.406568 2014] [mpm_winnt:notice] [pid 11040:tid 708] AH00430: Parent: Child process exited successfully.
[Wed Dec 03 10:54:13.022940 2014] [:warn] [pid 13984:tid 700] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:54:13.024926 2014] [:warn] [pid 13984:tid 700] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:54:13.027945 2014] [mpm_winnt:notice] [pid 13984:tid 700] AH00455: Apache/2.4.2 (Win64) mod_wsgi/3.5 Python/2.7.9rc1 configured -- resuming normal operations
[Wed Dec 03 10:54:13.027945 2014] [mpm_winnt:notice] [pid 13984:tid 700] AH00456: Server built: May 11 2012 20:42:30
[Wed Dec 03 10:54:13.027945 2014] [core:notice] [pid 13984:tid 700] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Wed Dec 03 10:54:13.031947 2014] [mpm_winnt:notice] [pid 13984:tid 700] AH00418: Parent: Created child process 10832
[Wed Dec 03 10:54:13.443220 2014] [:warn] [pid 10832:tid 624] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:54:13.445222 2014] [:warn] [pid 10832:tid 624] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:54:13.517273 2014] [mpm_winnt:notice] [pid 10832:tid 624] AH00354: Child: Starting 64 worker threads.
[Wed Dec 03 10:54:15.947688 2014] [authz_core:error] [pid 10832:tid 1188] [client 127.0.0.1:58575] AH01630: client denied by server configuration: C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py
[Wed Dec 03 10:54:58.794570 2014] [mpm_winnt:notice] [pid 13984:tid 700] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Wed Dec 03 10:55:00.801769 2014] [mpm_winnt:notice] [pid 10832:tid 624] AH00364: Child: All worker threads have exited.
[Wed Dec 03 10:55:00.830789 2014] [mpm_winnt:notice] [pid 13984:tid 700] AH00430: Parent: Child process exited successfully.
[Wed Dec 03 10:55:03.249111 2014] [:warn] [pid 3520:tid 696] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:55:03.251093 2014] [:warn] [pid 3520:tid 696] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:55:03.255096 2014] [mpm_winnt:notice] [pid 3520:tid 696] AH00455: Apache/2.4.2 (Win64) mod_wsgi/3.5 Python/2.7.9rc1 configured -- resuming normal operations
[Wed Dec 03 10:55:03.255096 2014] [mpm_winnt:notice] [pid 3520:tid 696] AH00456: Server built: May 11 2012 20:42:30
[Wed Dec 03 10:55:03.255096 2014] [core:notice] [pid 3520:tid 696] AH00094: Command line: 'C:\\Program Files\\Apache Software Foundation\\Apache2.4\\bin\\httpd.exe -d C:/Program Files/Apache Software Foundation/Apache2.4 -f C:\\Program Files\\Apache Software Foundation\\Apache2.4\\conf\\httpd.conf -d C:\\Program Files\\Apache Software Foundation\\Apache2.4\\.'
[Wed Dec 03 10:55:03.261100 2014] [mpm_winnt:notice] [pid 3520:tid 696] AH00418: Parent: Created child process 6476
[Wed Dec 03 10:55:03.870533 2014] [:warn] [pid 6476:tid 352] mod_wsgi: Compiled for Python/2.7.6.
[Wed Dec 03 10:55:03.872535 2014] [:warn] [pid 6476:tid 352] mod_wsgi: Runtime using Python/2.7.9rc1.
[Wed Dec 03 10:55:03.971605 2014] [mpm_winnt:notice] [pid 6476:tid 352] AH00354: Child: Starting 64 worker threads.
[Wed Dec 03 10:55:07.568299 2014] [authz_core:error] [pid 6476:tid 1192] [client ::1:58587] AH01630: client denied by server configuration: C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py
 
------ Original Message ------
From: "Graham Dumpleton" <graham.d...@gmail.com>
Sent: 03/12/2014 10:50:16
Subject: Re: [modwsgi] RuntimeError: The 'apxs' command appears not to be installed or is not executable.
 
--
You received this message because you are subscribed to a topic in the Google Groups "modwsgi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/modwsgi/X_Z4FQxXVoQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to modwsgi+u...@googlegroups.com.
To post to this group, send email to mod...@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Graham Dumpleton

unread,
Dec 3, 2014, 6:09:31 AM12/3/14
to mod...@googlegroups.com

On 03/12/2014, at 9:56 PM, "Nick Abelson" <nick.a...@gmail.com> wrote:

[Wed Dec 03 10:55:07.568299 2014] [authz_core:error] [pid 6476:tid 1192] [client ::1:58587] AH01630: client denied by server configuration: C:/Users/nicka_000/Documents/Coding/websites_go_here/WSGI_test/wsgi.py

Are you saying this was definitely the result of using backslashes in the path in the Apache configuration file?

Does that file definitely exist at that location?

I don't like recommending it as it is removing one layer of security in the Apache configuration, but if only playing and not making this machine public, then instead of:

<Directory 'C:\Users\nicka_000\Documents\Coding\websites_go_here\WSGI_test'>
Require all granted
</Directory>

use:

<Location />
Require all granted
</Location>

Graham

Nick Abelson

unread,
Dec 3, 2014, 6:44:29 AM12/3/14
to mod...@googlegroups.com
I copy and pasted all the logs from this morning where we first tried "/" and then "\"

I have replaced the code in the config fileand restarted the server but still get permissions denied. 

The folder where the file resides doesn't look like it has any odd security settings -admin and system both have access and the file is in the directory

Graham Dumpleton

unread,
Dec 3, 2014, 6:50:50 AM12/3/14
to mod...@googlegroups.com
Sleep time.

Provide an exact copy of the current configuration you have added to the Apache configuration file.

Indicate exactly where in the file you placed this.

Make sure your editor hasn't added some fancy quote type. It should be a normal single or double quote.

If you have added what I said to at the end of the file, I cannot see why it wouldn't work.

Graham

--
You received this message because you are subscribed to the Google Groups "modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+u...@googlegroups.com.

Nick Abelson

unread,
Dec 3, 2014, 1:49:13 PM12/3/14
to mod...@googlegroups.com
Added to config file httpd in the conf directory under the Apache installation after
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
at the end of the file:

WSGIScriptAlias / 'C:\Users\nicka_000\Documents\Coding\websites_go_here\WSGI_test\wsgi.py'
 
<Location />
Require all granted
</Location>
 
 
then in the directory C:\Users\nicka_000\Documents\Coding\websites_go_here\WSGI_test i have put the file wsgi.py which contains the following:
def application(environ, start_response):
    status = '200 OK'
    output = 'Hello World!'
    response_headers = [('Content-type', 'text/plain'),
                        ('Content-Length', str(len(output)))]
    start_response(status, response_headers)
    return [output]
I've copy/pasted the code you supplied and amended in situ
 
thanks
Nick
------ Original Message ------
From: "Graham Dumpleton" <graham.d...@gmail.com>
Sent: 03/12/2014 11:50:42
Subject: Re: [modwsgi] RuntimeError: The 'apxs' command appears not to be installed or is not executable.
 
Sleep time.
You received this message because you are subscribed to a topic in the Google Groups "modwsgi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/modwsgi/X_Z4FQxXVoQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to modwsgi+u...@googlegroups.com.

To post to this group, send email to mod...@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Graham Dumpleton

unread,
Dec 3, 2014, 7:49:26 PM12/3/14
to mod...@googlegroups.com
Don't know if you noticed, but got a separate report of this same problem now in another email on the list.

So something is definitely going on.

The person who provides the Win32 builds has been working on getting new builds for 4.4.1 done, so don't know if they rebuilt 3.5 and whether that has caused some issue. I am trying to find out if they have changed anything.

In the mean time, lets see if we can eliminate it being an issue with WSGIScriptAlias. There are a couple of ways we can do this.

For the first one to try, go into your Apache configuration file and find what it has set the DocumentRoot directive to. This direct is the default place Apache looks for files when handing URL requests.

My guess is that it is going to end up being the directory:

  C:/Program Files/Apache Software Foundation/Apache2.4/htdocs

What ever the directory is, copy the 'wsgi.py' for the hello world example into that directory but rename it to 'hello.wsgi'.

Now in the Apache configuration file do the following.

First comment out the WSGIScriptAlias directive.

Next go and find the Directory directive corresponding to that 'htdocs' directory above.

This example is from a UNIX system but you should find something like:

DocumentRoot "/usr/local/httpd-2.4.10/htdocs"
<Directory "/usr/local/httpd-2.4.10/htdocs">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Require all granted
</Directory>

Inside if that Directory directive block, add at the end of the Options directive, 'ExecCGI'.

Then add:

AddHandler wsgi-script .wsgi

Thus you would have something like:

DocumentRoot "/usr/local/httpd-2.4.10/htdocs"
<Directory "/usr/local/httpd-2.4.10/htdocs">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # for more information.
    #
    Options Indexes FollowSymLinks ExecCGI

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Require all granted

    AddHandler wsgi-script .wsgi
</Directory>

Restart Apache and try and access the URL:


Does that even work.

Graham

Nick Abelson

unread,
Dec 4, 2014, 5:43:20 AM12/4/14
to mod...@googlegroups.com
Glad I'm not the only one!
Yes that works! I get the hello world message.
 
I already had the ExecCGI line in there as had been experimenting with CGI scripts previously. This wouldn't have impacted what we were trying to do yesterday, would it?

Graham Dumpleton

unread,
Dec 4, 2014, 6:15:58 AM12/4/14
to mod...@googlegroups.com
Now try this then:

Alias / 'C:\Users\nicka_000\Documents\Coding\websites_go_here\WSGI_test\hello.wsgi'

<Directory 'C:\Users\nicka_000\Documents\Coding\websites_go_here\WSGI_test'>
Options ExecCGI
AddHandler wsgi-script .wsgi
Require all granted
</Directory>

Rename the wsgi.py you had in that directory to hello.wsgi

Nick Abelson

unread,
Dec 4, 2014, 6:21:08 AM12/4/14
to mod...@googlegroups.com
Sorry Graham
I am getting a bit lost in the file now... are those two separate entries to add? Where do I add them? Am I deleting anything that I have just added?

Graham Dumpleton

unread,
Dec 4, 2014, 6:27:56 AM12/4/14
to mod...@googlegroups.com
You should already previously had:

<Directory 'C:\Users\nicka_000\Documents\Coding\websites_go_here\WSGI_test'>
Require all granted
</Directory>

from the attempt to do the hello world with WSGIScriptAlias.

This would have been at the end of the Apache configuration file.

What we are doing is adding two extra lines to it to yield:

<Directory 'C:\Users\nicka_000\Documents\Coding\websites_go_here\WSGI_test'>
Options ExecCGI
AddHandler wsgi-script .wsgi
Require all granted
</Directory>

You are then adding a new directive following after (or before) that Directory directive block.

Alias / 'C:\Users\nicka_000\Documents\Coding\websites_go_here\WSGI_test\hello.wsgi'

Also rename the wsgi.py file in that WSGI_test directory from the prior WSGIScriptAlias test, changing the name to hello.wsgi.

The Alias directive for / should override the use of DocumentRoot.

What I am asking you to change it to mirrors what WSGIScriptAlias actually does. That is, is similar to what is described in:


Read that document if you want to try and understand better the differences.

Graham

Nick Abelson

unread,
Dec 4, 2014, 6:41:17 AM12/4/14
to mod...@googlegroups.com
Ok - that was the line i removed in favour of a blanket allow access, i believe 
so i now have at the bottom of the config file:
#WSGIScriptAlias / 'C:\Users\nicka_000\Documents\Coding\websites_go_here\WSGI_test\wsgi.py'
<Directory 'C:\Users\nicka_000\Documents\Coding\websites_go_here\WSGI_test'>
Options ExecCGI
AddHandler wsgi-script .wsgi
Require all granted
</Directory>
 
Alias / 'C:\Users\nicka_000\Documents\Coding\websites_go_here\WSGI_test\hello.wsgi'
 
<Location />
Require all granted
</Location>
 
I have run localhost and I get the apache message appearing
when i do localhost/hello.wsgi I get file not found (I have changed the name of the file as instructed.

Nick Abelson

unread,
Dec 4, 2014, 7:09:15 AM12/4/14
to mod...@googlegroups.com
I've just tried it again and I get the wsgi message at localhost - which I believe is a step forward?!

Graham Dumpleton

unread,
Dec 4, 2014, 7:21:51 AM12/4/14
to mod...@googlegroups.com
In this latest test you wouldn't have needed:

<Location />
Require all granted
</Location>

Actually, didn't need that for the previous one either.

The URL for the latest test would have been:


although if you added anything after it it wouldn't have mattered as still should have all gone to the hello world. So you shouldn't have got not found.

When you say:

"""I've just tried it again and I get the wsgi message at localhost - which I believe is a step forward?!"""

I do not know what you mean. Are you seeing the 'Hello World!' from the WSGI test program?

Anyway, sleep time again.

Graham

Nick Abelson

unread,
Dec 4, 2014, 7:25:29 AM12/4/14
to mod...@googlegroups.com
What time zone are you in? I think i need to start working earlier in the morning!
 
Yes - I got the wsgi message at localhost... so we appear to have cracked that nut!
 
Not sure where that leaves us but hopefully we can pick up again tomorrow.
 
Thanks for your help

Nick Abelson

unread,
Dec 8, 2014, 4:34:23 AM12/8/14
to mod...@googlegroups.com
Hi Graham
I hope you had a good weekend. Have you had any thoughts about what I need to do next? The last test worked but not sure where that has gotten us!
All the best

Graham Dumpleton

unread,
Dec 8, 2014, 10:18:31 PM12/8/14
to mod...@googlegroups.com
No new ideas. I need to find time to build a Windows VM and compile myself from code and test. The binary you are using is done by someone else and given that has been a long time since even tested on Windows, with al the changes in 4.X, am not surprised there might be issues.

Graham

Nick Abelson

unread,
Dec 9, 2014, 11:20:51 AM12/9/14
to mod...@googlegroups.com
Thanks Graham
I will happily be your guinea pig for testing if that helps?
 
 
------ Original Message ------
From: "Graham Dumpleton" <graham.d...@gmail.com>
Sent: 09/12/2014 03:18:24
Subject: Re: [modwsgi] RuntimeError: The 'apxs' command appears not to be installed or is not executable.
 
No new ideas. I need to find time to build a Windows VM and compile myself from code and test. The binary you are using is done by someone else and given that has been a long time since even tested on Windows, with al the changes in 4.X, am not surprised there might be issues.

Graham

On 08/12/2014, at 8:34 PM, Nick Abelson <nick.a...@gmail.com> wrote:

Hi Graham
I hope you had a good weekend. Have you had any thoughts about what I need to do next? The last test worked but not sure where that has gotten us!
All the best
Nick
 
------ Original Message ------
From: "Graham Dumpleton" <graham.d...@gmail.com>
Sent: 04/12/2014 12:21:42
Subject: Re: [modwsgi] RuntimeError: The 'apxs' command appears not to be installed or is not executable.
 
In this latest test you wouldn't have needed:

<Location />
Require all granted
</Location>

Actually, didn't need that for the previous one either.

The URL for the latest test would have been:

Graham Dumpleton

unread,
Dec 10, 2014, 9:39:18 PM12/10/14
to mod...@googlegroups.com
Finding a copy of Windows is proving to be the issue.

The Windows 7 disk I have I can't find the license key for, so am having to restart back to Windows XP 32 bit version to try and test it.

Best I will be able to manage is to clean up the build script provided by the person who has been building the binaries so that is easily understood and modified to suit a specific users setup and then so long as you have compiler installed yourself for compiling Python extension modules, show you how you can compile a binary yourself. With that I can try things myself and if find changes needed then push it to github and then explain how you can compile the code yourself to get a mod_wsgi.so file.

Going to take me a number of days though as backlogged with stuff right now.

Graham

Nick Abelson

unread,
Dec 11, 2014, 4:06:38 AM12/11/14
to mod...@googlegroups.com
Ok - I am happy to act as your remote test station if that helps? We can do a screen share or something similar as and when you are ready to go.
 
I have plenty of other things I can get on with, in the interim
Reply all
Reply to author
Forward
0 new messages