Hello,
Trying to move my Django 1.3 application from development to
production in Apache python-wsgi environment.
Receving the following errors in the Apache logs:
[Mon Jul 25 10:35:29 2011] [notice] caught SIGTERM, shutting down
[Mon Jul 25 10:35:30 2011] [notice] mod_python: Creating 8 session
mutexes based on 6 max processes and 25 max threads.
[Mon Jul 25 10:35:30 2011] [notice] mod_python: using mutex_directory /
tmp
[Mon Jul 25 10:35:30 2011] [notice] Apache/2.2.14 (Ubuntu) mod_python/
3.3.1 Python/2.6.5 mod_wsgi/2.8 configured -- resuming normal
operations
*********************************************************
My apache httpd.conf:
<VirtualHost
129.24.36.113:80>
Alias /media/ /home/wilbur/IOM/site_media/
Alias /images/ /home/wilbur/IOM/site_media/images/
ServerName
meteorite.unm.edu
ServerAlias
meteorite.unm.edu
ServerAdmin
mete...@unm.edu
ErrorLog logs/metcat_errors.log
# DocumentRoot /home/wilbur/IOM
# <Directory /home/wilbur/IOM>
# Order allow,deny
# Allow from all
# </Directory>
WSGIScriptAlias / /home/wilbur/IOM/apache/django.wsgi
# <Directory /home/wilbur/IOM/apache>
# Order allow,deny
# Allow from all
# </Directory>
</VirtualHost>
************************************************************************
And my django.wsgi file:
import os
import sys
path = '/home/wilbur/IOM'
path1 = '/home/wilbur'
if path not in sys.path:
sys.path.append(path)
sys.path.append(path1)
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
Any guidance would be much appreciated.....
Thanks, Bill