> RuntimeError: The 'apxs' command appears not to be installed or is not > executable. Please check the list of prerequisites in the documentation for > this package and install any missing Apache httpd server packages. Hi,
I've never faced this, but the error message is quite clear: in order for mod_wsgi to install itself you need to have the "apxs" command available. If you are using Debian or Ubuntu, it is in package "apache2-dev". So "apt install apache2-dev". Regards, Antonis Antonis Christofides http://djangodeployment.com On 2017-09-15 12:04, BIJAL MANIAR wrote: > > Hi, > I had a production application running with Python2.7 and Django1.11 through > Apache and mod_wsgi. > Now I have upgraded to Python3.5 and created virtual env. pip install mod_wsgi > is giving below error. > > (p3_venv) bash-4.1# pip install mod_wsgi > Collecting mod_wsgi > Downloading mod_wsgi-4.5.18.tar.gz (2.5MB) > Complete output from command python setup.py egg_info: > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/tmp/pip-build-_hbwnbp5/mod-wsgi/setup.py", line 164, in <module> > 'missing Apache httpd server packages.' % APXS) > RuntimeError: The 'apxs' command appears not to be installed or is not > executable. Please check the list of prerequisites in the documentation for > this package and install any missing Apache httpd server packages. > > Since mod_wsgi was already installed for Python2.7 how do I reinstall > mod_wsgi. Do I need to re install within virtual environment or at system > level. Any links/list of steps will be helpful. > Any help would be appreciated. > > Thanks, > Bijal > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com > <mailto:django-users+unsubscr...@googlegroups.com>. > To post to this group, send email to django-users@googlegroups.com > <mailto:django-users@googlegroups.com>. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/99d60e0c-293c-486d-9e9d-2332ca8723b6%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/99d60e0c-293c-486d-9e9d-2332ca8723b6%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c8d5cf87-ea2f-ecb4-0656-2eb57fa457d5%40djangodeployment.com. For more options, visit https://groups.google.com/d/optout.