phpmyadmin java_phpMyAdmin的配置
环境说明:
[root@yunwei-test libraries]#cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
[root@yunwei-test libraries]#/application/nginx-1.10.2/sbin/nginx -V
nginx version: nginx/1.10.2
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)
built with OpenSSL 1.0.2k-fips 26 Jan 2017
TLS SNI support enabled
configure arguments: --prefix=/application/nginx-1.10.2 --user=www --group=www --with-http_ssl_module --with-http_stub_status_module
[root@yunwei-test libraries]# mysql -V
mysql Ver 14.14 Distrib 5.6.36, for Linux (x86_64) using EditLine wrapper
[root@yunwei-test libraries]# /application/php-5.5.32/bin/php -v
PHP 5.5.32 (cli) (built: Jul 12 2018 14:10:03)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
下载PHPMyadmin软件包解压到nginx站点目录下
[root@yunwei-test ~]# wget https://files.phpmyadmin.net/phpMyAdmin/4.8.2/phpMyAdmin-4.8.2-all-languages.zip[root@yunwei-test ~]# unzip phpMyAdmin-4.8.2-all-languages.zip[root@yunwei-test ~]# mv phpMyAdmin-4.8.2-all-languages/* /application/nginx-1.10.2/html/
[root@yunwei-test ~]# chown -R www.www /application/nginx-1.10.2/html/ # www为nginx worker进程用户
nginx配置文件
worker_processes 1;
events {
worker_connections1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout65;
log_format main'$remote_addr - $remote_user [$time_local] "$request"'
'$status $body_bytes_sent "$http_referer"'
'"$http_user_agent" "$http_x_forwarded_for"';
server {
listen80;
server_name 10.0.3.59;
root html;
index index.php index.html index.htm;
access_log logs/access.log main;
location~ .*\.(php|php5)?$ {
fastcgi_pass127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
}
}
修改/libraries/config.default.php配置文件。
39 $cfg['PmaAbsoluteUri'] = 'phpMyAdmin主机IP';
108 $cfg['blowfish_secret'] = '短语密码'; #需要32位以上131 $cfg['Servers'][$i]['host'] = '数据库IP';138 $cfg['Servers'][$i]['port'] = '数据库端口,默认3306';248 $cfg['Servers'][$i]['auth_type'] = 'cookie';262 $cfg['Servers'][$i]['user'] = '连接数据库的用户';269 $cfg['Servers'][$i]['password'] = '对应的数据库用户密码';
# $cfg['Servers'][$i]['auth_type'] = ['http'|'cookie'|'config']
* 'config' 认证($auth_type = 'config')是最简单的模式,用户名和密码存储在 config.inc.php 文件里;
* 'cookie' 认证($auth_type = 'cookie'),以MySQL 用户登录。
# $cfg['Servers'][$i]['user']
如果 auth_type = 'config',phpMyAdmin 将使用这个账户来连接 MySQL 服务器。
浏览器访问phpMyAdmin,输入数据库用户和密码,连接数据库。
解决: 配置文件现在需要一个短语密码。
$cfg['blowfish_secret'] = '短语密码'; 设置一个32位以上的短语密码。
解决:$cfg['TempDir'] (./tmp/) 读取失败且不能建立缓存, phpMyAdmin运行速度将受影响.
修改nginx站点目录html权限为worker process用户
参考地址:
www.php.cn
www.wpdaxue.com
www.php1.cn
phpmyadmin官网地址:https://www.phpmyadmin.net/
phpmyadmin java_phpMyAdmin的配置相关推荐
- apache mysql 连接数 winnt,APACHE PHP MYSQL PHPMYADMIN超详细配置教程
Apache+PHP+MySQL+phpMyAdmin超详细配置教程 安装之前需要下载 Apache2.0.59 PHP4.4.4Win32 MySQL4.12 phpMyAdmin2.9.1.1rc ...
- RH Linux 企业5+apache+mysql+php+phpmyadmin的简单配置.
1年前在论坛发的帖.现在归纳到博客里~ RH Linux 企业5+apache+mysql+php+phpmyadmin的简单配置. 小生初学者,刚工作,分享下刚刚的成果. RedHat Linux ...
- php mysql环境 xp_PHP环境配置 for winXP(IIS PHP5 MySQL5 ZendOptimizer phpmyadmin安装与配置...
php环境配置 for winXP(IIS PHP5 MySQL5 ZendOptimizer phpmyadmin安装与配置) /********************************** ...
- xampp的mysql要怎么配置_XAMPP phpmyadmin MYSQL的配置
1\xampp phpmyadmin的配置 1.打开"路径/phpmyadmin/libraries/config.default.php",查找相关项并修改为以下内容: $cfg ...
- centos下phpmyadmin的安装配置
centos下安装配置phpmyadmin,我花了二个晚上,郁闷的我不行,配置phpmyadmin简单吧,很简单,我刚工作的时候,就配置过,很顺利,5年后,竟然花了我二个晚上,感觉在centos下有好 ...
- Linux下Nginx、MySQL、PHP5、phpMyAdmin安装与配置
以前在Linux下,只配过LAMP,没尝试过Nginx,这次换个口味尝试一下,中间遇到了一个比较无语的小错误浪费了很长时间(下面会说到).总体来说还算比较顺利吧,不过安装PHP的目的只是为了用phpM ...
- Centos phpmyadmin+php+httpd配置
题目 DBMS 在Server01上完成MariaDB数据库的安装,添加数据库root用户密码为Chinaskill22! 安装MariaDB 数据库服务器组件; MariaDB数据库管理员信息:Us ...
- linux phpmyadmin 配置,phpMyAdmin的安装配置
phpMyAdmin是一款MySQL图形化管理工具,是一种使用PHP开发的B/S模式的MySQL客户端软件. 首先给大家交代一下我的目录结构: 我的MySQL.PHP.Apache都在d盘下,如图:( ...
- config.user.inc.php,phpMyAdmin Docker 简单配置
phpMyAdmin (以下简称 PMA )的数据字典( Data Dictionary )对我来说是一个比较有用的功能(实际上我只用这个功能...),可以以网页形式浏览所有表.视图.字段.索引.注释 ...
- PHP开发环境配置:安装与配置Apache、PHP、MySQL、PhpMyAdmin
目标 Ü 在Windows上安装与配置MySQL Ü 在Windows上安装与配置Apache Ü 在Windows上安装与配置PHP 一般情况下,使用P ...
最新文章
- gensim的word2vec如何得出词向量(python)
- 二层交换机的六条安全秘诀
- egg(110,111,112)--egg之微信支付
- ASP.NET (C#) 面试笔试题目收集
- 阿联酋起源人工智能研究院(IIAI)诚邀优秀人才加盟
- 今夏发布的Terraform 0.12将提供for循环和第一类表达式
- 阿里天池_优秀策略答辩PPT和相关博客
- Tensorflow 2.0 打印 Tensor
- 习题2.2 数组循环左移(20 分)浙大版《数据结构(第2版)》题目集
- 计算机考研安大好考还是郑大好考,这5所“低调到隐形”的211大学,不仅分数低,还好考...
- Wifite批量破解WEP/WPA/WPS
- 详细解说Java 技术的新纪元
- 计算机应用基础教案 电子书,计算机应用基础教案(全套)-20210511075659.pdf-原创力文档...
- Detached InstanceError:Instance is not bound to a Session 关闭session后使用SQLAlchemy对象
- fiddler抓包时候的 tunnel to是什么意思
- bomb和mysql_Bigger Bomb
- 【APICloud系列|1】华为应用市场 应用版权证书或代理证书怎么填
- 你有多久没有收到圣诞节的祝福了,你收到那个女孩(男孩)的祝福了吗?
- pmw原理c语言,详细解析单片机 PMW 控制基本原理
- {转发}尚硅谷资料集锦