centos下安装bugfree3.0.4

centos下安装bugfree3.0.4

一、  配置环境

操作系统:centos 6.5

Bugfree版本:3.0.4

xampp 版本: xampp-linux-x64-1.8.3-5-installer.run

xampp简介

xampp是一款跨平台的集成 apache + mysql + php环境,是的配置AMP服务器变得简单轻松,支持windows,solaris,MacOSX,linux。

 

二、  Xampp的安装:

1. xampp下载地址:

http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/

我下载的是xampp-linux-x64-1.8.3-1-installer.run

wget http://sourceforge.net/projects/xampp/files/XAMPP%20Linux/1.8.3/xampp-linux-x64-1.8.3-1-installer.run/download

2. 下载完以后,给该文件添加执行权限:

chmod a+x xampp-linux-x64-1.8.5-a-installer.run

3. 安装xampp过程如下:

 [root@nginxone src]#./xampp-linux-x64-1.8.3-5-installer.run

----------------------------------------------------------------------------

Welcome to the XAMPP Setup Wizard.

----------------------------------------------------------------------------

Select the components you want to install; clear the components youdo not want

to install. Click Next when you are ready to continue.

XAMPP Core Files : Y (Cannot be edited)

XAMPP Developer Files [Y/n] :y

Is the selection above correct? [Y/n]: y

-----------------------------------------------------------------

Installation Directory

XAMPP will be installed to /opt/lampp

Press [Enter] to continue :

-----------------------------------------------------------------

Setup is now ready to begin installing XAMPP on your computer.

Do you want to continue? [Y/n]: y

-----------------------------------------------------------------

Please wait while Setup installs XAMPP on your computer.

 Installing

 0% ______________50% ______________ 100%

 #########################################

-----------------------------------------------------------------

Setup has finished installing XAMPP on your computer.

Launch XAMPP [Y/n]: y

4. 安装后的文件在 /opt/lamp

5. 启动xampp:

[root@nginxone lampp]# /opt/lampp/xampp start

Starting XAMPP for Linux 1.8.3-1...

XAMPP: Starting Apache...fail.

XAMPP:  Another web server is already running.

XAMPP: Starting MySQL...ok.

XAMPP: Starting ProFTPD...fail.

XAMPP:  Another FTP daemon is already running.

6. 停止xampp:

[root@nginxone lampp]# /opt/lampp/xampp stop

Stopping XAMPP for Linux 1.8.3-1...

XAMPP: Stopping Apache...not running.

XAMPP: Stopping MySQL...ok.

XAMPP: Stopping ProFTPD...not running.

7. 添加开机启动:

温习一下ln命令,使用方式:

#ln [option] source dist

# ln -s /opt/lampp/xampp /etc/rc.d/init.d/xampp

九、如果执行完上面这条还不能开机自动启动,再执行下面3条语句。

# chkconfig --add xampp

#chkconfig --list | grep xampp

#chkconfig --level 3 xampp on


出错:New XAMPP security concept: Access to the requested object is only available from the localnetwork.  This setting can be configuredin the file "httpd-xampp.conf".

正解方法:

cd /opt/lampp/etc/extra

vi httpd-xampp.conf

注掉本地访问这行,如下:      

#Require local

     最后,重启启动lampp

 

8. 卸载xampp

#/opt/lampp/xampp stop

#rm -rf /opt/lampp

 

/opt/lampp/xampp security  设置每个安全密码为123456(自己设置密码)

[root@bugfree lampp]# /opt/lampp/xamppsecurity

XAMPP: Quick security check...

XAMPP: Your XAMPP pages are NOT secured by a password.

XAMPP: Do you want to set a password? [yes]yes

XAMPP: Password:

XAMPP: Password (again):

XAMPP: Password protection active. Please use 'xampp' as user name!

XAMPP: MySQL is accessable via network.

XAMPP: Normaly that's not recommended. Doyou want me to turn it off? [yes] yes

XAMPP: Turned off.

XAMPP: MySQL has to run before I can check the security.

XAMPP: MySQL has to run before I can check the security.

XAMPP: MySQL has a root passwort set. Fine! :)

XAMPP: The FTP password for user 'daemon' is still set to 'xampp'.

XAMPP: Do you want to change the password?[yes] yes

XAMPP: Password:

XAMPP: Password (again):

XAMPP: Reload ProFTPD...not running.

XAMPP: Done.

 

三、  bugfree的安装(3.0.4)

1.  bugfree下载

bugfree作为开源的工具,可以方便的从网上下载www.bugfree.org.cn .

2.  下载后解压

#cd /root/download

#unzip bugfree3.0.4.zip

3.  解压后复制到XAMPP系统的htdocs子目录下。

#Linux

mv bugfree /opt/lampp/htdocs/

#Windows 一般情况下htdocs在C:\xampp\htdocs\bugfree

move bugfreeC:\xampp\htdocs\bugfree

4. 在地址栏输入http://localhost/bugfree进入配置安装界面

 

5. 安装页面提示,设置文件库读写权限


 

在BugFree同级目录创建附件上传目录BugFile

#mkdir BugFile                              //创建BugFile文件夹

#chmod 777 /var/www/html/BugFile            //配置读写权限

#chmod 777/var/www/html/bugfree/assets

#chmod 777/var/www/html/bugfree/protected/runtime

#chmod 777 –R /var/www/html/bugfree/protected/config

#chmod 777 –R/var/www/html/bugfree/install

当显示如下信息时,表示权限设置ok

6. 安装提示配置数据库参数


备注:

Ø  数据库密码,就是前面修改的mysql密码,需保持一致。

Ø  此步骤可能会出现错误“Can’t connect to local MySQL server through socket’/var/lib/mysql/mysql.sock”,这个属于权限问题,因为默认的/var//var/lib/mysql的权限不允许mysql服务访问,mysql默认是调用mysql用户来启动服务的,因此需要增加mysql用户的权限。

#chown -R mysql:mysql/var/lib/mysql

 

Ø  Access denied for user'root'@'localhost' (using password: YES)

#cd /opt/lampp/bin/

#./mysql -uroot -p

mysql> grant all on *.* to'root'@'localhost' IDENTIFIED BY '123456' with grant option;

Query OK, 0 rows affected (0.00 sec)

 

mysql> flush privileges;

QueryOK, 0 rows affected (0.00 sec)

 

7. 点击“安装”,进入服务器安装过程,完成后弹出如下页面。


8. 点击链接,即可跳转至登陆首页。


9. 安装完成后,其他客户端即可通过http://localhost /bugfree访问系统了。

备注:如果本机可以访问系统,而其他客户端无法通过上述IP访问系统,可能是因为80端口没有开放,需要在“系统”--“管理”--防火墙”页面将80端口开放。


10.最后一步,配置邮件服务器,以实现自动邮件通知功能。

bugfree系统安装完成后,会生成一个新的配置文件main.php,以个人的安装路径为例,需修改var/www/html/bugfree/protected/config目录下的main.php文件。

'from_address' => 'bugfree@test.cn',  //填写系统的发件地址,必须是可用的

 'from_name' => 'BugFree',

 'send_method' => 'SMTP',

 'send_params' =>

array (

'host' => 'mail.test.cn',              //邮件服务器地址,也可是IP地址

'smtp_auth' => true,                   //改为true,通常都需要开启认证

'username' => 'bugfree@test.cn',       //是完整的邮箱用户信息

'password'=> '123456',                     //此处是邮箱的密码

    至此,大功告成。

 

 

迁移后:


附件位置/opt/lampp/htdocs/BugFile 

权限设为777

Mysql: 数据库名bugfree

 

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值