I am public blog

Hello word I am Public Blog

WSGI를 이용하여 django를 아파치 웹 서버에 배포 시 계속해서 Internal Server Error가 발생했는데

httpd 로그를 보니

“Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured — resuming normal operations”와 같이 CentOS를 설치하면 기본으로 설치되어 있는 Python 2.7.5로 구성되어 있어 내부 오류가 발생했음.

현재 설치한 Python 버전이 3.6.12인데 해당 버전에 맞는 wsgi를 아래 페이지에서 찾음.

https://centos.pkgs.org/7/ius-archive-x86_64/python36u-mod_wsgi-4.5.21-1.ius.el7.x86_64.rpm.html

설치 방법은 다음과 같다.

sudo yum install -y https://repo.ius.io/ius-release-el7.rpm
sudo yum --enablerepo=ius-archive install python36u-mod_wsgi

아… 이 문제 찾는데 1주일이 소비되었다…

Leave a comment

이메일 주소는 공개되지 않습니다. 필수 항목은 *(으)로 표시합니다