[精讚] [會員登入]
1440

[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] console mode 的亂碼處理 使用MySQL的console mode如果出現亂碼 在,要怎麼處理?

[MYSQL] 查看資料表狀態 要看資料表的狀態,不是結構喔,以前我都會用 procedure analyse(): SELECT `colname`

[Mysql/MariaDB] 使用Memory引擎修改及設定最大值的方法 Mysql/MariaDB 使用Memory引擎預設是16MB,修改及設定最大值的方法。

[phpmyadmin] 登錄超時 (1440 秒未操作),請重新登錄 phpmyadmin登錄超時 (1440 秒未操作),請重新登錄的問題,該如何解決?

兩次使用InnoDB的慘痛經驗 Mysql 的Innodb引擎雖然好用,但是我得說說我兩次的慘痛經驗,這讓我考慮以後可能不會再使用innodb了

[Mysql] 修改欄位的自動索引值autoindex (auto_increment ) Mysql 新增、刪除、修改、查看欄位的自動索引值autoindex (auto_increment)

我有話要說

>>

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

訪客留言

[無留言]

隨機好文

[Win7] 燒錄 iso 檔 在Windows7 中內建燒錄程式,可以直接把檔案拉到光碟機裡,再執行燒錄。

世紀帝國征服者新版本--被遺忘的帝國 世紀帝國征服者新版本--被遺忘的帝國 世紀二代的征服者是精典遊戲中的精典,aofe更好玩...

[CodeIgniter 3] 資料庫的使用方法整理1/2 --Select的使用 [CodeIgniter 3] 資料庫的使用方法整理:Select的使用

[PHP]解決ksort新增的SORT_NATURAL|SORT_FLAG_CASE方法 php>=5.4中ksort函數多了SORT_NATURAL 和 SORT_FLAG_CASE 旗標,對舊版的PHP中要怎麼辦?

在Centos7 下安裝 Wildfly10 wildfly以前叫JBoss,2014.11.20改名叫Wildfly,起始版本是Wildfly8,現在已經出到Wil