Wamp服务器启动错误

bil*_*ili 15 wampserver

当我尝试加载wamp服务器时出错;

配置文件在第0行包含语法错误; [EParseError]未指定任何托盘图标.请使用[Config]部分中的Trayicon directoives指定托盘图标.

我应该做些什么.它不会加载WAMPServer.

Jes*_*nck 39

  • 转到wamp/scripts文件夹
  • 打开控制台
  • 跑: php refresh.php

这应该重新创建wampmanager.ini(需要wamp文件夹中的wampmanager.tpl文件.

摘自http://sourceforge.net/p/wampserver/feature-requests/10/#750b)

仅在wampserver 2.4中测试过.

回答于: 如何在不重新安装的情况下修复wamp服务器?

  • 这是 2018 年,这对我仍然有效。谢谢你。 (2认同)
  • 它有效,它真的有效!在 Windows 中,我转到“脚本”,但“php.exe”在另一个目录中,所以我写了 `C:\WAMP\scripts> ..\bin\php\php7.0.0\php.exe refresh.php`。在这之后我发现我丢失了“php.ini”,不知道是不是从之前的问题开始就丢失了,所以我在“bin\php\php7.0.0”中复制了一个“php.ini-development” ,将其重命名为“php.ini”并将其移动到“bin\apache\apache2.4.17\bin”。 (2认同)

小智 8

问题出在wampmanager.ini上.检查上面的文件是否为空,如果是这样,添加以下代码将起作用

[Config]
ImageList=images_off.bmp
ServiceCheckInterval=1
ServiceGlyphRunning=13
ServiceGlyphPaused=14
ServiceGlyphStopped=15
TrayIconAllRunning=16
TrayIconSomeRunning=17
TrayIconNoneRunning=18
ID={wampserver}
AboutHeader=WAMP5
AboutVersion=Version 2.2

[AboutText]
WampServer Version 2.2

Maintainer / Upgrade / Roadmap by Herve Leclerc (herve.leclerc@alterway.fr)

Powered by Alter Way [www.alterway.fr]

Sources are available at SourceForge

[www.wampserver.com]

[Services]
Name: wampapache
Name: wampmysqld

[Messages]
AllRunningHint=WAMP5 - All services running - server Offline
SomeRunningHint=WAMP5 - %n of %t services running - server Offline
NoneRunningHint=WAMP5 - None of %t services running - server Offline

[StartupAction]
Action: run; FileName: "c:/wamp/bin/php/php5.5.12/php-win.exe";Parameters: "refresh.php";WorkingDir: "c:/wamp/scripts"; Flags: waituntilterminated
Action: resetservices
Action: readconfig;
Action: service; Service: wampapache; ServiceAction: startresume; Flags: ignoreerrors
Action: service; Service: wampmysqld; ServiceAction: startresume; Flags: ignoreerrors
Run Code Online (Sandbox Code Playgroud)

添加到php-win.exe的正确路径.(将php5.5.12更改为您安装的版本)


Ola*_*nmi 6

我有时也遇到过同样的错误,修复很简单.

记下您安装的wamp服务器版本.

修复:

  1. 将C:/ wamp下的当前wamp文件夹重命名为wamp2
  2. 在C:驱动器上安装相同wamp的新实例
  3. 将wampmanager INI文件从新安装(C:/ wamp)复制到旧文件夹(C:/ wamp2)
  4. 删除新的wamp文件夹
  5. 将旧文件夹从wamp2重命名为wamp
  6. 启动你的wamp服务器,看看魔术.

记得说声谢谢!


小智 5

Windows更新后,我也发生了同样的事情。截至2017年,上述某些解决方案不适用于我,但这是无需重新安装Wamp即可解决的方法。

转到WampServer的仓库,向下滚动到“工具”,然后下载wampmanager.ini repair。运行.exe,打开wampini_repair.bat,您如虎添翼!

  • 现在是 2021 年,这真是太神奇了。Windows 更新后遇到了同样的问题,并且成功了。谢谢! (2认同)