Home  >  Article  >  Backend Development  >  apache - 编译安装PHP,如何生成libphp.so

apache - 编译安装PHP,如何生成libphp.so

WBOY
WBOYOriginal
2016-06-06 20:09:002025browse

编译安装PHP,如何指定Apache调用模块libphp.so的安装目录

回复内容:

编译安装PHP,如何指定Apache调用模块libphp.so的安装目录

如果以Apache mod_php方式运行PHP,需要先构建Apache,然后在configure PHP时用--with-apxs2=/usr/local/bin/apxs 指定Apache的扩展编译程序apxs,这样才能编译出libphp5.so这个模块,Apache在运行时就是调用这个模块来处理PHP请求。

via http://www.oschina.net/question/998413_137073

Statement:
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