2017-03-10 7 views
0

질문에 따라 VPS에 장고를 배포하려하지만 오류가 계속 나타납니다. "올바르지 않습니다. WSGI 데몬 프로세스 정의에 대한 옵션 "을 참조하십시오. 나는 mod_wsgi 웹 사이트에 가서 데몬 배포를위한 예제 코드를 살펴 보았지만 도움이되지 않는다. 장고 웹 사이트를 사용해 보았지만 지시 사항이 내 문제와 관련이 없다. 오류 로그는 또한 코드의 어느 부분에 구문 오류가 있는지 지정하지 않기 때문에 아무 도움이되지 않습니다. 여기 VPS에서 장고를 실행하려고하는데 "WSGI 데몬 프로세스 정의에 잘못된 옵션이 있습니다"

Syntax error on line 34 of /etc/apache2/sites-enabled/example.com: 
Invalid option to WSGI daemon process definition. 
Action 'restart' failed. 
The Apache error log may have more information. 

는 몇 가지 관련 버전 정보입니다 :

Apache Version: 2.2.22 
Ubuntu Version: 12.02 
Python Version: 2.7.3 

내가 추가해야 다른 것이 있다면, 내 아파치 서버를 다시 시작하려고하면

여기에 내가 오류 메시지입니다 저에게 알려주세요. 나는 또한 가상 환경에서 Python과 Django를 실행하고있다. 여기

은 코멘트를하지 않고 내 apach2.conf 파일입니다

LockFile ${APACHE_LOCK_DIR}/accept.lock 

PidFile ${APACHE_PID_FILE} 

Timeout 300 

KeepAlive On 

MaxKeepAliveRequests 100 

KeepAliveTimeout 5 

<IfModule mpm_prefork_module> 
StartServers  1 
MinSpareServers 1 
MaxSpareServers 5 
MaxClients  10 
    MaxRequestsPerChild 0 
</IfModule> 

<IfModule mpm_worker_module> 
StartServers  1 
MinSpareThreads 1 
MaxSpareThreads 4 
    ThreadLimit   64 
    ThreadsPerChild  25 
MaxClients  10 
    MaxRequestsPerChild 0 
</IfModule> 

<IfModule mpm_event_module> 
StartServers  1 
MinSpareThreads 1 
MaxSpareThreads 4 
    ThreadLimit   64 
    ThreadsPerChild  25 
MaxClients  10 
    MaxRequestsPerChild 0 
</IfModule> 

User www-data 
Group www-data 

AccessFileName .htaccess 

<Files ~ "^\.ht"> 
    Order allow,deny 
    Deny from all 
    Satisfy all 
</Files> 


DefaultType None 


HostnameLookups Off 

ErrorLog ${APACHE_LOG_DIR}/error.log 

LogLevel info 

Include mods-enabled/*.load 
Include mods-enabled/*.conf 

Include httpd.conf 

Include ports.conf 

LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined 
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined 
LogFormat "%h %l %u %t \"%r\" %>s %O" common 
LogFormat "%{Referer}i -> %U" referer 
LogFormat "%{User-agent}i" agent 

Include conf.d/ 

Include sites-enabled/ 

그리고 여기 내 가상 호스트 파일 (도메인 난독)입니다 :

[Fri Mar 10 18:30:20 2017] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations 
[Fri Mar 10 18:30:20 2017] [info] Server built: Jul 15 2016 15:32:34 
[Fri Mar 10 18:30:20 2017] [debug] prefork.c(1023): AcceptMutex: sysvsem (default: sysvsem) 
[Fri Mar 10 18:30:20 2017] [info] mod_wsgi (pid=14581): Initializing Python. 
[Fri Mar 10 18:30:20 2017] [info] mod_wsgi (pid=14581`enter code here`): Attach interpreter ''. 
[Fri Mar 10 18:32:43 2017] [error] [client 107.142.156.166] File does not exist: /var/www/favicon.ico, referer: http://example.com/ 
[Fri Mar 10 18:32:43 2017] [debug] mod_deflate.c(700): [client 107.142.156.166] Zlib: Compressed 302 to 229 : URL /favicon.ico, referer: http://example.com/ 
[Fri Mar 10 18:32:44 2017] [info] mod_wsgi (pid=14585): Initializing Python. 
[Fri Mar 10 18:32:44 2017] [info] mod_wsgi (pid=14585): Attach interpreter ''. 
[Fri Mar 10 18:33:02 2017] [info] mod_wsgi (pid=14585): Destroying interpreters. 
[Fri Mar 10 18:33:02 2017] [info] mod_wsgi (pid=14585): Cleanup interpreter ''. 
[Fri Mar 10 18:33:02 2017] [info] mod_wsgi (pid=14581): Destroying interpreters. 
[Fri Mar 10 18:33:02 2017] [info] mod_wsgi (pid=14581): Cleanup interpreter ''. 
[Fri Mar 10 18:33:02 2017] [info] mod_wsgi (pid=14581): Terminating Python. 
[Fri Mar 10 18:33:02 2017] [info] mod_wsgi (pid=14585): Terminating Python. 
[Fri Mar 10 18:33:02 2017] [info] mod_wsgi (pid=14585): Python has shutdown. 
[Fri Mar 10 18:33:02 2017] [info] mod_wsgi (pid=14581): Python has shutdown. 
[Fri Mar 10 18:33:02 2017] [notice] SIGHUP received. Attempting to restart 
[Fri Mar 10 18:33:02 2017] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations 
[Fri Mar 10 18:33:02 2017] [info] Server built: Jul 15 2016 15:32:34 
[Fri Mar 10 18:33:02 2017] [debug] prefork.c(1023): AcceptMutex: sysvsem (default: sysvsem) 
[Fri Mar 10 18:33:02 2017] [info] mod_wsgi (pid=14590): Initializing Python. 
[Fri Mar 10 18:33:02 2017] [info] mod_wsgi (pid=14590): Attach interpreter ''. 
[Fri Mar 10 18:35:20 2017] [info] mod_wsgi (pid=14590): Destroying interpreters. 
[Fri Mar 10 18:35:20 2017] [info] mod_wsgi (pid=14590): Cleanup interpreter ''. 
[Fri Mar 10 18:35:20 2017] [info] mod_wsgi (pid=14590): Terminating Python. 
[Fri Mar 10 18:35:20 2017] [info] mod_wsgi (pid=14590): Python has shutdown. 
[Fri Mar 10 18:35:20 2017] [info] removed PID file /var/run/apache2.pid (pid=14580) 
[Fri Mar 10 18:35:20 2017] [notice] caught SIGTERM, shutting down 
[Fri Mar 10 18:39:40 2017] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations 
[Fri Mar 10 18:39:40 2017] [info] Server built: Jul 15 2016 15:32:34 
[Fri Mar 10 18:39:40 2017] [debug] prefork.c(1023): AcceptMutex: sysvsem (default: sysvsem) 
[Fri Mar 10 18:39:40 2017] [info] mod_wsgi (pid=14735): Initializing Python. 
[Fri Mar 10 18:39:40 2017] [info] mod_wsgi (pid=14735): Attach interpreter ''. 
[Fri Mar 10 18:39:54 2017] [info] mod_wsgi (pid=14735): Create interpreter 'www.example.com|'. 
[Fri Mar 10 18:39:54 2017] [info] [client 218.30.103.18] mod_wsgi (pid=14735, process='', application='www.example.com|'): Loading WSGI script '/var/www/mysiteenv/mysite/wsgi.py'. 
[Fri Mar 10 18:39:54 2017] [error] [client 218.30.103.18] mod_wsgi (pid=14735): Target WSGI script '/var/www/mysiteenv/mysite/wsgi.py' cannot be loaded as Python module. 
[Fri Mar 10 18:39:54 2017] [error] [client 218.30.103.18] mod_wsgi (pid=14735): Exception occurred processing WSGI script '/var/www/mysiteenv/mysite/wsgi.py'. 
[Fri Mar 10 18:39:54 2017] [error] [client 218.30.103.18] Traceback (most recent call last): 
[Fri Mar 10 18:39:54 2017] [error] [client 218.30.103.18] File "/var/www/mysiteenv/mysite/wsgi.py", line 12, in <module> 
[Fri Mar 10 18:39:54 2017] [error] [client 218.30.103.18]  from django.core.wsgi import get_wsgi_application 
[Fri Mar 10 18:39:54 2017] [error] [client 218.30.103.18] ImportError: No module named django.core.wsgi 
[Fri Mar 10 18:39:54 2017] [debug] mod_deflate.c(700): [client 218.30.103.18] Zlib: Compressed 627 to 382 : URL/
[Fri Mar 10 18:40:56 2017] [info] [client 146.120.166.33] mod_wsgi (pid=14735, process='', application='www.example.com|'): Loading WSGI script '/var/www/mysiteenv/mysite/wsgi.py'. 
[Fri Mar 10 18:40:56 2017] [error] [client 146.120.166.33] mod_wsgi (pid=14735): Target WSGI script '/var/www/mysiteenv/mysite/wsgi.py' cannot be loaded as Python module. 
[Fri Mar 10 18:40:56 2017] [error] [client 146.120.166.33] mod_wsgi (pid=14735): Exception occurred processing WSGI script '/var/www/mysiteenv/mysite/wsgi.py'. 
[Fri Mar 10 18:40:56 2017] [error] [client 146.120.166.33] Traceback (most recent call last): 
[Fri Mar 10 18:40:56 2017] [error] [client 146.120.166.33] File "/var/www/mysiteenv/mysite/wsgi.py", line 12, in <module> 
[Fri Mar 10 18:40:56 2017] [error] [client 146.120.166.33]  from django.core.wsgi import get_wsgi_application 
[Fri Mar 10 18:40:56 2017] [error] [client 146.120.166.33] ImportError: No module named django.core.wsgi 
[Fri Mar 10 18:40:57 2017] [info] [client 146.120.158.107] mod_wsgi (pid=14735, process='', application='www.example.com|'): Loading WSGI script '/var/www/mysiteenv/mysite/wsgi.py'. 
[Fri Mar 10 18:40:57 2017] [error] [client 146.120.158.107] mod_wsgi (pid=14735): Target WSGI script '/var/www/mysiteenv/mysite/wsgi.py' cannot be loaded as Python module. 
[Fri Mar 10 18:40:57 2017] [error] [client 146.120.158.107] mod_wsgi (pid=14735): Exception occurred processing WSGI script '/var/www/mysiteenv/mysite/wsgi.py'. 
[Fri Mar 10 18:40:57 2017] [error] [client 146.120.158.107] Traceback (most recent call last): 
[Fri Mar 10 18:40:57 2017] [error] [client 146.120.158.107] File "/var/www/mysiteenv/mysite/wsgi.py", line 12, in <module> 
[Fri Mar 10 18:40:57 2017] [error] [client 146.120.158.107]  from django.core.wsgi import get_wsgi_application 
[Fri Mar 10 18:40:57 2017] [error] [client 146.120.158.107] ImportError: No module named django.core.wsgi 
[Fri Mar 10 18:41:38 2017] [info] mod_wsgi (pid=14735): Destroying interpreters. 
[Fri Mar 10 18:41:38 2017] [info] mod_wsgi (pid=14735): Destroy interpreter 'www.example.com|'. 
[Fri Mar 10 18:41:38 2017] [info] mod_wsgi (pid=14735): Cleanup interpreter ''. 
[Fri Mar 10 18:41:38 2017] [info] mod_wsgi (pid=14735): Terminating Python. 
[Fri Mar 10 18:41:38 2017] [info] mod_wsgi (pid=14735): Python has shutdown. 
[Fri Mar 10 18:41:38 2017] [info] removed PID file /var/run/apache2.pid (pid=14732) 
[Fri Mar 10 18:41:38 2017] [notice] caught SIGTERM, shutting down 
[Fri Mar 10 18:41:39 2017] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations 
[Fri Mar 10 18:41:39 2017] [info] Server built: Jul 15 2016 15:32:34 
[Fri Mar 10 18:41:39 2017] [debug] prefork.c(1023): AcceptMutex: sysvsem (default: sysvsem) 
[Fri Mar 10 18:41:39 2017] [info] mod_wsgi (pid=14801): Python home /var/www/mysiteenv. 
[Fri Mar 10 18:41:39 2017] [info] mod_wsgi (pid=14801): Initializing Python. 
[Fri Mar 10 18:41:39 2017] [info] mod_wsgi (pid=14801): Attach interpreter ''. 
[Fri Mar 10 18:41:39 2017] [info] mod_wsgi (pid=14801): Adding '/var/www/mysiteenv' to path. 
[Fri Mar 10 18:42:00 2017] [info] mod_wsgi (pid=14801): Destroying interpreters. 
[Fri Mar 10 18:42:00 2017] [info] mod_wsgi (pid=14801): Cleanup interpreter ''. 
[Fri Mar 10 18:42:00 2017] [info] mod_wsgi (pid=14801): Terminating Python. 
[Fri Mar 10 18:42:01 2017] [info] mod_wsgi (pid=14801): Python has shutdown. 
[Fri Mar 10 18:42:01 2017] [info] removed PID file /var/run/apache2.pid (pid=14798) 
[Fri Mar 10 18:42:01 2017] [notice] caught SIGTERM, shutting down 
[Fri Mar 10 18:42:10 2017] [notice] Apache/2.2.22 (Ubuntu) mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations 
[Fri Mar 10 18:42:10 2017] [info] Server built: Jul 15 2016 15:32:34 
[Fri Mar 10 18:42:10 2017] [debug] prefork.c(1023): AcceptMutex: sysvsem (default: sysvsem) 
[Fri Mar 10 18:42:10 2017] [info] mod_wsgi (pid=14840): Python home /var/www/mysiteenv. 
[Fri Mar 10 18:42:10 2017] [info] mod_wsgi (pid=14840): Initializing Python. 
[Fri Mar 10 18:42:10 2017] [info] mod_wsgi (pid=14840): Attach interpreter ''. 
[Fri Mar 10 18:42:10 2017] [info] mod_wsgi (pid=14840): Adding '/var/www/mysiteenv' to path. 
[Fri Mar 10 18:43:05 2017] [info] mod_wsgi (pid=14840): Create interpreter 'www.example.com|'. 
[Fri Mar 10 18:43:05 2017] [info] mod_wsgi (pid=14840): Adding '/var/www/mysiteenv' to path. 
[Fri Mar 10 18:43:05 2017] [info] [client 141.8.143.220] mod_wsgi (pid=14840, process='', application='www.example.com|'): Loading WSGI script '/var/www/mysiteenv/mysite/wsgi.py'. 
[Fri Mar 10 18:43:05 2017] [info] mod_wsgi (pid=14870): Python home /var/www/mysiteenv. 
[Fri Mar 10 18:43:05 2017] [info] mod_wsgi (pid=14870): Initializing Python. 
[Fri Mar 10 18:43:05 2017] [info] mod_wsgi (pid=14870): Attach interpreter ''. 
[Fri Mar 10 18:43:05 2017] [info] mod_wsgi (pid=14870): Adding '/var/www/mysiteenv' to path. 
[Fri Mar 10 18:43:05 2017] [error] Invalid HTTP_HOST header: 'www.ctcindia.co.in'. You may need to add u'www.ctcindia.co.in' to ALLOWED_HOSTS. 
[Fri Mar 10 18:43:09 2017] [info] mod_wsgi (pid=14870): Create interpreter 'www.example.com|'. 
[Fri Mar 10 18:43:09 2017] [info] mod_wsgi (pid=14870): Adding '/var/www/mysiteenv' to path. 
[Fri Mar 10 18:43:09 2017] [info] [client 141.8.143.141] mod_wsgi (pid=14870, process='', application='www.example.com|'): Loading WSGI script '/var/www/mysiteenv/mysite/wsgi.py'. 
[Fri Mar 10 18:43:10 2017] [error] Invalid HTTP_HOST header: 'www.ctcindia.co.in'. You may need to add u'www.ctcindia.co.in' to ALLOWED_HOSTS. 
[Fri Mar 10 18:43:10 2017] [debug] mod_deflate.c(700): [client 141.8.143.141] Zlib: Compressed 57817 to 9325 : URL/
[Fri Mar 10 18:46:02 2017] [error] Invalid HTTP_HOST header: 'www.unitedengitech.com'. You may need to add u'www.unitedengitech.com' to ALLOWED_HOSTS. 
[Fri Mar 10 18:46:06 2017] [error] Invalid HTTP_HOST header: 'www.unitedengitech.com'. You may need to add u'www.unitedengitech.com' to ALLOWED_HOSTS. 
[Fri Mar 10 18:46:06 2017] [debug] mod_deflate.c(700): [client 141.8.143.141] Zlib: Compressed 58028 to 9342 : URL /favicon.ico 
[Fri Mar 10 18:49:31 2017] [error] Invalid HTTP_HOST header: 'www.arcinstruments.com'. You may need to add u'www.arcinstruments.com' to ALLOWED_HOSTS. 
[Fri Mar 10 18:49:31 2017] [debug] mod_deflate.c(700): [client 66.249.66.181] Zlib: Compressed 57902 to 9325 : URL /robots.txt 
[Fri Mar 10 18:49:31 2017] [error] Invalid HTTP_HOST header: 'www.arcinstruments.com'. You may need to add u'www.arcinstruments.com' to ALLOWED_HOSTS. 
[Fri Mar 10 18:49:31 2017] [debug] mod_deflate.c(700): [client 66.249.66.175] Zlib: Compressed 58218 to 9367 : URL /pro/gold_purity.aspx 
[Fri Mar 10 19:01:44 2017] [error] Invalid HTTP_HOST header: 'arcinstruments.com'. You may need to add u'arcinstruments.com' to ALLOWED_HOSTS. 
[Fri Mar 10 19:01:44 2017] [debug] mod_deflate.c(700): [client 107.142.156.166] Zlib: Compressed 58204 to 9420 : URL/
[Fri Mar 10 19:01:45 2017] [error] Invalid HTTP_HOST header: 'arcinstruments.com'. You may need to add u'arcinstruments.com' to ALLOWED_HOSTS. 
[Fri Mar 10 19:01:45 2017] [debug] mod_deflate.c(700): [client 107.142.156.166] Zlib: Compressed 58308 to 9419 : URL /favicon.ico, referer: http://arcinstruments.com/ 
[Fri Mar 10 19:06:49 2017] [error] Invalid HTTP_HOST header: 'arcinstruments.com'. You may need to add u'arcinstruments.com' to ALLOWED_HOSTS. 
[Fri Mar 10 19:06:49 2017] [debug] mod_deflate.c(700): [client 107.142.156.166] Zlib: Compressed 58204 to 9416 : URL/
[Fri Mar 10 19:06:49 2017] [error] Invalid HTTP_HOST header: 'arcinstruments.com'. You may need to add u'arcinstruments.com' to ALLOWED_HOSTS. 
[Fri Mar 10 19:06:49 2017] [debug] mod_deflate.c(700): [client 107.142.156.166] Zlib: Compressed 58308 to 9414 : URL /favicon.ico, referer: http://arcinstruments.com/ 
[Fri Mar 10 19:07:29 2017] [error] Invalid HTTP_HOST header: 'arcinstruments.com'. You may need to add u'arcinstruments.com' to ALLOWED_HOSTS. 
[Fri Mar 10 19:07:34 2017] [error] Invalid HTTP_HOST header: 'arcinstruments.com'. You may need to add u'arcinstruments.com' to ALLOWED_HOSTS. 
[Fri Mar 10 19:07:34 2017] [debug] mod_deflate.c(700): [client 141.8.143.212] Zlib: Compressed 57817 to 9329 : URL/
[Fri Mar 10 19:08:17 2017] [error] Invalid HTTP_HOST header: 'www.unitedengitech.com'. You may need to add u'www.unitedengitech.com' to ALLOWED_HOSTS. 
[Fri Mar 10 19:08:17 2017] [debug] mod_deflate.c(700): [client 157.55.39.100] Zlib: Compressed 58407 to 9451 : URL /client.php 
[Fri Mar 10 19:14:25 2017] [info] mod_wsgi (pid=14870): Destroying interpreters. 
[Fri Mar 10 19:14:25 2017] [info] mod_wsgi (pid=14870): Destroy interpreter 'www.example.com|'. 
[Fri Mar 10 19:14:25 2017] [info] mod_wsgi (pid=14840): Destroying interpreters. 
[Fri Mar 10 19:14:25 2017] [info] mod_wsgi (pid=14840): Destroy interpreter 'www.example.com|'. 
[Fri Mar 10 19:14:25 2017] [info] mod_wsgi (pid=14840): Cleanup interpreter ''. 
[Fri Mar 10 19:14:25 2017] [info] mod_wsgi (pid=14870): Cleanup interpreter ''. 
[Fri Mar 10 19:14:25 2017] [info] mod_wsgi (pid=14870): Terminating Python. 
[Fri Mar 10 19:14:25 2017] [info] mod_wsgi (pid=14840): Terminating Python. 
[Fri Mar 10 19:14:25 2017] [info] mod_wsgi (pid=14840): Python has shutdown. 
[Fri Mar 10 19:14:25 2017] [info] mod_wsgi (pid=14870): Python has shutdown. 
[Fri Mar 10 19:14:26 2017] [info] removed PID file /var/run/apache2.pid (pid=14839) 
[Fri Mar 10 19:14:26 2017] [notice] caught SIGTERM, shutting down 
: 여기
<VirtualHost *:80> 
     ServerAdmin [email protected] 
     ServerName www.example.com 
     ServerAlias example.com 

     DocumentRoot /var/www 
     <Directory /> 
       Options FollowSymLinks 
       AllowOverride None 
     </Directory> 
     <Directory /var/www/> 
       Options Indexes FollowSymLinks MultiViews 
       AllowOverride None 
       Order allow,deny 
       allow from all 
     </Directory> 

     Alias /robots.txt /var/www/mysiteenv/static/robots.txt 
     Alias /favicon.ico /var/www/mysiteenv/static/favicon.ico 

     Alias /media/ /var/www/mysiteenv/media 
     Alias /static/ /var/www/mysiteenv/static 

     <Directory /var/www/mysiteenv/static> 
       Order allow,deny 
       Allow from all 
     </Directory> 

     <Directory /var/www/mysiteenv/media> 
       Order deny,allow 
       Allow from all 
     </Directory> 

     WSGIDaemonProcess example.com python-home=/var/www/mysiteenv python-path=/var/www 
     WSGIProcessGroup example.com 
     WSGIScriptAlias//var/www/mysiteenv/mysite/wsgi.py 

     <Directory /var/www/mysiteenv/mysite> 
       <Files wsgi.py> 
         Order allow,deny 
         Allow from all 
       </Files> 
     </Directory> 

     <Directory /var/www/mysiteenv> 
       Order deny,allow 
       Allow from all 
     </Directory> 

     ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ 
     <Directory "/usr/lib/cgi-bin"> 
       AllowOverride None 
       Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch 
       Order allow,deny 
       Allow from all 
     </Directory> 

     ErrorLog ${APACHE_LOG_DIR}/error.log 

     # Possible values include: debug, info, notice, warn, error, crit, 
     # alert, emerg. 
     LogLevel debug 

     CustomLog ${APACHE_LOG_DIR}/access.log combined 

    Alias /doc/ "/usr/share/doc/" 
    <Directory "/usr/share/doc/"> 
     Options Indexes MultiViews FollowSymLinks 
     AllowOverride None 
     Order deny,allow 
     Deny from all 
     Allow from 127.0.0.0/255.0.0.0 ::1/128 
    </Directory> 

</VirtualHost> 

내 오류 로그입니다

또한 다른 도메인이 어디서 왔는지 전혀 알 수 없습니다. 도움 주셔서 감사합니다. 필요한 정보가 더 있으면 알려 주시고 내 글을 수정 해 드리겠습니다. 나는 이것을 몇 주 동안 고치려고 노력해 왔고 나는 지혜로 끝나고있다.

답변

3

mod_wsgi 3.3을 사용하고 있습니다. 그것은 50 세 이상이며 5 세 이상입니다. 이전 버전을 사용해서는 안됩니다. 지원되지 않으며 사용 된 운영 체제 패키지가 패치되었는지 여부에 따라 잠재적 인 보안 취약점이있을 수 있습니다.

어떤 이유로 업그레이드 할 수없는 경우, 변경 시도 :

WSGIDaemonProcess example.com python-home=/var/www/mysiteenv python-path=/var/www 

에 :

WSGIDaemonProcess example.com python-path=/var/www:/var/www/mysiteenv/lib/python2.7/site-packages 
+0

너무 감사합니다! 그것이 마침내 아파치 서버가 제대로 다시로드되고, 또한 sudo를 실행하면 apt-get install libapache2-mod-wsgi가 최신 버전이므로 이미 업데이트하는 방법을 모르겠습니다. 또한, 이제 아파치 서버가 다시로드되지만, 사이트 방문시 내부 서버 오류 500이 발생하는 경우이를 수정하는 방법을 알고 있습니까? 죄송합니다 범위 밖의 경우 귀하의 도움을 주셔서 감사합니다 :-) –

+0

mod_wsgi 3.3 함께 붙어 있다면, 아주 오래된 운영 체제 버전을 사용하고 있습니다. 이전 운영 체제 버전은 사용하지 않아야합니다. 500 오류의 경우 Apache 오류 로그를 확인하십시오. 또한 Django를 설정하여 내부 예외에 대한 세부 정보를 기록하거나 Django 설정에서 일시적으로''DEBUG = True''를 활성화하여 오류가 다시 브라우저로 발생합니다. –