centos php-fpm nginx配置
2015-08-06 18:52
337 查看
移除旧的软件包: yum remove httpd* php* 安装: yum install php php-fpm yum install php-gd php-mysql php-mbstring php-xml php-mcrypt 验证配置文件: /etc/init.d/nginx configtest 重启: /etc/init.d/nginx restart /etc/init.d/php-fpm restart 出现这个错误可能是路径写错了: Access denied. nginx php-fpm 访问.php文件出现Access denied 也可能是权限,改为nginx: vi /etc/php-fpm.d/www.conf ; Unix user/group of processes ; Note: The user is mandatory. If the group is not set, the default user's group ; will be used. ; RPM: apache Choosed to be able to access some dir as httpd user = nginx ; RPM: Keep a group allowed to write in log dir. group = nginx nginx节点配置示例: server { listen 80; server_name domain; root /wwwdir; location / { index index.html index.htm index.php; } # location ~ \.php$ { include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }
相关文章推荐
- [转编]windows下nginx默认80端口被System占用,造成nginx启动报错的解决方案
- nginx php-fpm记录php错误日志怎么配置
- nginx限制某个IP同一时间段的访问次数
- nginx进程间的通信机制源码分析(二)-------原子操作、自旋锁、文件锁
- nginx+apache环境伪静态规则是否有效的测试方法
- logstash分析nginx、dns日志
- nginx 502错 failed (13: Permission denied)
- nginx错误记录
- nginx 添加404页面后,仍然提示file not found
- nginx 连接限制新语法
- keepalived+nginx实现双机热备
- Nginx Lua
- centos7 编译 nginx
- nginx 要改进的地方基础
- 域名泛解析后nginx拒绝未绑定域名
- nginx 一般配置实例 静态页面
- Nginx 是如何为性能和规模做设计的?
- nginx-负载均衡
- nginx记录真是的IP地址 <备忘>
- Nginx+Apache配置详解