CentOS下phpMyAdmin安裝

來源:互聯網
上載者:User

前提:您已經啟動了Apache和MySQL伺服器了。CentOS在剛安裝完畢時候,並沒有啟動這兩個伺服器,需要我們在系統服務裡面啟動它們。

1,我們要以root帳號登入 。

2,PHP支援模組安裝。在CentOS作業系統安裝完畢後,其實PHP支援模組並沒有安裝上去,如果想使用PhpMyAdmin,首先需要安裝PHP支援模組,我們需要兩個PHP支援模組:一,“PHP scripting language for creating dynamic web sites”;二,“A module for PHP applications that use MySQL databases”,把這兩個模組安裝完畢後,我們就可以運行PHP,並且在PHP中可以對MySQL訪問了。

3,下載PhpMyAdmin。官方網站:http://www.phpmyadmin.net/home_page/index.php 到這裡下載最新版的PhpMyAdmin,選擇“tar.gz”副檔名的檔案。下載完畢後,把下載檔案拷貝到“/var/www/html”目錄中。

目前最新版PhpMyAdmin為“phpMyAdmin-3.5.5-all-languages.tar.gz”,以下均使用此檔案名稱。

4,啟動shell終端,按照以下步驟操作:

a,進入網站根目錄

cd /var/www/html

b,解壓程式壓縮包

tar xvfz phpMyAdmin-3.5.5-all-languages.tar.gz

c,移動目錄phpMyAdmin-3.5.5-all-languages到phpmyadmin檔案夾

mv phpMyAdmin-3.5.5-all-languages phpmyadmin

d,進入phpmyadmin目錄

cd phpmyadmin

e,複製樣本設定檔到config.inc.php檔案

cp config.sample.inc.php config.inc.php

f,重啟apache

service httpd restart

5,驗證是否PhpMyAdmin安裝成功。啟動瀏覽器,在地址欄中輸入:http://localhost/phpmyadmin/ 如果安裝成功,大家就應該看到PhpMyAdmin的頁面了。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.