【发布时间】:2017-08-09 02:55:46
【问题描述】:
我用这些构建 PHP 源代码
'./configure' '--with-gd' '--enable-fpm' '--prefix=/usr/local/php5.6' '--with-curl=/usr/local' '--with-openssl' '--with-pdo-mysql' '--with-jpeg-dir=/usr/local' '--with-mcrypt' '--enable-bcmath' '--enable-zip' '--with-zlib' '--enable-mbstring' '--with-apxs2=/usr/sbin/apxs' '--with-mysql' '--with-config-file-path=/etc/php5.6'
并使用 libphp5.so 文件运行 httpd,phpinfo echo
配置文件 (php.ini) 路径 | /etc/php5.6
加载的配置文件 | (无)
我在/ect/php5.6 中有一个php.ini 文件,但是我重新启动了httpd 服务但从未加载过配置文件。
我的系统是 CentOS 6.8,PHP 版本是 5.6 和 Apache2.2
【问题讨论】: