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

服務(wù)器

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

山南網(wǎng)站制作公司哪家好,找創(chuàng)新互聯(lián)!從網(wǎng)頁設(shè)計、網(wǎng)站建設(shè)、微信開發(fā)、APP開發(fā)、自適應(yīng)網(wǎng)站建設(shè)等網(wǎng)站項目制作,到程序開發(fā),運營維護(hù)。創(chuàng)新互聯(lián)自2013年創(chuàng)立以來到現(xiàn)在10年的時間,我們擁有了豐富的建站經(jīng)驗和運維經(jīng)驗,來保證我們的工作的順利進(jìn)行。專注于網(wǎng)站建設(shè)就選創(chuàng)新互聯(lián)。

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

操作系統(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ù)制下載鏈接,所以先將文件下載到本機(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
# 通過 --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 文檔默認(rèn)位置是 /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)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持創(chuàng)新互聯(lián)。

文章題目:Centos7.2編譯安裝方式搭建phpMyAdmin
當(dāng)前鏈接:http://muchs.cn/article34/chsose.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供建站公司、自適應(yīng)網(wǎng)站、網(wǎng)站改版、App開發(fā)、定制網(wǎng)站、標(biāo)簽優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

成都seo排名網(wǎng)站優(yōu)化