Configure APAHCE to access the Django code via MOD_WSGI, which is eventually passed through the release notes:
apache/2.0.63 (Unix) DAV/2 mod_wsgi/3.5 python/2.6.6
Here's a twists of the wrong experience:
1, first Apache and Python version, the installation process is relatively simple, began to choose to install Mod_wsgi 4.4, an error occurred
Query to know to install the Python development package, Python-devel, through the Yum install Python-devel, there are errors:
Then uninstall the previous development package, download the Python-devel RPM package installation, continue the error:
This package version obviously has a problem, can Python version is really 2.6.6, may be a minor version of the problem, but the small version does not know how to check??? Have to know the students can leave a message, thank you ~ ~
2, re-install Yum Python-devel, considering the problem may be mod_wsgi, so a lower version of 3.5. Haha, this time, but warning still, I selectively ignored
3. Open Browser Access Internal error
View log,apache/2.0.63 (Unix) DAV/2 mod_wsgi/3.5 python/2.6.6 configured--Resuming normal operations
Feel may be virtualhost configuration problem, but really can not find the problem, is a toss
No previous location tag, plus OK after
Note, the essential reason:
Finally, you have to modify the log file permissions
Summarize:
1. Mod_wsgi version
2. Location label
3. log file permissions
Django+apache Configuration in Linux