Centos7.2 編譯安裝方式搭建 phpMyAdmin
背景說明:phpMyAdmin 是通過瀏覽器管理MySQL數(shù)據(jù)庫的很方便的工具
安裝方式:在本文中所有依賴軟件均使用最新版本源碼編譯安裝。
操作系統(tǒng):Centos7.2 x86_64位
一、編譯安裝 并配置 httpd 2.4.7,由于軟件依賴,先安裝 pcre apr 以及 apr-util
1. 下載 編譯 安裝 pcre
tar zxvf pcre-8.41.tar.gz cd pcre-8.41 ./configure --prefix=/opt/local/pcre-8.41 make && sudo make install
2. 下載 編譯 安裝 apr
wget http://mirrors.hust.edu.cn/apache//apr/apr-1.6.2.tar.gz tar zxvf apr-1.6.2.tar.gz cd apr-1.6.2 # /bin/rm: cannot remove `libtoolT': No such file or directory :/\$RM "\$cfgfile" 注釋掉 :/RM=\'$RM 改為 RM='$RM -f' make && sudo make install
3. 下載 編譯 安裝 apr-util
cd apr-util-1.6.0 ./configure --prefix=/opt/local/apr-util-1.6.0 --with-apr=/opt/local/apr-1.6.2 --with-expat=/opt/local/expat make && sudo make install
4. 下載 編譯 安裝 apache2
rpm -qa | grep apr ; yum erase apr -y ./configure --prefix=/opt/local/apache2 --enable-module=shared --with-pcre=/opt/local/pcre-8.41 --with-apr-util=/opt/local/apr-util-1.6.0 --with-apr=/opt/local/apr-1.6.2 #ServerName localhost:80 取消注釋
配置httpd.conf 以便 支持 php7
(1)加入 庫文件支持

(2) 加入主頁索引

(3)加入文件類型支持

二、編譯安裝php
5. php 源碼下載時,在網(wǎng)頁無法復(fù)制下載鏈接,所以先將文件下載到本機windows,然后上傳到服務(wù)器
scp php-7.1.8.tar.gz zheng@172.16.11.236:~/
tar zxf php-7.1.8.tar.gz && cd php-7.1.8 ./configure --prefix=/opt/local/php-7.1.8 --with-apxs2=/opt/local/apache2/bin/apxs --with-mysqli --with-pdo-mysql --enable-mbstring # 通過 --with-apxs2選項,編譯后會在 /opt/local/apache2/modules/ 生成 libphp7.so文件 make && sudo make install
三、配置phpMyAdmin
6. 下載 配置 phpMyAdmin
wget https://files.phpmyadmin.net/phpMyAdmin/4.7.4/phpMyAdmin-4.7.4-all-languages.tar.gz tar zxf phpMyAdmin-4.7.4-all-languages.tar.gz ; mv phpMyAdmin-4.7.4-all-languages phpMyAdmin
# apache2 文檔默認位置是 /opt/local/apache2/htdocs/ , 將phpMyAdmin復(fù)制到htdocs下,省略了httpd.conf的配置,直接在瀏覽器訪問 phpMyAdmin即可 sudo cp -rf phpMyAdmin /opt/local/apache2/htdocs/ # 配置 phpMyAdmin的數(shù)據(jù)庫連接 sudo cp /opt/local/apache2/htdocs/phpMyAdmin/config.sample.inc.php /opt/local/apache2/htdocs/phpMyAdmin/config.inc.php sudo vim /opt/local/apache2/htdocs/phpMyAdmin/config.inc.php

7.瀏覽器訪問 phpMyAdmin

以上就是本文的全部內(nèi)容,希望對大家的學習有所幫助,也希望大家多多支持腳本之家。
- 詳解Centos7源碼編譯安裝 php7.2之生產(chǎn)篇
- Centos7.2 編譯安裝PHP7.0.2的步驟
- Linux 6 下編譯安裝 PHP 5.6實例詳解
- Centos 6.8編譯安裝LNMP環(huán)境(Nginx+MySQL+PHP)教程
- 解決PHP 7編譯安裝錯誤:cannot stat ‘phar.phar’: No such file or directory
- Centos7下編譯安裝配置Nginx+PHP+MySql環(huán)境
- CentOS 6.5編譯安裝Nginx 1.10.2+MySQL 5.5.52+PHP5.5.38
- Ubuntu 16.04源碼編譯安裝PHP 5.6.29的教程
- Centos 6.5系統(tǒng)下編譯安裝PHP 7.0.13的方法
- PHP7.3.10編譯安裝教程
相關(guān)文章
Windows 和 Linux 上Redis的安裝守護進程配置方法
​ Redis是目前最常用的非關(guān)系型數(shù)據(jù)庫(NOSql)之一,常以Key-Value的形式存儲。這篇文章主要介紹了Windows 和 Linux 上Redis的安裝守護進程配置 ,需要的朋友可以參考下2019-06-06
Centos7的Firewalld防火墻基礎(chǔ)命令詳解
這篇文章主要介紹了Centos7的Firewalld防火墻基礎(chǔ)命令詳解,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧2019-11-11
CentOS 7.6 Telnet服務(wù)搭建過程(Openssh升級之戰(zhàn) 第一任務(wù)備用運輸線搭建)
這篇文章主要介紹了CentOS 7.6 Telnet服務(wù)搭建過程(Openssh升級之戰(zhàn) 第一任務(wù)備用運輸線搭建),本文給大家介紹的非常詳細,具有一定的參考借鑒價值,需要的朋友參考下吧2019-10-10

