Home > Backend Development > PHP Tutorial > extension - php扩展无法在apache中加载

extension - php扩展无法在apache中加载

WBOY
Release: 2016-06-06 20:29:16
Original
1339 people have browsed it

自己写了扩展。通过php.ini中添加extension=xxxx.so来加载。用命令行模式的时候可以找到自己写的函数。但是用apache的时候,查看日志,写着找不到我扩展中的函数。

回复内容:

自己写了扩展。通过php.ini中添加extension=xxxx.so来加载。用命令行模式的时候可以找到自己写的函数。但是用apache的时候,查看日志,写着找不到我扩展中的函数。

猜测:是否因为命令行使用的是FPM或者其他跟命令行不一致,所以调用的配置文件ini也不一致,导致的呢?

Related labels:
php
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