- 论坛徽章:
- 0
|
bugzilla-building
1. Bugzilla version:
bugzilla 4.0.2 && bugzilla 4.1.3
2. Testing platform:
Fedora release 16(x86_64)
3. Database:
mysql
4. Webserver:
apache2
5. Group member:
Candan Li <candan.li@maxwit.com>
Matthew He <matthew.he@maxwit.com>
Building steps:
Download a Bugzilla tarball:
http://ftp.mozilla.org/pub/mozil ... gzilla-4.0.2.tar.gz
Extract files:
sudo su
cd /usr/local/
tar xvf /maxwit/source/bugzilla-4.0.2.tar.gz
cd bugzilla-4.0.2
Check required modules:
./checksetup.pl --check-modules
Install missing perl modules:
perl install-module.pl --all
or
yum install perl-Template-Toolkit.x86_64 \
perl-Email-MIME.noarch \
perl-Email-Send.noarch \
perl-GD.x86_64 perl-Chart.noarch \
perl-Template-GD.noarch \
perl-GDTextUtil.noarch \
perl-GDGraph.noarch \
perl-XML-Twig.noarch \
perl-LDAP.noarch \
perl-Authen-SASL.noarch \
perl-SOAP-Lite.noarch \
perl-JSON-RPC.noarch \
perl-JSON-XS.x86_64 \
perl-Test-Taint.x86_64 \
perl-HTML-Scrubber.noarch \
perl-Email-Reply.noarch \
perl-TheSchwartz.noarch \
perl-Daemon-Generic.noarch \
perl-Math-Random-Secure.noarch
Install mysql-server mysql-client httpd:
yum install mysql-server mysql-client httpd
Configure mysql:
a. login mysql as root.
b. create user 'bugs':
mysql>GRANT SELECT, INSERT,
UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES,
CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.*
TO bugs@localhost IDENTIFIED BY 'your-password';
mysql> FLUSH PRIVILEGES;
mysql>create database bugs;
c. modify /etc/my.conf add:
[mysqld]
max_allowed_packet=4M
ft_min_word_len=2
d. restart mysql server:
systemctl restart mysqd.service
Configure httpd:
a. modify /etc/httpd/conf/httpd.conf add:
<Directory /var/www/html/bugzilla>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit FileInfo Indexes
</Directory>
b. restart httpd
systemctl restart httpd.service
Run ./checksetup.pl without --check-modules:
./checksetup
Configure localconfig:
$db_driver='mysql'
$db_name='bugs'
$db_name='bugs'
$db_pass='your-password'
Change DIR mode:
Chmod -R 755 /usr/local/bugzilla-4.0.2
Configure selinux:
yum install policycoreutils-gui
system-config-selinux chang "enforcing" to "Permissive" or modify /etc/selinux/config
setsebool -P httpd_unified 1
Change security context type:
sudo chcon -Rv --type=httpd_sys_content_t /usr/local/bugzilla-4.0.2/
Chang DIR permission:
sudo chmod g+w /usr/local/bugzilla-4.0.2 -R
Configure firewall(disable??):
setup |
|