背景说明:phpMyAdmin是通过浏览器管理MySQL数据库的很方便的工具
安装方式:在本文中所有依赖软件均使用最新版本源码编译安装。
操作系统:Centos7.2 x86_64位
1。下载编译安装pcre
焦油zxvf pcre-8.41.tar.gz cd pcre - 8.41 ./configure——prefix=/opt/地方/pcre - 8.41 使,,sudo make install
2。下载编译安装4月
wget http://mirrors.hust.edu.cn/apache//apr/apr-1.6.2.tar.gz 焦油zxvf apr-1.6.2.tar.gz cd apr-1.6.2 #/bin/rm:不能删除“libtoolT”:没有这样的文件或目录 :RM美元/\ \ $ cfgfile”注释掉 RM:/RM=\ '美元改为RM=' $ RM - f ' 使,,sudo make install
3。下载编译安装apr-util
cd apr-util-1.6.0 ./configure——prefix=/opt/地方/apr-util-1.6.0——with-apr=/opt/地方/apr-1.6.2——with-expat=/opt/地方/外籍人士 使,,sudo make install
4。下载编译安装输入
rpm qa | grep 4月;百胜擦掉apr - y ./configure——prefix=/opt/地方/输入——enable-module=共享with-pcre=/opt/地方/pcre - 8.41——with-apr-util=/opt/地方/apr-util-1.6.0——with-apr=/opt/地方/apr-1.6.2 # ServerName localhost: 80取消注释
配置httpd。会议以便支持php7
(1)加入库文件支持
(2)加入主页索引
(3)加入文件类型支持
5。php源码下载时,在网页无法复制下载链接,所以先将文件下载到本机窗口,然后上传到服务器
scp php-7.1.8.tar。广州zheng@172.16.11.236: ~/
焦油zxf php-7.1.8.tar。广州,,cd php-7.1.8 ./configure——prefix=/opt/地方/php-7.1.8——with-apxs2=/opt/地方/输入/bin/apx型——with-mysqli with-pdo-mysql——enable-mbstring #通过——with-apxs2选项,编译后会在/opt/地方/输入/模块/生成libphp7.so文件 使,,sudo make install
6。下载配置phpMyAdmin
wget https://files.phpmyadmin.net/phpMyAdmin/4.7.4/phpMyAdmin-4.7.4-all-languages.tar.gz 焦油zxf phpMyAdmin-4.7.4-all-languages.tar。广州;mv phpMyAdmin-4.7.4-all-languages phpMyAdmin
#输入文档默认位置是/opt/地方/输入/根/,将phpMyAdmin复制到根下,省略了httpd。设计的配置,直接在浏览器访问phpMyAdmin即可 sudo cp射频phpMyAdmin/opt/地方/输入/根/#配置phpMyAdmin的数据库连接 sudo cp/opt/地方/输入/根/phpMyAdmin/config.sample.inc。php/opt/地方/输入/根/phpMyAdmin/config.inc.php sudo vim/opt/地方/输入/根/phpMyAdmin/config.inc。php
7。浏览器访问phpMyAdmin
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。