set up Bugzilla on centos
Install PerlBugzilla 4.0.2 requires Perl version 5.8.1 or higher. Check with the following.perl -vIf perl is not installed, then:yum install perlBefore accepting, check if version is 5.8.1 or higher.Install MySQLBugzilla 4.0.2 requires MySQL version 4.1.2 or higher. Check with the following.mysqladmin versionIf mysqld is not installed, then:yum install mysql-serverBefore accepting, check if version is 4.1.2 or higher.Configure the MySQL server with the following.chkconfig mysqld onservice mysqld startmysqladmin password root-passwordInstall Apache Web Serveryum install httpd mod_sslMake sure apache starts when system boots.chkconfig httpd onAll web transactions will be through port 443 over https. Run the following program to open the https port:system-config-securitylevel-tuiStart the web server (or reboot the host).service httpd startInstall BugzillaGet the most recent stable release of Bugzilla. I did this with the following.yum install wgetcd /var/www/htmlwget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.0.2.tar.gztar -zxvf bugzilla-4.0.2.tar.gzrm bugzilla-4.0.2.tar.gzMake the apache user owner of the bugzilla folder.chown -R apache:apache bugzilla-4.0.2Install prerequisites needed for perl package installation.yum install make gcc-c++ libtool mysql-develRun script to check for required perl packages.cd bugzilla-4.0.2./checksetup.pl --check-modulesThe above command provides commands to install missing packages. I then ran the following./usr/bin/perl install-module.pl DBD::mysql/usr/bin/perl install-module.pl Digest::SHA/usr/bin/perl install-module.pl Date::Format/usr/bin/perl install-module.pl DateTime/usr/bin/perl install-module.pl DateTime::TimeZone/usr/bin/perl install-module.pl Template/usr/bin/perl install-module.pl Email::Send/usr/bin/perl install-module.pl Email::MIME/usr/bin/perl install-module.pl URI/usr/bin/perl install-module.pl List::MoreUtilsAfter this completed, I ran the checksetup again as follows../checksetup.pl --check-modulesConfigure Mail Transfer AgentI intend to turn off mail completely.Configure BugzillaHave checksetup.pl generate localconfig file. Edit this file to set the database username and password. The default username is bugs and the default password is an empty string.Configure Apache Web ServerCreate file /etc/httpd/conf.d/bugzilla.conf with the following contents. After generating localconfig, start reading through its contents to find out what more needs to get done. Based on the contents of localconfig, I did the following.<Directory "/var/www/html/bugzilla-4.0.2"> AddHandler cgi-script .cgi Options +Indexes +ExecCGI DirectoryIndex index.cgi AllowOverride Limit FileInfo Indexes</Directory>Restart Apache.service httpd restartConfigure MySQLTo increase security, delete the test database and the anonymous user.mysql -u root -pmysql> drop database test;mysql> drop user @'localhost';mysql> drop user @'<hostname>';Modify /etc/my.cnf by adding the following to the ] section. (These settings are explained in the Bugzilla documentation.)max_allowed_packet=4Mft_min_word_len=2Create a user named bugs as follows.mysql -u root -pmysql>create database bugs;mysql>grant all privileges on bugs.* to 'bugs' identified by '<bugs password>';mysql> flush privileges;Run checksetup.pl to generate the database tables.Allow larger attachments as directed by the Bugzilla documentation.mysql -u bugs -pmysql> use bugsmysql> ALTER TABLE attachments AVG_ROW_LENGTH=1000000, MAX_ROWS=20000;refer to: http://www.thegeekstuff.com/2010/05/install-bugzilla-on-linux/#more-4417 http://cse.csusb.edu/turner/wiki/CentOS_Server_Bugzilla_Setup
如果提示Can't locate ExtUtils/MM.pm,可执行
#yum install mod_perl
和
#yum install perl-CPAN
http://blog.163.com/liu_qishan/blog/static/812422620104136273585/
/etc/init.d/postfix stop
/etc/init.d/sendmail restart
chkconfig postfix off
chkconfig sendmail on
$ $BUGZILLA_HOME/jobqueue.pl check
$ $BUGZILLA_HOME/jobqueue.pl -f -d restart
收不到邮件参考:http://guoh.org/lifelog/2011/04/sending-emails-with-smtp-in-bugzilla/
页:
[1]