标签:fastcgi 增加 安装 rpc file rip 数据 conf ring
yum remve httpd* php*
安装nginx
yum install nginx
安装php和php-fpm
yum install php php-fpm
安装数据库
yum install mariadb mariadb-server
安装扩展
yum install php-gd php-mysql php-mbstring php-xml php-mcrypt? php-imap php-odbc php-pear php –xmlrpc
vim /etc/nginx/nginx.conf
在http模块中添加配置:
??????? location / {
???????? root?? /usr/share/nginx/html;
??????????? index? index.html index.htm index.php;
???????? }
location ~ \.php$ {
??????????? root?????????? html;
??????????? fastcgi_pass?? 127.0.0.1:9000;
??????????? fastcgi_index? index.php;
??????????? fastcgi_param? SCRIPT_FILENAME? $document_root$fastcgi_script_name;
??????????? include??????? fastcgi_params;
}
增加验证文件
<?php?
phpinfo();?
?>
标签:fastcgi 增加 安装 rpc file rip 数据 conf ring
原文地址:http://blog.51cto.com/jiandan/2157171