nginx+php环境搭建说明
来源:互联网 发布:2017中国贫富差距数据 编辑:程序博客网 时间:2024/05/19 22:56
Environment:
四、启动nginx
Windows 7
nginx 1.2.6
php 5.4.11
Configuration:
一、安装、配置PHP
1、下载PHP包并解压;
2、将解压目录里的php.ini-development复制至C:\Windows\下,并改名为php.ini;
二、安装、配置nginx
1、下载nginx installer包并安装;
2、修改conf/nginx.conf:
location / { root E:/www; index index.html index.htm index.php; access_log E:/www/nginx.log;}location ~ \.php$ { rootE:/www; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi_params;}
3、修改conf/fastcgi_params
在文件最后增加:
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
三、启动PHP FastCGI服务
c:/php/php-cgi.exe -b 127.0.0.1:9000 -c c:/windows/php.ini
四、启动nginx
直接双击nginx.exe
五、测试
- nginx+php环境搭建说明
- nginx php环境搭建
- 搭建php-nginx环境
- Nginx+PHP(FastCGI)环境搭建
- Nginx+PHP-FPM环境搭建
- nginx+php-fpm环境搭建
- nginx+php +mysql环境搭建
- windows nginx php 环境搭建
- (7)nginx: 搭建 nginx+php环境
- MAC搭建PHP环境:PHP+Nginx+yaf
- OpenBSD.Nginx.MySQL.PHP环境搭建手册
- Linux下搭建nginx和php环境
- Ubuntu下搭建PHP+Nginx环境
- CentOS + Nginx + PHP + MySQL 环境搭建
- Windows下Nginx+php环境搭建
- linux下nginx+php+mysql环境搭建
- Win+Nginx+PHP+MySQL环境搭建
- 1. Win+Nginx+PHP+MySQL环境搭建
- 当程序崩溃的时候怎么办1 EXC_BAD_ACCESS
- OpenGL Rendering Pipeline
- PyCrypto —— 一个极好的信息安全python库
- iOS上缓存文件有效期的实现
- node.js基于工厂方法的mysql模块封装
- nginx+php环境搭建说明
- SSE掩码运算测试
- 通过“IP 安全策略”,阻止外部某个ip和本机的任何通讯
- python http client模块
- FFmpeg和SDL的API
- 本java菜鸟第一天上机的结果与记录
- centos下cacti 的安装配置
- IT男遭遇“铁老大”
- JS 将字符串转换成日期类型