• 搭建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用户的新密码,点安装,过去了。

  • 相关阅读:
    Asp.net MVC routing 路由
    Asp.net MVC3 企业网站系统高仿博客园 首页左侧列表页面 实现效果
    Asp.net MVC 3 开发简单的企业系统开篇数据库
    Asp.net MVC 3 开发企业网站系统仿照博客园部分功能总体设计
    [转]C语言中的文件格式化读写函数:fprintf和fscanf
    如何讀取/寫入文字檔? (IC Design) (Verilog)
    Verilog状态机的编写学习
    [转] verilog中的integer和reg的差别
    verilog常用系统函数以及例子
    独立写testbench注意的几点
  • 原文地址:https://www.cnblogs.com/stay-sober/p/4158364.html
Copyright © 2020-2023  润新知