標籤:style http strong 檔案 os art
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