php扩展模块extension_dir的目录路径在哪

问:如何查看php扩展模块的路径?extension_dir

答:php -i | grep -i extension_dir

1
2
3
[root@VM_0_14_centos application]# php -i | grep -i extension_dir
extension_dir => /usr/lib64/php/modules => /usr/lib64/php/modules
sqlite3.extension_dir => no value => no value

坚持原创技术分享,谢谢鼓励我继续创作!