免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: cups_book
打印 上一主题 下一主题

php.ini 的位置找不到了 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2011-04-13 14:51 |只看该作者
兄弟们都在潜水?

肺活量够大的啊,呵呵。

论坛徽章:
0
12 [报告]
发表于 2011-04-13 15:45 |只看该作者
还有谁有主意?

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
13 [报告]
发表于 2011-04-13 15:48 |只看该作者
没有配置文件不能正确运行吧,怎么会出现没有?

论坛徽章:
0
14 [报告]
发表于 2011-04-13 17:55 |只看该作者
把php\下的php.ini-dist 改为 php.ini试一下?

论坛徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:58:11
15 [报告]
发表于 2011-04-13 20:47 |只看该作者
下一项“Loaded Configuration File”呢,显示什么?贴段来自 php.net 解释:

w2k, apache 1.3.29, php 5.2.6: c:\php\php.ini was not found until the environment variable PHPRC was set to "c:\php", even though php was used as a module, not CGI.

just adding c:\php to the path was not adequate.

phpinfo() still shows "Configuration File (php.ini) Path" to be C:\WINNT, but "Loaded Configuration File" now correctly displays "C:\php\php.ini".

initially the problem appeared to be simply that the mysql extension was not loading; in fact, the problem was more fundamental (php.ini not found) but because php will still work with defaults, this was not obvious.

论坛徽章:
1
2015年迎新春徽章
日期:2015-03-04 09:58:11
16 [报告]
发表于 2011-04-13 21:12 |只看该作者
估计这样的,php.ini的查找路径是/usr/local/lib,“Loaded Configuration File”才是php.ini 实际装入的。

论坛徽章:
0
17 [报告]
发表于 2011-04-14 00:57 |只看该作者
文件可能被移除了,但服务并未重启。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP