PHPIniDir 在 Windows 7 下坏了? [英] PHPIniDir broken under windows 7?

查看:29
本文介绍了PHPIniDir 在 Windows 7 下坏了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台在 Windows XP 机器上运行的服务器,使用 Apache2 和 PHP 和 MySQL.我最近升级到 Windows 7,但一直无法正常工作.Apache 工作正常,PHP 工作正常,但我似乎无法让它与 php.ini 文件一起工作.

I had a server running on a Windows XP machine using Apache2 with PHP and MySQL. I've recently upgraded to Windows 7 and have been having trouble getting it to work. Apache works fine and PHP works, but I can't seem to get it to work with a php.ini file.

当我将 PHPIniDir 设置为带有 php.ini 文件的目录时,Apache 服务不会启动.

When I set PHPIniDir to a directory with a php.ini file, the Apache service does NOT start.

当我将 PHPIniDir 设置为没有 php.ini 文件的目录时,Apache 服务会启动.

When I set PHPIniDir to a directory with NO php.ini file, the Apache service does start.

当我省略 PHPIniDir 时,Apache 服务不会启动.

When I leave out PHPIniDir, the Apache service does not start.

有没有人找到解决这个问题的方法?谢谢!

Has anyone found a fix for this problem? Thanks!

PHPIniDir "C:\Windows" #works (没有 php.ini 文件)

PHPIniDir "C:\Windows" #works (no php.ini file)

PHPIniDir "C:\Program Files (x86)\php\" #不起作用(包含 php.ini 文件)

PHPIniDir "C:\Program Files (x86)\php\" #does not work (contains php.ini file)

我在任何给定时间最多启用一个.

I enable at most one at any given time.

推荐答案

我遇到了同样的问题.我修好了它.使用记事本或任何文本编辑器打开 php.ini 文件.禁用 php.ini 文件中的所有扩展名.逐个注释扩展名,找出导致问题的扩展名.

I had the same problem. I fixed it. Open php.ini file with a notepad or any text editor. Disable all of the extension in php.ini file. Comment extensions by one by, and find out which extension causes the problem.

这篇关于PHPIniDir 在 Windows 7 下坏了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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