我的编译配置:
./configure \ --with-fpm \ --with-libevent=shared,/usr/lib \ --with-mcrypt \ --with-zlib \ --with-curl \ --enable-mbstring \ --with-openssl \ --with-MysqL \ --with-MysqL-sock \ --with-gd \ --with-jpeg-dir=/usr/lib \ --enable-gd-native-ttf \ --without-sqlite
Configuration File (PHP.ini) Path: /usr/local/lib Loaded Configuration File: none
并且/usr/local / lib中没有PHP.ini.
我的环境:
Ubuntu 9.10 64bit,Nginx 0.8.32
从PHP-5.3.1.tar.gz中的INSTALL文件:
原文链接:https://www.f2er.com/php/139407.html13. Setup your PHP.ini file: PHP will use the built-in default values if no PHP.ini file was placed in the configuration directory. The default location is /usr/local/lib,if you prefer your PHP.ini in another location,use --with-config-file-path=/some/path in step 10. The PHP distribution provides two sample PHP.ini files,you can use them by cp PHP.ini-development /usr/local/lib/PHP.ini or cp PHP.ini-production /usr/local/lib/PHP.ini If you choose one of these PHP.ini files be certain to read the list of changes within,as they affect how PHP behaves.