AH00526: Syntax error on line 360 of /etc/httpd/conf/httpd.conf: Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a module not included in the server configuration

0

I don't know what is wrong with ec2 amazon linux, whenever i try to download any package it tells me Unable to find a match: mod_wsgi. In this case i am unable to download mod_wsgi package

AV
asked 9 months ago252 views
1 Answer
0

Hello.

Am I correct in my understanding that you are using Amazon Linux 2023?
Installation is done with the following command.

sudo su -
dnf install httpd -y
dnf install httpd-devel -y
dnf install python3-pip -y
dnf install python3-devel -y
pip install mod_wsgi

Once installed, add the following settings to the Apache configuration file.

LoadModule wsgi_module /usr/local/lib64/python3.9/site-packages/mod_wsgi/server/mod_wsgi-py39.cpython-39-x86_64-linux-gnu.so
profile picture
EXPERT
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions