|
From: Martin F. <ma...@ne...> - 2008-09-26 23:55:49
|
Hopefully this will help some people setting up Connotea.
On our development server we have several instances of Connotea Code
running on the standard single vendor installation of Apache. I've
pulled out the configuration for codename "unstable", which is one of
these instances, which I've documented below. (It is named unstable to
remind everyone that we are allowed to break it, but it starts fine.) So
several other instances are omitted from the Apache configuration, and
there are more symlinks, and I've modified a couple things for privacy,
etc., but if this were all there it should run the first instance.
In /etc/httpd/conf.d/connotea.conf:
<VirtualHost _default_:80>
DocumentRoot /var/www/html
PerlOptions +Parent
PerlSwitches -I/var/www/perl/unstable
AddOutputFilterByType DEFLATE text/html text/xml text/css
# development branch follows:
PerlModule Bibliotech::Apache
PerlModule Bibliotech::AuthCookie
<Location /unstable>
SetHandler perl-script
PerlHandler Bibliotech::Apache
PerlAuthenHandler Bibliotech::AuthCookie::authen_handler
AuthName Bibliotech
AuthType basic
require valid-user
#ErrorDocument 503 /unstable/paused.html
#ErrorDocument 503 /unstable/unavailable.html
ErrorDocument 503 /unstable/readonly.html
</Location>
</VirtualHost>
(This is setup in a VirtualHost... I'm not certain that this is a
requirement - is that the part people are having problems with?)
In /var/www/perl:
Symlink unstable -> /var/local/project/work/unstable
In /var/www/html:
Symlink unstable -> ../perl/unstable/site/default
In /var/local/project/work/unstable:
(Bibliotech code and bibliotech.conf)
Most of the GENERAL block from bibliotech.conf:
GENERAL {
SITE_NAME = 'Connotea Dev'
SITE_EMAIL = 'con...@na...'
DOCROOT = '/var/www/html/unstable'
LOCATION = 'http://xxxxx.connotea.org/unstable/'
PREPATH = '/unstable';
BIBUTILS_PATH = '/var/www/perl/unstable/bibutils/'
MOD_PERL_WORKAROUND = true
EXPLAIN_HTTP_CODES = false
EXCEPTION_ERROR_REPORTS_TO = '**'
DBI_CONNECT = 'dbi:mysql:connotea'
DBI_USERNAME = 'bibliotech'
DBI_PASSWORD = '**'
DBI_SEARCH = 'connotea_search'
MEMCACHED_SERVERS = [ '127.0.0.1:11211' ]
TEMPLATE_ROOT = ''
PID_FILE = '/var/run/httpd.pid'
SENDMAIL = '/usr/lib/sendmail'
USER_COOKIE_SECRET = '**'
USER_VERIFYCODE_SECRET = '**'
FORGOTTEN_PASSWORD_SECRET = '**';
CLIENT_SIDE_HTTP_CACHE = true
TIME_ZONE_ON_DB_HOST = 'local'
TIME_ZONE_PROVIDED = 'Europe/London'
FRESH_VISITOR_LAZY_UPDATE = 180
LOG_FILE = '/var/log/connotea.log'
}
|