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

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

> 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
>  
> ------ Original Message ------
> From: "Graham Dumpleton" <graham.dumple...@gmail.com>
> To: modwsgi@googlegroups.com
> Sent: 02/12/2014 11:29:44
> Subject: Re: [modwsgi] RuntimeError: The 'apxs' command appears not to be 
> installed or is not executable.
>  
>> Did you install Python for all users of your system, or just yourself? It 
>> must be installed for all users.
>> 
>> Graham
>> 
>> On 02/12/2014, at 10:28 PM, "Nick Abelson" <nick.abel...@gmail.com> wrote:
>> 
>>> 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
>>>  
>>> ------ Original Message ------
>>> From: "Graham Dumpleton" <graham.dumple...@gmail.com>
>>> To: modwsgi@googlegroups.com
>>> Sent: 02/12/2014 11:25:49
>>> Subject: Re: [modwsgi] RuntimeError: The 'apxs' command appears not to be 
>>> installed or is not executable.
>>>  
>>>> 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
>>>> 
>>>> On 02/12/2014, at 10:16 PM, "Nick Abelson" <nick.abel...@gmail.com> wrote:
>>>> 
>>>>> Thanks Graham
>>>>> I have gone back to the beginning and am stuck in a weird place. I am on 
>>>>> this page:
>>>>> https://docs.djangoproject.com/en/1.4/intro/tutorial01/
>>>>>  
>>>>> 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:
>>>>> https://docs.djangoproject.com/en/1.4/intro/install/
>>>>>  
>>>>> 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.dumple...@gmail.com>
>>>>> To: modwsgi@googlegroups.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.abel...@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:
>>>>>> 
>>>>>> * 
>>>>>> http://code.google.com/p/modwsgi/wiki/InstallationOnWindows#Module_Installation
>>>>>> 
>>>>>> copy the .so file into the Apache modules directory.
>>>>>> 
>>>>>> Then load the module as defined in:
>>>>>> 
>>>>>> * 
>>>>>> http://code.google.com/p/modwsgi/wiki/QuickInstallationGuide#Loading_Module_Into_Apache
>>>>>> 
>>>>>>  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:
>>>>>> 
>>>>>> * https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/modwsgi/
>>>>>> 
>>>>>> 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 <Mail 
>>>>>>> Attachment.png>
>>>>>>>  
>>>>>>> ------ Original Message ------
>>>>>>> From: "Graham Dumpleton" <graham.dumple...@gmail.com>
>>>>>>> To: modwsgi@googlegroups.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:
>>>>>>>> 
>>>>>>>> http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi
>>>>>>>> 
>>>>>>>> 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.abel...@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>
>>>>>>>>> 
>>>>>>>>> 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+unsubscr...@googlegroups.com.
>>>>>>>>> To post to this group, send email to modwsgi@googlegroups.com.
>>>>>>>>> Visit this group at http://groups.google.com/group/modwsgi.
>>>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>> 
>>>>>>>> 
>>>>>>>> -- 
>>>>>>>> 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+unsubscr...@googlegroups.com.
>>>>>>>> To post to this group, send email to modwsgi@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.
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> -- 
>>>>>>> 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+unsubscr...@googlegroups.com.
>>>>>>> To post to this group, send email to modwsgi@googlegroups.com.
>>>>>>> Visit this group at http://groups.google.com/group/modwsgi.
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>> 
>>>>>> 
>>>>>> -- 
>>>>>> 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+unsubscr...@googlegroups.com.
>>>>>> To post to this group, send email to modwsgi@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.
>>>>> 
>>>>> 
>>>>> 
>>>>> -- 
>>>>> 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+unsubscr...@googlegroups.com.
>>>>> To post to this group, send email to modwsgi@googlegroups.com.
>>>>> Visit this group at http://groups.google.com/group/modwsgi.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>> 
>>>> 
>>>> -- 
>>>> 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+unsubscr...@googlegroups.com.
>>>> To post to this group, send email to modwsgi@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.
>>> 
>>> 
>>> 
>>> -- 
>>> 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+unsubscr...@googlegroups.com.
>>> To post to this group, send email to modwsgi@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/modwsgi.
>>> For more options, visit https://groups.google.com/d/optout.
>> 
>> 
>> -- 
>> 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+unsubscr...@googlegroups.com.
>> To post to this group, send email to modwsgi@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.
> 
> 
> 
> -- 
> 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+unsubscr...@googlegroups.com.
> To post to this group, send email to modwsgi@googlegroups.com.
> Visit this group at http://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to modwsgi@googlegroups.com.
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to