Sysadmin papilusion bugzilla 17 01 2012 - Seizam/seizamcore GitHub Wiki
- user : root
- host : papilusion.reverse.seizam.com
- date : 17/01/12 11:33
- curpath : /root
- [email protected]# apt-get install libapache2-mod-perl2 libtemplate-perl libmime-perl libappconfig-perl libdbd-mysql-perl libtimedate-perl libgd-gd2-perl libgd-text-perl libxml-twig-perl perlmagick libemail-send-perl libemail-mime-modifier-perl libchart-perl libgd-graph-perl libhtml-scrubber-perl libdatetime-perl
- [email protected]# ls
- [email protected]# mkdir tmp
- [email protected]# cd tmp/
- [email protected]# wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.0.3.tar.gz
- [email protected]# ls
- [email protected]# tar -xvf bugzilla-4.0.3.tar.gz
- [email protected]# ls
- [email protected]# mv bugzilla-4.0.3 /var/bugzilla
- [email protected]# cd /var/bugzilla/
- [email protected]# ls
- [email protected]# ./checksetup.pl
- [email protected]# apt-get install libemail-mime-perl
- [email protected]# ./checksetup.pl
- [email protected]# /usr/bin/perl install-module.pl Email::MIME
- [email protected]# ./checksetup.pl
- [email protected]# apt-get install libemail-mime-perl
- [email protected]# apt-get install libemail-mime-modifier-perl
- [email protected]# apt-get install libemail-send-perl
- [email protected]# dpkg-reconfigure libemail-mime-perl
- [email protected]# ./checksetup.pl
- [email protected]# apt-get update
- [email protected]# apt-get install libemail-mime-perl
- [email protected]# /usr/bin/perl install-module.pl Email::MIME
- [email protected]# make
- [email protected]# apt-get install make
- [email protected]# /usr/bin/perl install-module.pl Email::MIME
- [email protected]# ./checksetup.pl
- Edit /var/bugzilla/localconfig, see [1]
- [email protected]# ./checksetup.pl
- Edit /etc/apache2/sites-available/localhost-admin-tools, see [2]
- [email protected]# apache2ctl configtest
- [email protected]# /etc/init.d/apache2 reload
- [email protected]# /usr/bin/perl install-module.pl Email::Send::Gmail
- [email protected]# /etc/init.d/apache2 restart
- [email protected]# apt-get install libnet-smtp-ssl-perl
- [email protected]# ./checksetup.pl
- Edit /var/bugzilla/Bugzilla/Mailer.pm, see [3]
- [email protected]# ls -l data/
[1]\* Edit /var/bugzilla/localconfig
--- old 2012-01-17 11:59:38.000000000 +0100 +++ new 2012-01-17 12:00:31.000000000 +0100 @@ -26,3 +26,3 @@ # asroot, or as a user who is a member of the specified group. -$webservergroup = 'apache'; +$webservergroup = 'www-data'; @@ -48,6 +48,6 @@ # The name of the database -$db_name = 'bugs'; +$db_name = 'bugzilladb'; # Who we connect to the database as. -$db_user = 'bugs'; +$db_user = 'bugzillauser'; @@ -58,3 +58,3 @@ # (Far simpler just not to use those characters.) -$db_pass = ''; +$db_pass = '????????????';
[2]\* Edit /etc/apache2/sites-available/localhost-admin-tools
--- old 2012-01-17 12:04:22.000000000 +0100 +++ new 2012-01-17 12:08:32.000000000 +0100 @@ -104,2 +104,20 @@ + # BUGZILLA + # -------- + + Alias /bugzilla /var/bugzilla + + <Directory /var/bugzilla> + Options +ExecCGI + AllowOverride Limit + DirectoryIndex index.cgi + AddHandler cgi-script .cgi + + Order deny,allow + Deny from all + Allow from 127.0.0.1 + </directory> + + + </virtualhost>
[3]\* Edit /var/bugzilla/Bugzilla/Mailer.pm
--- old 2012-01-17 12:57:37.000000000 +0100 +++ new 2012-01-17 13:11:19.000000000 +0100 @@ -52,2 +52,5 @@ +use Email::Send::Gmail; +use Email::Simple::Creator; + sub MessageToMTA { @@ -161,3 +164,3 @@ - if ($method eq "SMTP") { + if ($method eq "SMTP" || $method eq "Gmail") { push @args, Host => Bugzilla->params->{"smtpserver"},