[精讚] [會員登入]
1335

[MariaDB] Centos 7安裝mariadb + apache + php + phpmyadmin

Centos 7安裝mariadb+apache+php+phpmyadmin

分享此文連結 //n.sfs.tw/10321

分享連結 [MariaDB] Centos 7安裝mariadb + apache + php + phpmyadmin@新精讚
(文章歡迎轉載,務必尊重版權註明連結來源)
2022-10-07 11:30:13 最後編修
2016-11-29 11:55:33 By 張○○
 

自動目錄

 

此文部分內容因為版本更新後失效,僅供參考。

2022年有更新的文章可參考 [Centos7] 安裝apache+php7+mariadb10+selinux@新精讚

OS

# uname -a
Linux localhost.localdomain 3.10.0-327.36.2.el7.x86_64 #1 SMP Mon Oct 10 23:08:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

CentOS Linux release 7.2.1511 (Core)

安裝Mariadb(5.5)

安裝SERVER+CLIENT Devel
# yum install mariadb*

啟動
#  systemctl start mariadb

設定密碼

# mysql

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 2
Server version:
5.5.50-MariaDB MariaDB Server

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> SET PASSWORD FOR 'root'@'localhost' = PASSWORD( '3567488' );

安裝APACHE

# yum install httpd

# service httpd start

開啟防火牆
# firewall-cmd --zone=public --add-port=80/tcp --permanent

重啟防火牆
# service firewalld restart

安裝版本
# apachectl -v
Server version: Apache/2.4.6 (CentOS)
Server built:   Jul 18 2016 15:30:14

安裝PHP

# yum install php

# yum install php-mysql

安裝PHPMyAdmin

# yum install wget

# yum install unzip

# yum install php-mbstring

到網頁的目錄
# cd /var/www/html

去phpmyadmin官網下載最新的版本(2016.11.29)是4.6.5.1,此版本需要 PHP 5.5 to 7.0
# wget https://files.phpmyadmin.net/phpMyAdmin/4.6.5.1/phpMyAdmin-4.6.5.1-all-languages.zip
# unzip phpMyAdmin-4.6.5.1-all-languages.zip

或 PHP 5.3.7 to 7.0
# wget https://files.phpmyadmin.net/phpMyAdmin/4.4.15.9/phpMyAdmin-4.4.15.9-all-languages.zip
# unzip phpMyAdmin-4.4.15.9-all-languages.zip

修改目錄名稱
# mv phpMyAdmin-4.x.x.x-all-languages phpMyAdmin

開啟你的網頁http://x.x.x.x/phpMyAdm/

END

你可能感興趣的文章

[Mysql] 建立叢集式資料庫2/4 -- DB2、DB3設定 使用galera建立Mysql的叢集式資料庫 ,繼續建立第2,第3台DBs

[Mysql/Mariadb] Left Join 和 Right Join 合併表單 SQL語法中的 Left Join 和 Right Join 很常用,但是我常會忘記,所以寫下來備忘。

[Mysql/MariaDB] 查看資料庫所占空間 查看資料庫在磁碟中所占空間

[Mysql/Mariadb] 全文檢索 fulltext index 關於 MySQL 的全文檢索

[Mysql/MariaDB] 加解密函數 Mysql/MariaDB上的加解密函數

[Mysql/Mariadb] 忘記root密碼 常常會忘記root 密碼,簡單的幾步驟回復

我有話要說

>>

限制:留言最高字數1000字。 限制:未登入訪客,每則留言間隔需超過10分鐘,每日最多5則留言。

訪客留言

[無留言]

隨機好文

[jQuery] textarea 的取值和給值 HTML 的 TEXTAREA 標籤若要用 jquery 取值,不能使用 .text() 或 .html() ,使用 .

UTF-8 BOM (Byte Order Mark) 的問題 在 Michael Kaplan 那看到 Every character has a story #4: U+feff

[Windows7] 移除IE10及移除IE11 Windows7 不得已的情況要移除IE11或IE10怎麼做?

[札記] 2016.7~12月札記 札記,只是札記

UTF8中文字/全形一覽 快速查詢urf-8的中文字,共計13246中文字(5401常用字+7652罕用字+日文或編號),292全形符號,27半形符號。