nginx config php in mac system
来源:互联网 发布:521069新域名 编辑:程序博客网 时间:2024/06/07 05:49
brew is a application management component in the mac system , use it to install nginx and php is very convenience .
install nginx
$ brew install nginx
install php
$ brew tap homebrew/dupes$ brew tap josegonzalez/homebrew-php$ brew install php54 --with-mysql --with-fpm#install php5.4 if you want 5.5,execute brew install php55,but advice you install 5.4 , hehe , because we use nginx to interactive with php , maybe we should with php-fpmTo run the php-fpm
$ php-fpm
Maybe you will occur many error , but no ploblem , you can beat it .
change the nginx.conf file , the line include location php
location ~ \.php$ { root /var/www; #root is you web dir direction fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; #$document_root just the same as root , option include fastcgi_params; }
that's OK
0 0
- nginx config php in mac system
- mac nginx php-fpm
- mac 配置nginx+php
- mac-php-nginx安装
- mac nginx php fpm
- mac配置nginx+php
- exec() and system() in PHP
- mac上php+nginx配置
- mac nginx+php+mysql 配置
- mac安装nginx mysql php
- mac OSX, nginx 解析PHP
- mac下nginx+php搭建
- Nginx file system in web on CentOS7+
- Powerfull tool Automator in Mac system
- config apache and php in windows
- MAC搭建PHP环境:PHP+Nginx+yaf
- apache,php in Mac OS
- nginx-config
- ASP.NET MVC 3 网站优化总结(一) 使用 Gzip 压缩
- 关于 java.util.concurrent 您不知道的 5 件事,第 1 部分
- 敏捷开发集成工具预研
- IOS 图片上传处理 图片压缩 图片处理
- ASP.NET MVC 3 网站优化总结(二)使用ASP.NET Sprite
- nginx config php in mac system
- 趣文:如果老婆和女朋友她们是程序
- SUSE 10 下GDB无法查用调用堆栈的解决方案
- 持续集成(一)
- 借助Glances Monitor,密切关注你的系统
- solr4.5集群环境搭建
- ASP.NET MVC 3 网站优化总结(三)Specify Vary: Accept-Encoding header
- 升级xcode5.1 iOS 6.0后以前的横屏项目 变为了竖屏
- Spring配置事务管理,service端通过@Transactional注解