安装PHP 5.3或6个窗口

时间:2022-01-11 16:55:49

How do I install latest versions of PHP as Apache 2 module? PHPIniDir directive throws error. And what's more important, there's no php5apache2.dll file or similar in latest distributions of PHP!

如何安装最新版本的PHP作为Apache 2模块? PHPIniDir指令抛出错误。更重要的是,在最新的PHP发行版中没有php5apache2.dll文件或类似文件!

Example distr php 5.3

示例distr php 5.3

1 个解决方案

#1


According to the PHP QA site, if you are using PHP with Apache 1 or Apache2 then you need to be using the VC6 release candidates, not the VC9. VC9 is for use with IIS.

根据PHP QA站点,如果您使用PHP与Apache 1或Apache2,那么您需要使用VC6版本候选,而不是VC9。 VC9用于IIS。

Since the link you provided in your question goes to a VC9 download, I would assume that's what you downloaded, and I'd say you should go download the VC6 version instead.

由于您在问题中提供的链接进入VC9下载,我会假设您下载的是,我会说您应该下载VC6版本。

#1


According to the PHP QA site, if you are using PHP with Apache 1 or Apache2 then you need to be using the VC6 release candidates, not the VC9. VC9 is for use with IIS.

根据PHP QA站点,如果您使用PHP与Apache 1或Apache2,那么您需要使用VC6版本候选,而不是VC9。 VC9用于IIS。

Since the link you provided in your question goes to a VC9 download, I would assume that's what you downloaded, and I'd say you should go download the VC6 version instead.

由于您在问题中提供的链接进入VC9下载,我会假设您下载的是,我会说您应该下载VC6版本。