Home > Backend Development > PHP Tutorial > php.ini中extension默认的地址到底在哪里设置的

php.ini中extension默认的地址到底在哪里设置的

WBOY
Release: 2016-06-23 14:21:04
Original
2021 people have browsed it

我采用的ubuntu12.04,通过apt-get安装nginx+php-fpm+mysql

下面是/etc/php5/fpm/php.ini中extension_dir部分

; Directory in which the loadable extensions (modules) reside.; http://php.net/extension-dir; extension_dir = "./"; On windows:; extension_dir = "ext"
Copy after login


可是真正的extension_dir是/usr/lib/php5/20090626+lfs

我查了所有和php相关的配置文件,也没找到这个extension_dir的设置值

求解呀


回复讨论(解决方案)

; extension_dir = "./"
把这句前面分号去掉,填上你的路径

这个extension_dir是在编译的时候指定的,所以会有一个默认值
之后你可以在php.ini里面来手动指定,也就是LS说的


; extension_dir = "./"
把这句前面分号去掉,填上你的路径

按照楼上的说法 我是不可能找到了 通过apt-get安装 也看不到configure 

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