2014-09-27 178 views
6

当我尝试加载wamp服务器时出现错误;Wamp服务器启动错误

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

我该怎么做。它不会'加载WAMPServer。

+0

您是否检查过您拥有所有必需的Microsoft C++运行时库?见这里http://stackoverflow.com/questions/26011072/msvcr110-dll-is-missing-from-your-computer/26013219#26013219 – RiggsFolly 2014-09-27 15:48:36

回答

5

我以前也遇到同样的错误,修复非常简单。

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

的修复:

  1. 重命名下C电流瓦帕文件夹:/ WAMP到wamp2
  2. 安装在C相同瓦帕的新实例:驱动器
  3. 复制从wampmanager INI文件新安装(C:/瓦帕)到旧的文件夹(C:/ wamp2)
  4. 删除新瓦帕夹
  5. 从wamp2重命名旧文件夹WAMP
  6. 启动你的wamp服务器,并看到神奇。

记得要说谢谢!

-2

我面临类似的问题,并得到解决。您只需在WAMP服务器安装中搜索文件名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 ([email protected]) 

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.4.3/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 
6

问题出在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 ([email protected]) 

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 

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

0

首先从c:\ wamp文件夹中备份所有文件夹,然后重新安装wamp。 将名为wampmanager.exe和wampmanager.conf的文件从c:\ wamp文件(备份文件)复制到文件夹c:\ wamp,您将被要求替换现有文件。然后启动WAMP服务器。问题已解决。

如果你这样做,你的项目文件不会丢失。

1

最简单的方法是使用相同的文件夹结构安装WAMP的相同版本到一个不同的分区(如果你没有一个额外的分区上使用外部驱动器) 。例如,如果当前导致错误的WAMP在C:/wamp64中,请在D:/wamp64中安装副本。

是复制过程后,wampmanager.ini从新安装的内容和替换旧安装的wampmanager.ini(打开该文件记事本,删除现有的东西,用复制的内容替换)。

然后用旧的驱动器号(即D:/wamp64C:/wamp64)替换驱动器号并保存该文件。 (你将有两行来改变这封信)。

就是这样。你已经准备好了,很好去。

享受!

使用wamp64版本3.0进行测试,它工作正常。

3

Windows更新后,我发生了同样的事情。上面的一些解决方案并不适用于我(截至2017年),但无需重新安装Wamp即可解决问题。

转到WampServer's repo,向下滚动到“工具”并下载wampmanager.ini修复。运行.exe,打开wampini_repair.bat,你就是金子!