apxs binary missing for apache ( CentOS 6)

‘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.

To solve the above error , you need to install http-devel package :
# yum install httpd-devel

mod_wsgi for python3.4 and django >=1.7

if you are going to use python3.4 , The default version of mod_wsgi in apache is not going to work and you may get errors as following :

TEST_SETTING_RENAMES_REVERSE = {v: k for k, v in TEST_SETTING_RENAMES.items()}

This error is occuring because python3.4 does not support default version of mod_wsgi , So the fix is to re-compile/install compatible version.

Fixing the error :

Requirments –
– Python 3.4 installed with proper paths
– Apache devel install ( yum install httpd-devel )
>> if this is not installed , you will get error like : apxs binary missing

Installing new version on mod_wsgi –

# pip3.4 install mod_wsgi

Loading new mod_wsgi in apache :

# mod_wsgi-express install-module
>> This command will give you required statements you need to put in vhost config and restart your apache.
>> Please make sure you unload/de-active mod_python and mod_wsgi (old)