php5 – 编译安装php 5.3.1后,我找不到我的php.ini文件

前端之家收集整理的这篇文章主要介绍了php5 – 编译安装php 5.3.1后,我找不到我的php.ini文件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我的编译配置:
./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

PHPinfo页面输出如下所示

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文件
13. 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.

您需要创建PHP.ini文件.这可以通过复制其中一个示例文件来完成.

原文链接:https://www.f2er.com/php/139407.html

猜你在找的PHP相关文章