[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Running Bugzilla and SVN in same Server

From: Thorsten Schöning <tschoening_at_am-soft.de>
Date: Mon, 19 Nov 2012 13:21:24 +0100

Guten Tag Ratheesh Sahayaraj,
am Montag, 19. November 2012 um 12:59 schrieben Sie:

> <VirtualHost *:80>
>     ServerAdmin webmaster_at_dummy-host.example.com
>     DocumentRoot /var/www/html/websvn
>     ServerName svn
>     ErrorLog logs/websvn-error_log
>     CustomLog logs/websvn-access_log common
>             <Location />
>                 Options +FollowSymLinks
>                 AllowOverride None
>                 order allow,deny
>                 allow from all
>                 AuthType Basic
>                 AuthName "Subversion Repository"
>                 Require valid-user
>                   AuthUserFile /svn/conf/svn-auth-file
>                 <IfModule mod_php4.c>
>                     php_flag magic_quotes_gpc Off
>                     php_flag track_vars On
>                 </IfModule>
> </Location>
> </VirtualHost>

You should read the docs on what a virtual host is and how it works,
afterwards you can configure the same for Bugzilla and access both
applications using proper names as you already configured "svn" for
WebSVN.

> PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/bugzilla/lib -w -
> T
> PerlConfigureRequire /var/www/html/bugzilla/mod_perl.pl

You shouldn't need the I-switch and those two lines assume that
nothing else is running in your httpd, you can't have Bugzilla and
Subversion in parallel this way. You need virtual hosts, read about
them. Below is an exmaple configuration I use, I don't use with
commented mod_pelr.pl because I don't use it currently.

<VirtualHost *:80>
        ServerAdmin bugzilla_at_example.org
        ServerName bugzilla.example.org

        DocumentRoot /usr/local/apache/htdocs/bugzilla
        <Directory "/usr/local/apache/htdocs/bugzilla">
                AddHandler cgi-script .cgi
                AddHandler imap-file map
                DirectoryIndex index.cgi
                Options Indexes FollowSymLinks MultiViews ExecCGI
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/bugzilla/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/bugzilla/access.log combined

        #PerlSwitches -w -T
        #PerlConfigRequire /usr/local/apache/htdocs/bugzilla/mod_perl.pl
        PerlOptions +Parent
</VirtualHost>

http://www.bugzilla.org/docs/4.2/en/html/configuration.html

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning       E-Mail:Thorsten.Schoening_at_AM-SoFT.de
AM-SoFT IT-Systeme      http://www.AM-SoFT.de/
Telefon...........05151-  9468- 55
Fax...............05151-  9468- 88
Mobil..............0178-8 9468- 04
AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 207 694 - Geschäftsführer: Andreas Muchow
Received on 2012-11-19 13:21:59 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.