[kforge-user] Trouble with Apache settings
tyju tiui
jckdnk111 at yahoo.com
Fri Jan 19 23:08:10 UTC 2007
Hello,
I've just setup Kforge 0.12 on a Debian box with the following:
Apache2
Python 2.4
Postgres 8
I've got all the dependencies installed.
The db init worked flawlessly.
The www build worked flawlessly.
When
I visit my webserver I get nothing, like it isn't even running, but
when I load the default vhost config that comes with Apache it runs
just fine. So I believe something is wrong with the generated vhost
config?
I am at my wits end with this. Any help / advice would be appreciated.
-------------------- My apache error log looks like this: --------------------
[Fri Jan 19 17:42:10 2007] [notice] caught SIGTERM, shutting down
[Fri Jan 19 17:42:11 2007] [notice] mod_python: Creating 20 session mutexes based on 20 max processes and 0 max threads.
[Fri Jan 19 17:42:11 2007] [notice]
Apache/2.0.55 (Ubuntu) DAV/2 SVN/1.3.1 mod_python/3.1.4 Python/2.4.3 PHP/5.1.2
mod_perl/2.0.2 Perl/v5.8.7 configured -- resuming normal operati
ons
-------------------- The kforge-test reported lots of warnings and the following errors: --------------------
======================================================================
FAIL: testGetVisitorName (kforge.apache.urlpermissiontest.ParseUrlTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/kforge/apache/urlpermissiontest.py", line 22, in testGetVisitorName
self.failUnless(outName == 'levin')
AssertionError
======================================================================
FAIL: testGetValidationErrors (kforge.django.apps.kui.views.test.manipulator.TestDomainObjectManipulator)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/kforge/django/apps/kui/views/test/manipulator.py", line 68, in testGetValidationErrors
self.failIf(errors, str(errors))
AssertionError: {'memberships': ["Select a valid choice; 'example' is not in ['administration']."]}
----------------------------------------------------------------------
Ran 154 tests in 13.023s
FAILED (failures=2, errors=76)
-------------------- When I try to manually restart Apache I get the following warnings: --------------------
Warning: DocumentRoot [/var/www/kforge/media] does not exist
Warning: DocumentRoot [/var/www/kforge/media] does not exist
Warning: DocumentRoot [/var/www/kforge/project] does not exist
Warning: DocumentRoot [/var/www/kforge/project] does not exist
[Fri Jan 19 17:30:04 2007] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
[Fri Jan 19 17:30:04 2007] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Fri Jan 19 17:30:04 2007] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
[Fri Jan 19 17:30:04 2007] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
Warning: DocumentRoot [/var/www/kforge/media] does not exist
Warning: DocumentRoot [/var/www/kforge/media] does not exist
Warning: DocumentRoot [/var/www/kforge/project] does not exist
Warning: DocumentRoot [/var/www/kforge/project] does not exist
[Fri Jan 19 17:30:06 2007] [warn] _default_ VirtualHost
overlap on port 443, the first has precedence
[Fri Jan 19 17:30:06 2007] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Fri Jan 19 17:30:06 2007] [warn] _default_ VirtualHost overlap on port 443, the first has precedence
[Fri Jan 19 17:30:06 2007] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
-------------------- The generated vhost config file looks like this: --------------------
<VirtualHost *:80>
ServerName media.deathstar
DocumentRoot /var/www/kforge/media
# Set environment
# Need to set DJANGO as used in both project (auth) and admin
SetEnv DJANGO_SETTINGS_MODULE kforge.django.settings.main
SetEnv KFORGE_SETTINGS /home/admin/apps/kforge/etc/kforge.conf
SetEnv PYTHONPATH
# Logging
ErrorLog /var/lib/kforge/log/apache.media.deathstar.error.log
CustomLog /var/lib/kforge/log/apache.media.deathstar.log combined
</VirtualHost>
<VirtualHost *:443>
ServerName media.deathstar
DocumentRoot /var/www/kforge/media
# Set environment
# Need to set DJANGO as used in both project (auth) and admin
SetEnv DJANGO_SETTINGS_MODULE kforge.django.settings.main
SetEnv KFORGE_SETTINGS /home/admin/apps/kforge/etc/kforge.conf
SetEnv PYTHONPATH
# SSL
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
SSLCertificateKeyFile /etc/apache2/ssl/apache.pem
</IfModule>
# Logging
ErrorLog /var/lib/kforge/log/apache.media.deathstar.error.log
CustomLog /var/lib/kforge/log/apache.media.deathstar.log combined
</VirtualHost>
<VirtualHost *:80>
ServerName admin.deathstar
# DEFAULT HOST STUFF
ServerAlias deathstar www.deathstar
SetEnv DJANGO_SETTINGS_MODULE kforge.django.settings.main
SetHandler python-program
PythonPath "''.split(':') + sys.path"
PythonHandler django.core.handlers.modpython
PythonDebug Off
# Set environment
# Need to set DJANGO as used in both project (auth) and admin
SetEnv DJANGO_SETTINGS_MODULE kforge.django.settings.main
SetEnv KFORGE_SETTINGS /home/admin/apps/kforge/etc/kforge.conf
SetEnv PYTHONPATH
# Logging
ErrorLog /var/lib/kforge/log/apache.admin.deathstar.error.log
CustomLog /var/lib/kforge/log/apache.admin.deathstar.log combined
</VirtualHost>
<VirtualHost *:443>
ServerName admin.deathstar
# DEFAULT HOST STUFF
ServerAlias deathstar www.deathstar
SetEnv DJANGO_SETTINGS_MODULE kforge.django.settings.main
SetHandler python-program
PythonPath "''.split(':') + sys.path"
PythonHandler django.core.handlers.modpython
PythonDebug Off
# Set environment
# Need to set DJANGO as used in both project (auth) and admin
SetEnv DJANGO_SETTINGS_MODULE kforge.django.settings.main
SetEnv KFORGE_SETTINGS /home/admin/apps/kforge/etc/kforge.conf
SetEnv PYTHONPATH
# SSL
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
SSLCertificateKeyFile /etc/apache2/ssl/apache.pem
</IfModule>
# Logging
ErrorLog /var/lib/kforge/log/apache.admin.deathstar.error.log
CustomLog /var/lib/kforge/log/apache.admin.deathstar.log combined
</VirtualHost>
<VirtualHost *:80>
ServerName project.deathstar
DocumentRoot /var/www/kforge/project
Alias /trac /usr/share/trac/htdocs
Alias /moinhtdocs /usr/share/moin/htdocs
# Set environment
# Need to set DJANGO as used in both project (auth) and admin
SetEnv DJANGO_SETTINGS_MODULE kforge.django.settings.main
SetEnv KFORGE_SETTINGS /home/admin/apps/kforge/etc/kforge.conf
SetEnv PYTHONPATH
# Logging
ErrorLog /var/lib/kforge/log/apache.project.deathstar.error.log
CustomLog /var/lib/kforge/log/apache.project.deathstar.log combined
</VirtualHost>
<VirtualHost *:443>
ServerName project.deathstar
DocumentRoot /var/www/kforge/project
Alias /trac /usr/share/trac/htdocs
Alias /moinhtdocs /usr/share/moin/htdocs
# Set environment
# Need to set DJANGO as used in both project (auth) and admin
SetEnv DJANGO_SETTINGS_MODULE kforge.django.settings.main
SetEnv KFORGE_SETTINGS /home/admin/apps/kforge/etc/kforge.conf
SetEnv PYTHONPATH
# SSL
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
SSLCertificateKeyFile /etc/apache2/ssl/apache.pem
</IfModule>
# Logging
ErrorLog /var/lib/kforge/log/apache.project.deathstar.error.log
CustomLog /var/lib/kforge/log/apache.project.deathstar.log combined
</VirtualHost>
-------------------- my kforge.conf looke like this: --------------------
[DEFAULT]
# Name of service using the KForge system.
service_name = KForge
# Path where plugin specific data will be stored
plugin_data_dir = /var/lib/kforge/plugin_data
# Path where project data will be stored
project_data_dir = /var/lib/kforge/project_data
# Domain for the KForge service.
# Should *not* include 'www.'
domain_name = deathstar
# this determines whether the admin or project view appear at the default
# web address (domain_name/ and www.domain_name/)
# options: project|admin
# see kforge.url for more details
address_scheme_default = admin
# Whether in production or development mode
# values: production (default) | development
#system_mode = production
# Name of initial role of new project member
# possible values: Visitor | Friend (default) | Developer | Administrator
member_role = Developer
# Name of initial system role of new person
# possible values: Visitor (default) | Friend | Developer | Administrator
#person_role = Visitor
# (Only used when creating a new database.)
# Name of initial role of visitor_person.
# possible values: Visitor (default) | Friend | Developer | Administrator
#visitor_role = Visitor
[logging]
# This is directory to which logging is directed
default_directory = /var/lib/kforge/log
# log file for python
log_file = %(default_directory)s/kforge.log
# level of logging information
# values (increasing verbosity): CRITICAL, ERROR, WARNING, INFO, DEBUG
level = INFO
[db]
# Configuration of the KForge backend database
# Type of database (postgres, mysql etc)
# This follows the same naming convention as sqlobject
type = postgres
# Domain name of the server on which the database is hosted
host = localhost
# Name of database
name = kforge
# Name of user for database
user = kforge_user
# Password for user of the database
password = kforge2death
# create database command:
# * shell command that will create database
# * only used in testing and certain admin tasks
# this example is for postgres
create_command = createdb -h %(host)s -U %(user)s %(name)s
# delete (drop) database command
# * shell command that will drop database command
# * see comments for create database command
delete_command = dropdb -h %(host)s -U %(user)s %(name)s
[www]
# Apache virtual-hosts are used and this is the IP address to listen on.
# May be set to '*'
ip_address = *
# Port numbers for normal and secure HTTP.
port_http = 80
port_https = 443
# File path for auto-generated apache configuration
apache_config_file = /home/admin/apps/kforge/etc/%(domain_name)s.conf
ssl_certificate_file = /etc/apache2/ssl/apache.pem
ssl_certificate_key_file = /etc/apache2/ssl/apache.pem
# Base path for KForge web files
# Set on install to system installation www directory
document_root = /var/www/kforge
# Host name for media server (CSS and image files)
media_host = media.%(domain_name)s
# Port number for media server (CSS and image files)
media_port = %(port_http)s
# File path for media files
media_root = %(document_root)s/media
# Shell command to reload apache when config is changed by KForge.
reload_apache = sudo /etc/init.d/apache2 reload
# Do not reload apache when config is changed by KForge
# empty = False, non-empty = True
no_reload_apache =
# Apache configuration fragment to add at end of project virtual host
# project_vhost_fragment =
[django]
# Django templates to use for web interface
# Set on install to system installation templates
templates_dir = /home/admin/apps/kforge/var/django/templates/kui
# Secret key (for generating session keys)
# - make yourself a new secret key
secret_key = f*(d3d45zetsb3)$&2h5 at lua()yc+kfn4w^dmrf_j1i(6jjkq
[captcha]
# Font used for captchas
# font_path = /path/to/mono/FreeMono.ttf
# font_size = 48
# Enable captchas (otherwise diabled by default)
# - uncomment (or set any value) to enable captchas
#enable = 1
## ********************************************************************
## Plugins
## ********************************************************************
[moin]
# where moin system data is installed (htdocs etc)
system_path = /usr/share/moin
[trac]
# path to trac templates
templates_path = /usr/share/trac/templates
# path to htdocs files
htdocs_path = /usr/share/trac/htdocs
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/kforge-user/attachments/20070119/574811ff/attachment-0001.html>
More information about the kforge-user
mailing list