bugzilla迁移需要修改的文件

数据库授权:
grant all on bugs.* to root@localhost identified by "root"; #授权


flush privileges; # 刷新
------------------------------------------
/var/www/html/bugzilla/localconfig
$db_host = 'localhost'
$db_name = 'bugs'
$db_user = 'root’
$db_pass = 'root'
-----------------------------------------
/etc/httpd/conf/httpd.conf


<VirtualHost *:80>
     DocumentRoot /var/www/html/bugzilla/
</VirtualHost>
 
<Directory /var/www/html/bugzilla>
     AddHandler cgi-script .cgi
     Options +Indexes +ExecCGI
     DirectoryIndex index.cgi
     AllowOverride Limit FileInfo Indexes
</Directory>
-----------------------------------------
vi ./bugzilla/.htaccess


#Options –Indexes
-------------------------------


Redhat搭建bugzilla提示 Couldn't connect to smtp server




1.问题


最近搭建系统集成系统(jenkins),问题跟踪系统(bugzilla)配置SMTP发送邮件时,jenkins发送邮件功能OK,bugzilla发送邮件提示 Couldn't connect to smtp




2.解决


根据各种检索到的解决方案,均无答案,后来回到redhat网络连接本身上来,通过多次检索,发现redhat对于网络还存在其他的设定, httpd_can_network_connect属性默认为off,需要开启才能正常处理网络连接问题。执行如下语句后,bugzilla邮件发送功能即OK。


setsebool httpd_can_network_connect on


参考:https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Booleans-Configuring_Booleans.html




转载于:https://www.cnblogs.com/lihuaichen/p/8270150.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值