[精讚] [會員登入]
1469

[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/MariaDB] 表格的引擎 (engine):查看及修改 MySQL表格引擎預設為 MyISAM,但在4.0以上的mysql 其實支援不只一種引擎,各有優缺點,這篇介紹引擎的操作。

Mysql 安裝完畢要做的事 Mysql 安裝完畢後,該處理的流程

[MySQL/Mariadb] console 將查詢結果輸出到檔案 在mysql 的console中該如何將查詢結果輸出到檔案?

[Mysql] 使用union合併兩個表 mysql合併兩個表的方法,使用union

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

Mysql INSERT ... ON DUPLICATE KEY UPDATE 寫法,MYSQL如果存在的修改,不存在就新增的寫法 Mysql有則修改,無則新增的sql寫法

我有話要說

>>

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

訪客留言

[無留言]

隨機好文

外匯課程經驗 有天遇到某個朋友的正妹朋友,說她有個很棒的外匯投資課程,要我們去聽,只收場地費200大洋。她又說續效最差一個月也有1%,誰還在苦哈哈上班?

[AS3] FLASH 引入外部as檔 FLASH AS3中,若要引用另外撰寫的 class(*.as) 檔案,該如何處理?

我的便利帶變垃圾袋--談預付制 預付制說穿了,就是對賣家極有利,對買家極小利的消費經營模式。

[CKeditor4] 修改特殊字元 CKeditor4 中設定自己想用的特殊字元

[HTLM5] 表單時間日期date/time輸入類型 介紹HTML5和時間有關的輸入類型date/datetime/datetime-local/month/time/week