LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1016|回复: 4

Apache中PHP是如何找到php.ini的??

[复制链接]
发表于 2006-2-4 19:55:00 | 显示全部楼层 |阅读模式
我查了一下httpd.conf 发现里面没有PHP.ini的定义

我的系统是centos4
用phpinfo();能查到PHP.ini文件的位置是/etc
发表于 2006-2-4 23:00:32 | 显示全部楼层
不知道是不是以下的某一个方法。:

libphp5.so

./configure --with-apxs2=/opt/apache/sbin/apxs
回复 支持 反对

使用道具 举报

发表于 2006-2-4 23:25:24 | 显示全部楼层
when you compile php
use paramitre:

--with-config-file-path=PATH
it will set the path in which to look for php.ini  [PREFIX/lib]
回复 支持 反对

使用道具 举报

发表于 2006-2-4 23:27:23 | 显示全部楼层
./configure --with-apxs2=/opt/apache/sbin/apxs
this line will tell configure to generate compile file, to compile php to apache model file(instead of standalone file) with apxs.

in some linux distribution, apxs called apxs2.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-5 08:16:49 | 显示全部楼层
谢谢大家,看来是这样子的,因为其它地方没有办法去更改
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表