Gentoo Linux下Bugzilla安装配置说明
来源:互联网 发布:软实力硬实力知乎 编辑:程序博客网 时间:2024/04/29 20:19
本文安装环境为Gentoo Linux,理论上其它发行版本Linux也可做为参考。
Crob原创,转载请注明出处。
环境介绍
Linux dotc 2.6.28-gentoo-r4 #2 SMP Fri Jun 5 19:36:48 CST 2009 i686 Intel(R) Core(TM)2 Duo CPU T5470 @ 1.60GHz GenuineIntel GNU/Linux
gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5)
[ebuild R ] www-servers/apache-2.2.11 USE="ssl -debug -doc -ldap (-selinux) -sni -static -suexec -threads" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -auth_digest -authn_dbd -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -substitute -version" APACHE2_MPMS="-event -itk -peruser -prefork -worker" 0 kB
[ebuild R ] dev-db/mysql-5.0.70-r1 USE="berkdb perl ssl -big-tables -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal (-selinux) -static" 0 kB
[ebuild R ] www-apps/bugzilla-3.0.5 USE="graphviz modperl mysql vhosts -extras -postgres" LINGUAS="-de" 0 kB
本文假设您已安装了以上软件包。
1、安装软件准备
# echo "www-apps/bugzilla apache2 graphviz modperl mysql vhosts" >> /etc/portage/package.use
# emerge www-apps/bugzilla www-apache/mod_perl www-servers/apache
2、配置Appach
# vim /etc/apache2/httpd.conf
在文件未尾添加以下内容
#For bugzilla
Listen 8666
#### Directory entry added by The Beast in Black on 3-Aug-2006
# for bugzilla. God save us all.
<Directory /var/www/bugzilla>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI +FollowSymLinks
DirectoryIndex index.cgi
AllowOverride Limit
</Directory>
并确认 Include /etc/apache2/vhosts.d/*.conf 在httpd.conf中是否存在,不存在则添加上。
3、配置Bugzilla的appache vhost
# vim /etc/apache2/vhosts.d/bugzilla-vhost.conf
文件内容如下,其中的IP地址改为正确的地址,ServerName如不知道该是什么则可不改
NameVirtualHost *:8666
<VirtualHost *:8666>
ServerName "myserver.mydomain.com"
DocumentRoot "/var/www/bugzilla/htdocs"
<Directory "/var/www/bugzilla/htdocs">
AddHandler cgi-script cgi
Options +Indexes +ExecCGI +FollowSymLinks
DirectoryIndex index.cgi
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>
</VirtualHost>
然后热行以下命令,生成apache虚拟主机配置及目录,3.0.5要改为当前安装的bugzilla对应的版本号
# webapp-config -I -h bugzilla bugzilla 3.0.5
执行完成后bugzilla被安装在 /var/www/bugzilla/htdocs/
4、配置MySQL
# vim /etc/mysql/my.cnf
[mysqld]
# Allow packets up to 1M
max_allowed_packet=1M
# Allow small words in full-text indexes
ft_min_word_len=2
my.cnf修改完后/etc/init.d/mysql restart
接下去在mysql中添加bugs用户和数据库并分配权限
//登录MYSQL
# mysql -u root -p
# 密码
//创建用户
mysql> insert into mysql.user(Host,User,Password) values("localhost","bugs",password("systex"));
//刷新系统权限表
mysql> flush privileges;
//创建数据库bugs
mysql> create database bugs;
//授权bugs用户拥有bugs数据库的所有权限。
mysql> grant all privileges on bugs.* to bugs@localhost identified by "systex";
//刷新系统权限表
mysql> flush privileges;
5、配置Bugzilla
热行以下命令配置bugzilla
# perl /var/www/bugzilla/htdocs/checksetup.pl
执行完成如出现:Enter the e-mail address of the administrator: 则表明所有bugzilla需要的perl module已经安装完成,按提示输入admin的email、姓名、密码。
执行完如出现其它安装perl module组件的提示,则按提示用root运行显示出的所有commands安装,有些commands是可选的,不必安装,再将运行 checksetup.pl
6、配置Bugzilla localconfig
注意每次修改完localconfig都要再执行第5步的checksetup.pl
# vim /var/www/bugzilla/htdocs/localconfig
找到$db_pass = 'systex'; 填入mysql密码,此例中密码为systex, mysql的密码。
修改完后,再次热行以下命令配置bugzilla
# perl /var/www/bugzilla/htdocs/checksetup.pl
7、重启apache,重启mysql
# /etc/init.d/apache2 restart
# /etc/init.d/mysql restart
在浏览器中输入 http://127.0.0.1:8666,可以打开bugzill页面了。
8、sendmail
在我的gentoo中,emerge sendmail后,所有配置均为默认,即可收到EMAIL,但经过测试一般需一到两小时后才收到邮件。以后再尝试换用postfix来做为SMTP服务器的效果。
- Gentoo Linux下Bugzilla安装配置说明
- Gentoo Linux 下MediaWiki安装配置说明
- Gentoo Linux下Subversion + Websvn安装配置说明
- Linux下Bugzilla的安装与配置
- linux下安装bugzilla
- Linux下安装Bugzilla
- Linux下安装bugzilla
- linux下安装BugZilla
- linux下安装bugzilla
- 在Windows下安装BugZilla的说明
- Ubuntu - Edgy Eft 下安装配置Bugzilla
- Ubuntu - Edgy Eft 下安装配置Bugzilla
- ubuntu下Bugzilla的安装与配置
- ubuntu下Bugzilla的安装与配置
- gentoo上安装trac和bugzilla
- 如何在linux系统下安装bugzilla
- Linux下bugzilla的安装方法
- Linux下bugzilla的安装方法
- 循环队列实现高速缓存的读写
- csdn,救人于水火!
- 最近复习一下计算机原理熟悉了一下CPU寄存器知识
- CIO错在不会推销信息化
- Srping定时器
- Gentoo Linux下Bugzilla安装配置说明
- 高效突破四六级长对话
- 一个真正可用的免费的MYSQL
- 雅思学习总结(一)
- Qt3 ---1 入门
- asp.net控件lLiteral 与lable的区别
- 开心
- VMWare 服务被关,导致Visual Studio 2005 启动不了的问题
- 软件工程中设计与编码