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,禁用这东东,保存退出即可。

 

你可能感兴趣的:(centos)