歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> centos 6.4 x64安裝bugfree

centos 6.4 x64安裝bugfree

日期:2017/3/1 16:14:13   编辑:關於Linux
centos 6.4 x64安裝bugfree 第一步:下載xampp-linux-1.8.1.tar.gz [root@SVNMANAGER ~]# tar -zxvf xampp-linux-1.8.1.tar.gz -C /opt [root@SVNMANAGER ~]# yum install netsta [root@SVNMANAGER ~]# yum install -y glibc*i686 啟動xampp [root@SVNMANAGER ~]# /opt/lampp/lampp start 設置lampp管理界面和root用戶省濾 [root@SVNMANAGER ~]# /opt/lampp/lampp security ##########################lampp 123456 root 123456 [root@SVNMANAGER ~]# /opt/lampp/lampp security XAMPP: Quick security check... XAMPP: Your XAMPP pages are NOT secured by a password. XAMPP: Do you want to set a password? [yes] XAMPP: Password: XAMPP: Password (again): XAMPP: Password protection active. Please use 'lampp' as user name! XAMPP: The MySQL/phpMyAdmin user pma has no password set!!! XAMPP: Do you want to set a password? [yes] XAMPP: Password: XAMPP: Password (again): XAMPP: Setting new MySQL pma password. XAMPP: Setting phpMyAdmin's pma password to the new one. XAMPP: MySQL has no root passwort set!!! XAMPP: Do you want to set a password? [yes] XAMPP: Write the password somewhere down to make sure you won't forget it!!! XAMPP: Password: XAMPP: Password (again): XAMPP: Setting new MySQL root password. XAMPP: Change phpMyAdmin's authentication method. XAMPP: The FTP password for user 'nobody' is still set to 'lampp'. XAMPP: Do you want to change the password? [yes] XAMPP: Password: XAMPP: Password (again): XAMPP: ProFTPD isn't running... XAMPP: Done. 授權 [root@SVNMANAGER ~]# chown -R root.root /opt/lampp/var/mysql [root@SVNMANAGER ~]# chmod 757 /opt/lampp/var/mysql [root@SVNMANAGER var]# /opt/lampp/bin/mysql -u root -p 123456 mysql> use mysql; Database changed mysql> select Host,User From user; +-----------+------+ | Host | User | +-----------+------+ | linux | | | linux | root | | localhost | | | localhost | pma | | localhost | root | +-----------+------+ 5 rows in set (0.00 sec) mysql> UPDATE user SET Host='%' WHERE User='root' and host ='linux'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) ---------------- [root@SVNMANAGER ~]# unzip bugfree3.zip [root@SVNMANAGER ~]# mv bugfree3 /opt/lampp/htdocs/ [root@SVNMANAGER ~]# cd /opt/lampp/htdocs/bugfree3/protected/config/ [root@SVNMANAGER config]# cp main.sample.php main.php [root@SVNMANAGER config]# chmod 757 /opt/lampp/htdocs/bugfree3/assets [root@SVNMANAGER config]# chmod 757 /opt/lampp/htdocs/bugfree3/protected/runtime [root@SVNMANAGER config]# chmod 757 /opt/lampp/htdocs/bugfree3/protected/runtime/state.bin [root@SVNMANAGER config]# chmod 757 /opt/lampp/htdocs/bugfree3/protected/config [root@SVNMANAGER config]# chmod 757 /opt/lampp/htdocs/bugfree3/protected/config/main.php [root@SVNMANAGER config]# chmod 757 /opt/lampp/htdocs/bugfree3/install/* [root@SVNMANAGER htdocs]# chmod 757 /opt/lampp/htdocs/bugfree/assets [root@SVNMANAGER htdocs]# chmod 757 /opt/lampp/htdocs/bugfree/protected/runtime [root@SVNMANAGER htdocs]# chmod 757 /opt/lampp/htdocs/bugfree/protected/runtime/state.bin [root@SVNMANAGER htdocs]# chmod 757 /opt/lampp/htdocs/bugfree/protected/config [root@SVNMANAGER htdocs]# chmod 757 /opt/lampp/htdocs/bugfree/protected/config/main.php [root@SVNMANAGER htdocs]# chmod 757 /opt/lampp/htdocs/bugfree/install/* [root@SVNMANAGER htdocs]# cd bugfree/ [root@SVNMANAGER bugfree]# mkdir BugFile [root@SVNMANAGER opt]# chmod 777 /opt/lampp/htdocs/bugfree/install [root@SVNMANAGER opt]# chmod -R 777 /opt/lampp/htdocs 問題一:mysql 再次啟動不起來 解決 cd /opt/lampp/etc #chmod 755 my.cnf 問題二:HP Error mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead 解決 [root@SVNMANAGER tmp]# cd /opt/lampp/htdocs/bugfree/protected/service [root@SVNMANAGER service]# vi SqlService.php mysql_escape_string() 函數已廢棄,用 mysql_real_escape_string() 代替 問題二: fopen(../BugFile/caselist.xml): failed to open stream: No such file or directory 解決 在bugfree同級目錄創建一個 BugFile文件 mkdir BugFile chmod 777 BugFile 分析了下,原因應該是fastestmirror這個作怪,只要把/etc/yum/pluginconf.d/fastestmirror.conf裡的enabled值1改為0,禁用這東東,保存退出即可。
Copyright © Linux教程網 All Rights Reserved