[Fixed]-Error building/installing mod_wsgi on AWS elasticbeanstalk for Django deployment

1👍

Sorted it.

apsx is supplied by the httpd-devel package. Use eb ssh to connect then

yum list installed|grep httpd

to see what version of httpd-devel matches the environment. Install with

sudo yum install httpd24-devel

and then

sudo /opt/python/run/venv/bin/pip install -r /opt/python/ondeck/app/requirements.txt

to check that it’s fixed. If that works then create or edit a (local) file

.ebextensions/01_packages.config

or similar to add that as part of the deployment:

packages:
    yum:
        httpd24-devel: []

Leave a comment