2012-04-22 55 views
36

我已在我的WAMP服务器中安装了两个PHP版本。当我使用5.3.10时,我的wamp服务器运行得很好。但是当我切换到旧版本的PHP(5.2.9)时,我的wamp服务器托盘图标显示为橙色图标。如果你点击Put Online,我得到以下错误。无法执行菜单项(内部错误)[例外] - 将PHP版本从5.3.1更改为5.2.9时

我试图将httpd.conf中的端口更改为8855,但仍然收到相同的错误。我该如何解决这个错误?

无法执行菜单项(内部错误)[异常]无法执行服务动作:该服务尚未启动

wamp

Aestan Tray Menu

+1

Skype对我而言是个问题,我从Skype注销并为我工作。 – 2013-07-01 06:05:22

+2

如果Skype导致问题,可以将其配置为不使用端口80.在选项 - >高级 - >连接中取消选中“使用端口80和443 ...”并重新启动Skype。 – khattam 2013-12-04 04:35:31

回答

3
  1. 像你安装的老版本的PHP和Apache一样。我选择了2.0.63版本,然后我能够用PHP 5.2.9运行WAMP Server,没有任何问题。

  2. 我也读过这是64位版本的WAMP的问题。

+0

尽管现在启动/重新启动服务器需要一些时间。 – petter386 2012-06-01 13:55:12

74

默认情况下,WAMP服务器将以80作为其工作端口。

你可以改变,只要你喜欢该端口号......这里的步骤做:

  • 点击WAMP的服务器托盘图标
  • 点击阿帕奇
  • 选择HTTP .conf文件

这里记事本打开...

  • 向下滚动,你会看到WAMP服务器采用的端口号...
  • 改变该端口号:

    #Listen x.x.x.x:8080 
    Listen 8080 
    
  • 保存该文件并重新启动服务......这将工作正常...

  • 现在通过键入​​检查。
5

首先去Wamp-> Apache->服务 - >测试端口80

如果微软HTTPAPI存在用户/ 2.0

那么解决的办法是手动停止名为网络服务部署代理服务

如果您安装了Microsoft Sql Server,即使禁用IIS服务,它也会使名为httpapi2.0的Web服务保持运行。

22

如果您使用的Windows 尝试出以下几点:

  1. 按键(Windows + R)
  2. 进入 “SERVICES.MSC”,然后单击 “确定”
  3. 与名称定位服务“ wampapache'

并检查它的状态是否正在运行。如果不是,请右键单击>>开始。

希望这会有所帮助!


如果您已经从引导服务删除WAMP,它不会工作 - 尝试以下方法:

  • 按键(Windows + R)
  • 进入 “SERVICES.MSC”,然后单击“ OK”
  • 找到名为 'wampapache' 服务
  • 右击wampapachewampmysqld,点击 '属性'
  • 并更改开始类型为Manualautomatic

这将起作用!

1

问题是MySQL56服务正在运行,它占用了WAMP MySQL的端口。在MySQL56服务停止后,WAMP服务器成功启动。

5

也许旧版本的服务不是从窗户卸载

  1. 卸载运行此命令行的旧版本

    SC删除wampapache

  2. 重新安装WAMP服务:

    Wamp Tray Icon - > Apache - > Service - > Install Servi ce

它适合我,享受!

+1

这是我的,谢谢! – 2016-02-04 19:56:24

0

对于任何正在阅读此内容的人 - >不再使用php 5.3,切换到较新版本的php,因为php 5.3使用的是不推荐使用的函数。

以下是不推荐使用的INI指令列表。使用这些INI指令中的任何一个都会在启动时引发E_DEPRECATED错误,所以我建议您使用更新的版本进行开发。

define_syslog_variables 
register_globals 
register_long_arrays 
safe_mode 
magic_quotes_gpc 
magic_quotes_runtime 
magic_quotes_sybase 
Comments starting with '#' are now deprecated in .INI files. 

已过时的功能:

call_user_method() (use call_user_func() instead) 
call_user_method_array() (use call_user_func_array() instead) 
define_syslog_variables() 
dl() 
ereg() (use preg_match() instead) 
ereg_replace() (use preg_replace() instead) 
eregi() (use preg_match() with the 'i' modifier instead) 
eregi_replace() (use preg_replace() with the 'i' modifier instead) 
set_magic_quotes_runtime() and its alias, magic_quotes_runtime() 
session_register() (use the $_SESSION superglobal instead) 
session_unregister() (use the $_SESSION superglobal instead) 
session_is_registered() (use the $_SESSION superglobal instead) 
set_socket_blocking() (use stream_set_blocking() instead) 
split() (use preg_split() instead) 
spliti() (use preg_split() with the 'i' modifier instead) 
sql_regcase() 
mysql_db_query() (use mysql_select_db() and mysql_query() instead) 
mysql_escape_string() (use mysql_real_escape_string() instead) 
Passing locale category names as strings is now deprecated. Use the LC_* family of constants instead. 
The is_dst parameter to mktime(). Use the new timezone handling functions instead. 

提倡使用的功能:

Assigning the return value of new by reference is now deprecated. 
Call-time pass-by-reference is now deprecated. 
0

Skype等某些应用程序使用WAMP的默认端口:80,所以你必须找出哪些应用程序正在访问该端口您可以通过使用TCP View轻松找到它。结束访问此端口的服务并重新启动wamp服务器。现在它会工作。

相关问题