What are the steps for installing all the dependencies needed to get python django working with Apache2 on a Redhat4 system?
What are the steps for installing all the dependencies needed to get python django
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check if you have the Apache apxs module, which is needed for installing other modules (sudo find / -name “apxs”).
If no apxs module exists then:
For python’s django module you need to install the python developer package, and its dependencies–in my case I ran these 2 install commands:
Installing and configuring dgango to talk to apache is a bit complex. You need to install the mod_wsgi python module and edit/configure the apache configuration file and the wsgi.py files (read this).
Add this line in the “LoadModule” part of your apache config file (ie. something named like these:
www.vhost.conf,httpd.conf, etc)Restart apache so it recoginizes your new changes:
Redhat Docs for installing Apache modules