国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 服務(wù)器 > Web服務(wù)器 > 正文

Centos7.2 編譯安裝方式搭建 phpMyAdmin

2024-09-01 13:52:52
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

背景說(shuō)明:phpMyAdmin 是通過(guò)瀏覽器管理MySQL數(shù)據(jù)庫(kù)的很方便的工具

安裝方式:在本文中所有依賴軟件均使用最新版本源碼編譯安裝。

操作系統(tǒng):Centos7.2 x86_64位

一、編譯安裝 并配置 httpd 2.4.7,由于軟件依賴,先安裝 pcre apr 以及 apr-util

1. 下載 編譯 安裝 pcre

tar zxvf pcre-8.41.tar.gzcd pcre-8.41./configure --prefix=/opt/local/pcre-8.41make && sudo make install

2. 下載 編譯 安裝 apr

wget http://mirrors.hust.edu.cn/apache//apr/apr-1.6.2.tar.gztar zxvf apr-1.6.2.tar.gzcd 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/expatmake && 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)加入 庫(kù)文件支持

Centos,phpMyAdmin,centos7.2,centos7裝phpmyadmin

(2) 加入主頁(yè)索引

Centos,phpMyAdmin,centos7.2,centos7裝phpmyadmin

(3)加入文件類型支持

Centos,phpMyAdmin,centos7.2,centos7裝phpmyadmin

二、編譯安裝php

5. php 源碼下載時(shí),在網(wǎng)頁(yè)無(wú)法復(fù)制下載鏈接,所以先將文件下載到本機(jī)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# 通過(guò) --with-apxs2選項(xiàng),編譯后會(huì)在 /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.gztar zxf phpMyAdmin-4.7.4-all-languages.tar.gz ; mv phpMyAdmin-4.7.4-all-languages phpMyAdmin
# apache2 文檔默認(rèn)位置是 /opt/local/apache2/htdocs/ , 將phpMyAdmin復(fù)制到htdocs下,省略了httpd.conf的配置,直接在瀏覽器訪問(wèn) phpMyAdmin即可sudo cp -rf phpMyAdmin /opt/local/apache2/htdocs/# 配置 phpMyAdmin的數(shù)據(jù)庫(kù)連接sudo cp /opt/local/apache2/htdocs/phpMyAdmin/config.sample.inc.php /opt/local/apache2/htdocs/phpMyAdmin/config.inc.phpsudo vim /opt/local/apache2/htdocs/phpMyAdmin/config.inc.php 

Centos,phpMyAdmin,centos7.2,centos7裝phpmyadmin

7.瀏覽器訪問(wèn) phpMyAdmin

Centos,phpMyAdmin,centos7.2,centos7裝phpmyadmin

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持VEVB武林網(wǎng)。


發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 万年县| 江西省| 弥渡县| 吉隆县| 灵宝市| 龙川县| 桂阳县| 兴宁市| 乌拉特后旗| 仁化县| 嘉祥县| 遵化市| 龙口市| 凤冈县| 遵化市| 怀来县| 苏尼特左旗| 离岛区| 肃宁县| 玉田县| 三河市| 水城县| 双江| 绥阳县| 海安县| 监利县| 灯塔市| 岳阳市| 廊坊市| 宣城市| 大渡口区| 昌江| 合水县| 青州市| 嘉义县| 河源市| 五常市| 洛扎县| 望江县| 益阳市| 六盘水市|