[apache2] wsgi install

최승언·2022년 10월 14일
0

apache2

목록 보기
2/5

에러코드
[error] AttributeError: 'module' object has no attribute 'lru_cache'
[error] Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a module not included in the server configuration

django와 apache2 웹서버를 wsgi를 미들웨어로 하여 연동시킬 경우 발생할 수 있다. 이건 서버에 mod_wsgi를 설치하지 않아서 생긴 문제일 것이다.

sudo apt-get install  libapache2-mod-wsgi

# or 

sudo apt-get install libapache2-mod-wsgi-py3
profile
작업하다가 막힌부분을 기록하는 곳.

0개의 댓글