a: apache????????????????
m: mariadb, mysql
p: php, perl, python
LAMMP: memcached 緩存?
靜態(tài)資源:靜態(tài)內(nèi)容瘸彤;客戶端從服務(wù)器獲得的資源的表現(xiàn)形式與原文件相同修然;
動態(tài)資源:通常是程序文件,需要在服務(wù)器執(zhí)行之后质况,將執(zhí)行的結(jié)果返回給客戶端愕宋;
CGI: Common Gateway Interface? 通用網(wǎng)關(guān)接口
centos7: yum install httpd? php php-mysql maridab-server?? 注意:php要求httpd使用prefork MPM
?
rpm -ql mariadb????
httpd+php:??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? modules 直接作為httpd的模塊 /etc/httpd/conf.d/php.conf
cgi???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? fastcgi(fpm)
httpd -M 查看加載的模塊
請求流程:Client --> (http) --> httpd --> (cgi) --> application server (program file) --> (mysql) --> mariadb???? 客戶端通過http協(xié)議發(fā)向httpd服務(wù),httpd能夠判斷是否擁有動態(tài)請求结榄,如果有中贝,經(jīng)由cgi或者模塊形式交由后端服務(wù)程序,應(yīng)用程序文件有可能需要訪問mysql,通過mysql協(xié)議訪問mysql臼朗。
phpmyadmin 安裝 以上配置缺少php-mbstring額外安裝包邻寿,解壓后放到相應(yīng)文件目錄下默認(rèn)為/var/www/html? ? cp config.sample.inc.php config.inc.php? 創(chuàng)建相應(yīng)數(shù)據(jù)庫和用戶
GRANT ALL PRIVILEGES ON? databasename.* to 'user'@'localhost/%' IDENTIFIED BY 'password'
SET? PASSWORD FOR 'user'@'local' =PASSWORD('mima');