1、下载xampp 安装
http://www.apachefriends.org/zh_cn/xampp.html
直接执行.run文件安装 默认会安装到/opt/lampp
2 、启动xampp
[[email protected] ~]# opt/lampp/lampp start
Starting XAMPP 1.7.2...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.
3 、配置xampp
[[email protected] ~]# opt/lampp/lampp security
分别设置xampp页面密码;phpMyAdmin用户pma密码;mysql的root密码;ftp用户daemon密码。
4、设置mysql 允许远程连接
[[email protected] ~]# /opt/lampp/bin/mysql -u root -p (进入mysql)
mysql> USE mysql; -- 切换到 mysql DB
Database changed
mysql> GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘客户端IP‘ IDENTIFIED BY ‘root密码‘ WITH GRANT OPTION;
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
5、安装配置bugfree
[[email protected] ~]# unzip bugfree3.zip
将解压目录移动到 /opt/lampp/htdocs/目录下
由main.sample.php复制生成main.php
[[email protected] ~]# cd /opt/lampp/htdocs/bugfree3/protected/config/
[[email protected] ~]# cp main.sample.php main.php
6、设置目录权限
[[email protected] ~]# chmod 757 /opt/lampp/htdocs/bugfree3/assets
[[email protected] ~]# chmod 757 /opt/lampp/htdocs/bugfree3/protected/runtime
[[email protected] ~]# chmod 757 /opt/lampp/htdocs/bugfree3/protected/runtime/state.bin
[[email protected] ~]# chmod 757 /opt/lampp/htdocs/bugfree3/protected/config
[[email protected] ~]# chmod 757 /opt/lampp/htdocs/bugfree3/protected/config/main.php
[[email protected] ~]# chmod 757 /opt/lampp/htdocs/bugfree3/install
7、在BugFree同级目录创建附件上传目录BugFile
[[email protected] ~]# cd bugfree
[[email protected] ~]# mkdir BugFile
[[email protected] ~]# chmod 777 BugFile
编辑/opt/lampp/htdocs/bugfree3/protected/config/main.php
找到uploadPath改为BugFile路径.
8、安装
浏览器输入 http://ip/bugfree3/install
CentOS 6.4利用xampp安装bugfree3