Django+apache Configuration in Linux

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.