mkdir /home/first/www
mkdir /home/first/logs/httpd
mkdir /home/first/sites
ServerName simple.com
DocumentRoot /home/first/www/simple.com
SuexecUserGroup first first
CustomLog /home/first/logs/httpd/simple.com.access.log combined
ErrorLog /home/first/logs/httpd/simple.com.error.log
ServerAlias www.simple.com
ServerAdmin apochekutov@gmail.com
AddDefaultCharset utf8
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE simple.settings
PythonDebug Off
PythonPath "['/home/first/sites'] + sys.path"
SetHandler None
# set chmod (todo: minimize right)
cd /home/first
chmod -R 755 www
#http://www.briggs.net.nz/log/2007/04/20/mod_python-and-python25/
# http://codespatter.com/2008/10/15/setting-up-apache2-mod_python-mysql-and-django-on-debian-lenny-or-ubuntu-hardy-heron/
http://209.85.129.132/search?q=cache:zIulRm3UHY0J:d.hatena.ne.jp/tanakahisateru/20080721/1216575819+apache+centos+mod_python+python2.5&hl=ru&ct=clnk&cd=3&gl=ru&client=firefox-a
Комментариев нет:
Отправить комментарий