Ubuntu下Bugzilla的安装

2017-11-03  本文已影响304人  倾倒的吞天壶
  1. 切换为root用户: sudo su
  2. 安装必须的软件:
apt-get install git nano
apt-get install apache2 mysql-server libappconfig-perl libdate-calc-perl libtemplate-perl libmime-perl build-essential libdatetime-timezone-perl libdatetime-perl libemail-sender-perl libemail-mime-perl libemail-mime-modifier-perl libdbi-perl libdbd-mysql-perl libcgi-pm-perl libmath-random-isaac-perl libmath-random-isaac-xs-perl apache2-mpm-prefork libapache2-mod-perl2 libapache2-mod-perl2-dev libchart-perl libxml-perl libxml-twig-perl perlmagick libgd-graph-perl libtemplate-plugin-gd-perl libsoap-lite-perl libhtml-scrubber-perl libjson-rpc-perl libdaemon-generic-perl libtheschwartz-perl libtest-taint-perl libauthen-radius-perl libfile-slurp-perl libencode-detect-perl libmodule-build-perl libnet-ldap-perl libauthen-sasl-perl libtemplate-perl-doc libfile-mimeinfo-perl libhtml-formattext-withlinks-perl libfile-which-perl libgd-dev libmysqlclient-dev lynx-cur graphviz python-sphinx rst2pdf
  1. 下载bugzilla:
cd /var/www/html
git clone --branch release-X.X-stable https://github.com/bugzilla/bugzilla bugzilla
  1. 创建bugzilla数据库:
    mysql -u root -p -e "GRANT ALL PRIVILEGES ON bugs.* TO bugs@localhost IDENTIFIED BY '$db_pass'"
  2. 配置Apache服务器:
    nano /etc/apache2/sites-available/bugzilla.conf
ServerName localhost

<Directory /var/www/html/bugzilla>
  AddHandler cgi-script .cgi
  Options +ExecCGI
  DirectoryIndex index.cgi index.html
  AllowOverride All
</Directory>
a2ensite bugzilla
a2enmod cgi headers expires rewrite
service apache2 restart
  1. 检查安装:
cd /var/www/html/bugzilla/
./checksetup.pl --check-modules

检查完成之后,我们会发现缺少了一些组件,我们需要安装它们,用以下命令即可实现:
perl install-module.pl --all
再次检查: ./checksetup.pl --check-modules, 应该没设么缺的了.
然后, 运行: ./checksetup.pl, 它会在/var/www/html/bugzilla路径下自动生成一个名为localconfig的文件

  1. 编辑localconfig:
Line 29: set $webservergroup to www-data
Line 67: set $db_pass to the password for the bugs user you created in MySQL a few steps ago
  1. 再次检查安装:
    ./checksetup.pl 命令行会让你填邮箱地址, 用户名, 密码等信息, 填完就噢啦.
  2. 检查Apache服务器能否连通:
    ./testserver.pl http://localhost/bugzilla
  3. 浏览器访问:
    http://localhost/bugzilla
    success.png
上一篇下一篇

猜你喜欢

热点阅读