Hithanks 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.
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:
Hithanks 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.
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 installedVirtualenv is installed and I ran PIP within that to install DjangoApache is working in a different part of my file systemPart of my concern is that I have three different core directories and not sure how those get consolidated:Apache root folder to serve webpagesPython folder with the sub folder containing what I hope are virtual environmentsDjango installed within this python sub folderI 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:37Subject: 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:
Hithanks 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>
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
>>> import django
>>> print django.get_version() 4
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 installedVirtualenv is installed and I ran PIP within that to install DjangoApache is working in a different part of my file systemPart of my concern is that I have three different core directories and not sure how those get consolidated:Apache root folder to serve webpagesPython folder with the sub folder containing what I hope are virtual environmentsDjango installed within this python sub folderI 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![]()
Thanks for any light you might shed upon my confusion <Mail Attachment.png>
ImportError: No module named site
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.
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>
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.
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]
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.
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:
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>
--
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.
[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
--
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.
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.
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 GrahamI 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 bestNick------ Original Message ------From: "Graham Dumpleton" <graham.d...@gmail.com>Sent: 04/12/2014 12:21:42Subject: 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: