Project

General

Profile

RedmineDSN command not found (Centos 6)

Added by Tristan K. about 12 years ago

Hello,

I've followed the tutorial http://www.bilot.com/?p=917 [Option 1. Running under Apache] to integrate SVN into Redmine (centos-release-6-2.el6.centos.7.x86_64).

Redmine is currently running under a subdirectory

 # ln -sf /opt/redmine1.3/public /var/www/html/redmine 
and with the Passender Module. Redmine is running fine but I can't get access to the SVN Repository through the Webbrowser, I'm always asked to authenticate. If I enter
RedmineDSN "DBI:mysql:database=redmine;host=localhost" 
I get the error Invalid command 'RedmineDSN' although I integrated the Redmine.pm in several variants:

# ln -s /opt/redmine1.3/extra/svn/Redmine.pm /usr/lib64/perl5/Apache2/Redmine.pm
# ln -s /opt/redmine1.3/extra/svn/Redmine.pm /usr/lib64/perl5/Redmine.pm
# ln -s /opt/redmine1.3/extra/svn/Redmine.pm /usr/lib64/perl5/Apache2/Redmine.pm
# ln -s /opt/redmine1.3/extra/svn/Redmine.pm /usr/lib64/perl5/Apache2/Authn/Redmine.pm

# vi /etc/httpd/conf.d/svn.conf:

PerlLoadModule Redmine
#PerlLoadModule Apache::Redmine
#PerlRequire /opt/redmine1.3/extra/svn/Redmine.pm
PerlLoadModule Apache2::Authn::Redmine

<Location /svn>
    DAV svn
    SVNParentPath "/opt/svn" 

    SVNListParentPath on

    AuthType Basic
    AuthName "Redmine SVN Repository" 
    Require valid-user

    PerlAccessHandler Apache::Authn::Redmine::access_handler
    PerlAuthenHandler Apache::Authn::Redmine::authen_handler

    RedmineDSN "DBI:mysql:database=redmine;host=localhost" 

    RedmineDbUser "redmine" 
    RedmineDbPass "redmine" 
</Location>

Any idea why it doesn't work?

Thanks and best regards
Tristan