博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
centos 6.4 x64安装bugfree
阅读量:6825 次
发布时间:2019-06-26

本文共 4003 字,大约阅读时间需要 13 分钟。

第一步:下载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,禁用这东东,保存退出即可。

 

转载地址:http://ajykl.baihongyu.com/

你可能感兴趣的文章
dojo.declare,dojo.define,dojo.require解释
查看>>
酷炫的显示主页面
查看>>
CAA如何进行干涉检查?
查看>>
silverlight vs flash
查看>>
我的友情链接
查看>>
我的友情链接
查看>>
可执行JAR读写内外文件
查看>>
Handbook of Constraints Programming——Chapter4 Backtracking Search Algorithms-Preliminaries
查看>>
[转载] 信息系统项目管理师视频教程——14 项目进度管理
查看>>
linux 解压文件
查看>>
Ansible入门
查看>>
SVN学习总结(1)——SVN简介及入门使用
查看>>
浅谈linux性能调优之五:调优软raid
查看>>
Android sdk下载缓慢解决方式
查看>>
IBM TPC强化中国建设银行存储管理能力
查看>>
常用ftp子命令的总结
查看>>
正则表达式
查看>>
在 JS 中使用 fetch 更加高效地进行网络请求
查看>>
javascript 分页算法
查看>>
android手机root后的安全问题
查看>>