Heim  >  Artikel  >  php教程  >  linux bugfree 安装

linux bugfree 安装

WBOY
WBOYOriginal
2016-06-06 20:13:551822Durchsuche

前段时间用了下bugzilla,请参考: linux bugzilla nginx 安装配置 详解 ,感觉不是很好用。下面说一下,bugfree的安装 bugfree3.0.1是用php的yii框架开发的,其实是一个cms。 一,什么是bugfree BugFree是借鉴微软的研发流程和Bug管理理念,使用PHP+MySQL独立

前段时间用了下bugzilla,请参考:linux bugzilla nginx 安装配置 详解,感觉不是很好用。下面说一下,bugfree的安装

bugfree3.0.1是用php的yii框架开发的,其实是一个cms。

一,什么是bugfree

BugFree是借鉴微软的研发流程和Bug管理理念,使用PHP+MySQL独立写出的一个Bug管理 系统。简单实用、免费并且开放源代码(遵循GNU GPL)。 命名BugFree 有两层意思:一是希望软件中的缺陷越来越少直到没有,Free嘛;二是表示它是免费且开放源代码的,大家可以自由使用传播。

二,安装配置php nginx mysql

1,安装

# yum install php-curl php-mbstring php-gd php-mysql php-pdo php-mcrypt redis php-redis nginx mysql mysql-server php-fpm

2,启动mysql和redis

# /etc/init.d/mysqld start
# /etc/init.d/redis start

3,创建数据库

# mysql -u root
mysql> create database bugfree;
mysql> use bugfree;
mysql> set names utf8;

4,修改php-fpm的配置文件

# vim /etc/php-fpm.d/www.conf  
;php_value[session.save_handler] = files
;php_value[session.save_path] = /var/lib/php/session
php_value[session.save_handler] = redis
php_value[session.save_path] = "tcp://127.0.0.1:6379"
# /etc/init.d/php-fpm start   //启动php-fpm

5, bugfree解压和目录设置

# unzip bugfree.zip
# mv bugfree3.0.1 /var/www/html/bugfree
# chown apache.apache -R /var/www/html/bugfree    //apache是php-fpm的启动用户
# mkdir -p /var/www/html/BugFile     //创建目录
# chown apache.apache -R /var/www/html/BugFile

6,nginx配置

[root@network conf.d]# cat /etc/nginx/conf.d/bugfree.conf
        server {
                       listen       80;
                        server_name  192.168.10.202 ;
                       # root /home/tank/workspace;
                        root /var/www/html/bugfree;
                        location / {
                                        index  index.html index.htm index.php;
                                        if (!-e $request_filename){
                                                        rewrite ^/(.*) /index.php last;
                                        }
                                #autoindex  on;
                        }
                        location ~ \.php$ {
                                fastcgi_pass   127.0.0.1:9000;
                                fastcgi_index  index.php;
                                fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                                include        fastcgi_params;
                        }
                }
[root@localhost conf.d]# /etc/init.d/nginx start   //启动nginx

到这儿就安装配置好了,url访问http://192.168.10.202,就可以进行初始化设置了。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn