歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> CentOS 6.2 源代碼編譯安裝Nginx+MySQL+PHP+WordPress之安裝Word

CentOS 6.2 源代碼編譯安裝Nginx+MySQL+PHP+WordPress之安裝Word

日期:2017/3/2 10:09:00   编辑:關於Linux

一、配置Nginx 支持 php

vi /usr/local/nginx/conf/nginx.conf
user www www;
index index.php index.html;
#取消FastCGI server 部分 location 的注釋,並要注意 fastcgi param 行的參數,改為 $document_root$fastcgi_script_name,或使用絕對路徑
:wq

service nginx restart
二、安裝WordPress

cd /usr/local/src
tar zxvf latest.tar.gz
chown -R www.www /usr/local/nginx/html
chmod -R 700 /usr/local/nginx/html
創建mysql數據庫

mysql -u root -p create database wordpress;
exit;

Copyright © Linux教程網 All Rights Reserved