具体操作过程是:
1)设置访问bugs数据库的用户(数据库服务器)
#useradd bugs
#service mysqld start
#mysql
mysql>GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,CREATE,DROP,REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY ‘$db_pass’;
mysql>FLUSH PRIVILEGES;
mysql>SET PASSWORD FOR bugs=PASSWORD(“123456”);
mysql>quit;
4. 配置bugzilla
安装模块:Template-Toolkit
database:bugs
username:bugs
password:123456
#cd /bugzilla/bugzilla-2.18rc2
#perl checksetup.pl
#vi localconfig
$index_html=1
$db_name=”bugs”
$db_user=”bugs”
$db_pass=’123456’
# ./checksetup.pl
输入管理员帐户:zhang@felix.com
确认输入:Y
输入全名:felix
密码:123456
确认密码:123456
#chown -R apache:apache /bugzilla/bugzilla-2.18rc2
5. 配置Web服务器
将bugzilla目录设置为站点(web服务器)
#vi /etc/httpd/conf/httpd.conf
将AddHandler cgi-script .cgi前的#删除
DocumentRoot “/bugzilla/bugzilla-2.18rc2” (原为/var/www/html)
Options ExecCGI FollowSymLinks
AllowOverride Limit
Order allow,deny
Allow from all
#service httpd restart
6. 访问bugzill
访问的结果 是被拒绝。。。为什么呢?
不好意思,直接 忘记传图了!!!