怎么在fedora下为apache和nginx配置php

WBOY
Release: 2016-06-13 12:52:50
Original
894 people have browsed it

如何在fedora上为apache和nginx配置php
现在apache已经可以用php了,
现在nginx还没法用php./我是先安装的lamp,然后后来才安装的nginx,求高人指点.


------解决方案--------------------
1.你先安装了APACHE,那他会先占用80端,那么你的NGNIX就不能使用80端了
2.NGNIX没有支持PHP的接口,只有通过FPM这些工具才能解释PHP

可以去找一下相关的资料.

至于为什么APACHE能解释PHP,那是因为编译PHP的时候,可以选择编译一个APACHE处理PHP的模块,php5_module.so;他是通过apache_handle处理PHP的
而NGNIX没有实现响应的接口,只有借助外来软件,比如FPM,FPM通过FASTCGI的方式实现了PHP的接口.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template