搭建2、centos装xampp,远程安装bugfree

1./opt目录下放xampp-linux-1.8.3-3-installer.run、bugfree.zip

2.[root@centos1 opt]# chmod 775 xampp-linux-1.8.3-3-installer.run  #赋权
3.[root@centos1 opt]# sudo ./xampp-linux-1.8.3-3-installer.run         #安装xampp

4.启动xampp

[root@centos1 /]# sudo ./opt/lampp/lampp start
Starting XAMPP for Linux 1.8.3-3...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
[root@centos1 /]#

4.[root@centos1 opt]# unzip bugfree.zip #解压bugfree

5.[root@centos1 opt]# mv bugfree3.0.1/ /opt/lampp/htdocs/ #移动htdocs路径

6.[root@centos1 htdocs]# mv bugfree3.0.1/ bugfree #改名

7.在从本机远程访问http://192.168.0.101/bugfree/install/?action=config 安装bugfree时,提示了(大概这意思,没记住)New XAMPP security concept:Access to the requested directory is only available from the local network

[root@centos1 ~]# vi /opt/lampp/etc/extra/httpd-xampp.conf ###注释了Require local

<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
# Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>

8.修改后重启apache

9.可以访问安装页面后,按照页面修改路径权限

[root@centos1 htdocs]# mkdir BugFile
[root@centos1 htdocs]# chmod 777 -R  BugFile/
[root@centos1 htdocs]# chmod 777 -R  bugfree/assets/
[root@centos1 htdocs]# chmod 777 -R  bugfree/protected/runtime/
[root@centos1 htdocs]# chmod 777 -R  bugfree/protected/config/
[root@centos1 htdocs]# chmod 777 -R  bugfree/install/

9 .在配置数据库步骤,出错。大概这意思:Access denied for user 'root'@'localhost'

(CDbConnection 无法开启数据库连线: SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'bugfree')

10.给xmapp中mysql默认的root用户,设置密码

  1.root用户进入mysql后要设置密码:

mysql> set password=password('123123');
Query OK, 0 rows affected (0.09 sec)
   2.给root用户赋权限

mysql> grant all privileges on *.* to 'root'@'%' identiied by '123123' with grant option;

11.在操作10步-1时,提示-bash: mysql: command not found

[root@centos1 ~]# ln -fs /opt/lampp/bin/mysql /usr/local/bin/
[root@centos1 ~]# mysql       ##软连接后,可以登录mysql
12.重启mysql服务

[root@centos1 ~]# sudo /opt/lampp/lampp startmysql
XAMPP: Starting MySQL...already running.

13.继续为bugfree配置数据库,输入root用户的新密码,点安装,过去了。

posted @ 2014-12-11 19:47  hotarubi  阅读(272)  评论(0编辑  收藏  举报