简体   繁体   English

Windows Server 2008 R2 Apache 2.2 PHP 5.3.3安装问题

[英]Windows Server 2008 R2 Apache 2.2 PHP 5.3.3 install issue

I am trying to install Apache 2.2 and PHP 5.3.3 on a Windows Server 2008 R2 box. 我试图在Windows Server 2008 R2框上安装Apache 2.2和PHP 5.3.3。 I've managed to setup Apache, but PHP is not working correctly: I've downloaded the latest zip from windows.php.net (VC6) and I've modified http.conf in order to load the php5 module ( LoadModule , AddType & PHPIniDir ). 我已经成功设置了Apache,但PHP无法正常工作:我已经从windows.php.net(VC6)下载了最新的zip,我修改了http.conf以加载php5模块( LoadModuleAddTypePHPIniDir )。 So far, so good - phpinfo() is showing and I am happy... But, there is no php.ini file - I haven't yet renamed the bundled php.ini-development|php.ini-production file. 到目前为止,非常好 - phpinfo()显示,我很高兴...但是,没有php.ini文件 - 我还没有重命名捆绑的php.ini-development | php.ini-production文件。 If I do so (in order to modify PHP's configuration), no php code is interpreted (including phpinfo() ). 如果我这样做(为了修改PHP的配置),不解释任何PHP代码(包括phpinfo() )。 I've gone over the entire php.ini-development file and still it is not working... This is very strange. 我已经浏览了整个php.ini开发文件但仍然没有工作......这很奇怪。

If I use the renamed php.ini-production, I get a blank page. 如果我使用重命名的php.ini-production,我会得到一个空白页面。 If I don't define a php.ini or php.ini is empty, phpinfo() is working and the loaded configuration file is C:\\Php\\php.ini (I've installed php in C:\\Php) ... This is driving me insane... 如果我没有定义php.ini或php.ini是空的, phpinfo()正在工作,加载的配置文件是C:\\ Php \\ php.ini(我在C:\\ Php中安装了php)..这让我发疯了...

Any help is welcome, Thanks in advance. 欢迎任何帮助,提前致谢。

I stumbled upon this very same issue in a CLI only setup. 我在仅CLI设置中偶然发现了同样的问题。

I got it resolved by disabling all extensions that I'm not needing. 我通过禁用所有我不需要的扩展来解决它。 I can't tell you wich extension is the booger here, as I stopped troubleshooting as soon as it worked. 我无法告诉您扩展名是这里的鼻屎,因为我一开始就停止了故障排除。 I only needed ODBC and some basics (like eg. zip) 我只需要ODBC和一些基础知识(例如zip。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM