zoukankan      html  css  js  c++  java
  • centos7 安装 phpMyAdmin

    1.安装apache httpd
    yum install -y httpd

    2.安装号后执行: systemctl start httpd 启动,在浏览器输入公网ip验证httpd是否正常

    3.centos7安装php5.6注意php不要太高,否则phpmyadmin报错
    安装centos7下的php源
    a.yum install epel-release
    b.rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

    4.安装php5.6依赖:
    yum install --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhpr

    如果5.6安装出错,也可以选安装php7.0:(yum remove php-common -y 卸载旧版本)

     yum install php70w.x86_64 php70w-cli.x86_64 php70w-common.x86_64 php70w-gd.x86_64 php70w-ldap.x86_64 php70w-mbstring.x86_64 php70w-mcrypt.x86_64 php70w-mysql.x86_64 php70w-pdo.x86_64

    5.重启:systemctl start httpd

    6.解压phpMyAdmin-4.8.5-all-languages.tar 重命名成phpmyadmin

    7.把整个文件夹phpmyadmin 移动到/var/www/html/目录下 eg:  mv /root/phpmyadmin /var/www/html

    8./var/www/html/phpmyadmin下的config.sample.inc.php
    第40号左右修改相关信息配置数据库相关信息
    $cfg['Servers'][$i]['controlhost'] = 'localhost';

    $cfg['Servers'][$i]['controlport'] = '3306';

    $cfg['Servers'][$i]['controluser'] = 'root';

    $cfg['Servers'][$i]['controlpass'] = 'SFASA1$';

    (如果登录的时候有报错,把上面的host,port等信息配置在/var/www/html/phpmyadmin/libraries/config.default.php文件中)

    9./var/www/html/phpmyadmin/libraries/config.default.php
    修改$ cfg['blowfish_secret'] = '654321wt23asfdljksdakflsafkdsajlasfjaslfja';密码要足够长
    数字可以随便填写,解决phpmyadmin“配置文件现在需要一个短语密码”错误提示

    10.在浏览器上输入ip/phpmyadmin登录访问

    11.解决“变量 $cfg['TempDir'] (./tmp/)无法访问。phpMyAdmin无法缓存模板文件,所以会运行缓慢。”错误。在phpmyadmin文件夹下新建目录tmp 并且给予777权限

    12.不想占用80端口开业修改httpd端口号

      a.vim /etc/httpd/conf/httpd.conf  找到  Listen 80 修改为:Listen 8089  

     b. 重启 service httpd restart

  • 相关阅读:
    学习笔记TF034:实现Word2Vec
    学习笔记TF033:实现ResNet
    学习笔记TF032:实现Google Inception Net
    学习笔记TF031:实现VGGNet
    学习笔记TF030:实现AlexNet
    学习笔记TF029:实现进阶卷积网络
    学习笔记TF028:实现简单卷积网络
    学习笔记TF027:卷积神经网络
    学习笔记TF026:多层感知机
    学习笔记TF025:自编码器
  • 原文地址:https://www.cnblogs.com/peachwts/p/10498138.html
Copyright © 2011-2022 走看看