WAMP服务器错误切换新鲜安装Apache / PHP版本 [英] WAMP Server errors switching Apache / PHP versions on fresh install

查看:2210
本文介绍了WAMP服务器错误切换新鲜安装Apache / PHP版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个新的下载和安装WAMP服务器的成功作品(Apache的PHP 2.4.4 5.4.12)。

A fresh download and install of WAMP Server works successfully (Apache 2.4.4 PHP 5.4.12).

但是当我安装不同版本的Apache,在这种情况下,2.4〜2.0(这样我就可以运行PHP 5.2&安培; 5.4),WAMP有橙色图标脱机

However as soon as I install a different version of Apache, in this case 2.4 to 2.0 (so I can run PHP 5.2 & 5.4), WAMP goes offline with an orange icon.

如果我试图切换回原来的Apache的版本我得到这个表演停止错误:

If I try to switch BACK to the original Apache version I get this show-stopping error:

Sorry,

This Apache version doesn't seem to be compatible with your actual PHP Version.
Switch cancelled.
Press ENTER to continue...

这没有任何意义,因为这是一个新的安装因此两者在Apache + PHP版本的默认值。

This doesn't make any sense, as this is a fresh install so both the Apache + PHP versions are the defaults.

下面就是在UI告诉我:

Here's what the UI is telling me:


  • 的WAMP的图标现在是橙色

  • 在Apache /版本/ 2.4.4图标旁边有一个红色警告图标

  • 在Apache /版本/ 2.0.63图标旁边有一个勾号

  • The WAMP icon is now orange
  • the Apache/Version/2.4.4 icon has a red warning icon next to it
  • the Apache/Version/2.0.63 icon has a tick next to it

我试着安装Apache的其他版本太多,但这个问题似乎与2.4 WAMP安装选件的基础。

I've tried installing other versions of Apache too, but the issue seems to be with the base 2.4 WAMP installed options.

额外的信息:80端口是免费的,我曾经使用WS 2.0E所有的时间没有这类问题

Extra info: port 80 is free, and I used to use WS 2.0e all the time without these kinds of issues.

谢谢,
戴夫

推荐答案

转到 \\ WAMP \\ BIN \\ PHP \\ phpX.YZ \\ wampmanager.conf。

通过记事本++编辑wampmanager.conf

Edit wampmanager.conf via Notepad++

添加此codeS。而保存wampmanager.conf

Add This Codes.. And Save wampmanager.conf

$phpConf['apache']['2.4']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['2.4']['LoadModuleFile'] = 'php5apache2_4.dll';
$phpConf['apache']['2.4']['AddModule'] =  '';

重启WAMP经理。

Restart Wamp Manager..

这篇关于WAMP服务器错误切换新鲜安装Apache / PHP版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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