php.ini错误? [英] php.ini errors?

查看:70
本文介绍了php.ini错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。


我有一个新的PHP安装。我已经运行了php.info()为web浏览器

浏览器,它返回它应该的一切。太棒了!


除了几件小事都错了。 php.info()说

extension_dir是


extension_dir C:\ php5 C:\ php5


,这不是我设定的。这里是我的php.ini

文件的复制和粘贴:


;可加载扩展(模块)所在的目录。

extension_dir =" C:\Program Files \PHP \ extra"

哇,我是不确定什么是错的。可以通过php.ini文件中出现

错误吗?我怎么会知道?还有别的吗?糟糕的环境

变量在某个地方?


我真的不知道从哪里开始调试这个。


感谢您提供的任何帮助!

Hi all.

I have a new PHP install. I''ve got php.info() running for the web
browser and it returns everything it should. Great!

Except a couple of small things are wrong. php.info() says that the
extension_dir is

extension_dir C:\php5 C:\php5

and that''s not what I set it to. Here''s copy and paste from my php.ini
file:

; Directory in which the loadable extensions (modules) reside.
extension_dir ="C:\Program Files\PHP\ext"
Wow, I''m not sure what could be wrong. Could by php.ini file have
errors in it? how would I know? Is something else up? Bad environment
variable somewhere?

I really don''t know where to start debugging this.

Thanks for any help you can provide!

推荐答案

Mark Space写道:
Mark Space wrote:

嗨所有。


我有一个新的PHP安装。我已经运行了php.info()为web浏览器

浏览器,它返回它应该的一切。太棒了!


除了几件小事都错了。 php.info()说

extension_dir是
Hi all.

I have a new PHP install. I''ve got php.info() running for the web
browser and it returns everything it should. Great!

Except a couple of small things are wrong. php.info() says that the
extension_dir is



现在我做到了。 :)


我将我的php.ini文件移动到Apache安装的根目录并重新启动

Apache。现在当我尝试在

浏览器中加载它时,phpinfo()不会做任何事情。哎呀。


Apache日志显示没什么特别的,只是我重新启动了。什么提示

打开PHP的一些调试?我可以独立检查PHP吗?有什么方法可以查看Apache的b $ b。


明天我会查看手册,我要去过夜。感谢

您可以给予任何帮助。

Now I did it. :)

I moved my php.ini file to the root of the Apache install and restarted
Apache. Now phpinfo() won''t do anything when I try to load it in a
browser. Oops.

The Apache logs show nothing special, just that I restarted. Any hints
on turning on some debugging for php? Could I check PHP independently
of Apache some how?

I''ll check the manual tomorrow, I''m off to be for the night. Thanks for
any help you can give.


Mark Space写道:
Mark Space wrote:

Mark Space写道:
Mark Space wrote:

>大家好。

我有一个新的PHP安装。我已经为网页浏览器运行了php.info(),它返回了应有的一切。太棒了!

除了几件小事都错了。 php.info()说
extension_dir是
>Hi all.

I have a new PHP install. I''ve got php.info() running for the web
browser and it returns everything it should. Great!

Except a couple of small things are wrong. php.info() says that the
extension_dir is



现在我做到了。 :)


我将我的php.ini文件移动到Apache安装的根目录并重新启动

Apache。现在当我尝试在

浏览器中加载它时,phpinfo()不会做任何事情。哎呀。


Apache日志显示没什么特别的,只是我重新启动了。什么提示

打开PHP的一些调试?我可以独立检查PHP吗?有什么方法可以查看Apache的b $ b。


明天我会查看手册,我要去过夜。感谢

您可以给予任何帮助。


Now I did it. :)

I moved my php.ini file to the root of the Apache install and restarted
Apache. Now phpinfo() won''t do anything when I try to load it in a
browser. Oops.

The Apache logs show nothing special, just that I restarted. Any hints
on turning on some debugging for php? Could I check PHP independently
of Apache some how?

I''ll check the manual tomorrow, I''m off to be for the night. Thanks for
any help you can give.



将其移回,修复你所做的任何导致phpinfo()没有的事情

显示任何内容,并检查你的phpinfo输出php.ini文件

你正在使用它(它接近顶部)。


此外,对于路径,青睐/高于\(这也是一个转义字符......):

extension_dir =" C:/ Program Files / PHP / ext"

-

Rik Wasmus

Move it back, fix anything you have done that caused phpinfo() to not
display anything, and check in your phpinfo output which php.ini file
you''re using (it''s near the top).

Also, for paths, favor / above \ (which is also an escape character...):
extension_dir ="C:/Program Files/PHP/ext"
--
Rik Wasmus


Rik Wasmus写道:
Rik Wasmus wrote:

>我感动我的php.ini文件到Apache安装的根目录并重新启动了Apache。现在,当我尝试在浏览器中加载
时,phpinfo()不会做任何事情。糟糕。

Apache日志没有什么特别之处,只是我重新启动了。有关打开php调试的任何提示吗?我可以独立于Apache查看PHP吗?

明天我会查看手册,我要去过夜。感谢您提供任何帮助。
>I moved my php.ini file to the root of the Apache install and
restarted Apache. Now phpinfo() won''t do anything when I try to load
it in a browser. Oops.

The Apache logs show nothing special, just that I restarted. Any
hints on turning on some debugging for php? Could I check PHP
independently of Apache some how?

I''ll check the manual tomorrow, I''m off to be for the night. Thanks
for any help you can give.



将其移回,修复你所做的任何导致phpinfo()没有的事情

显示任何内容,并检查你的phpinfo输出php.ini文件

你正在使用它(它靠近顶部)。


Move it back, fix anything you have done that caused phpinfo() to not
display anything, and check in your phpinfo output which php.ini file
you''re using (it''s near the top).



我很确定我现在把它放在正确的位置。之前我在phpinfo()输出中没有仔细观察

。这是在我重命名php.ini

文件并重新启动服务器之后。

系统Windows NT HOMER 6.0 build 6000

构建日期11月8 2007 23:18:08

配置命令cscript / nologo configure.js

" - enable-snapshot-build" " - with-gd = shared"

服务器API Apache 2.0处理程序

启用虚拟目录支持

配置文件(php.ini)路径C:\ Windows

加载的配置文件(无)

这是第一位。 加载的配置文件(无)我认为是

执行部分。如果我尝试C:\ Windows,我得到相同的结果 - 没有

phpinfo()。


我认为我的php.ini文件是borked 。没有任何调试方法(日志?)

我将不得不求助于删除大部分配置并添加回来

直到找到问题为止。


感谢您的帮助顺便说一句。

I''m pretty sure I have it in the right spot now. I didn''t look closely
at the phpinfo() output before. Here it is after I renamed the php.ini
file and restarted the server.
System Windows NT HOMER 6.0 build 6000
Build Date Nov 8 2007 23:18:08
Configure Command cscript /nologo configure.js
"--enable-snapshot-build" "--with-gd=shared"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File (none)
That''s the first bit. "Loaded Configuration File (none)" I think is the
operative part. If I try C:\Windows, I get the same result -- no
phpinfo().

I think my php.ini file is borked. Absent any way to debug it (logs?)
I''ll have to resort to removing most of the config and adding bits back
until I find the problem.

Thanks for your help btw.


此外,对于路径,青睐/高于\(这是也是一个转义字符...):

extension_dir =" C:/ Program Files / PHP / ext"
Also, for paths, favor / above \ (which is also an escape character...):
extension_dir ="C:/Program Files/PHP/ext"



好​​建议,我会这样做。

Good advice, I''ll do that.


这篇关于php.ini错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆