当我尝试加载wamp服务器时出错;
配置文件在第0行包含语法错误; [EParseError]未指定任何托盘图标.请使用[Config]部分中的Trayicon directoives指定托盘图标.
我应该做些什么.它不会加载WAMPServer.
Jes*_*nck 39
php refresh.php这应该重新创建wampmanager.ini(需要wamp文件夹中的wampmanager.tpl文件.
摘自http://sourceforge.net/p/wampserver/feature-requests/10/#750b)
仅在wampserver 2.4中测试过.
小智 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更改为您安装的版本)
我有时也遇到过同样的错误,修复很简单.
记下您安装的wamp服务器版本.
修复:
记得说声谢谢!
小智 5
Windows更新后,我也发生了同样的事情。截至2017年,上述某些解决方案不适用于我,但这是无需重新安装Wamp即可解决的方法。
转到WampServer的仓库,向下滚动到“工具”,然后下载wampmanager.ini repair。运行.exe,打开wampini_repair.bat,您如虎添翼!
| 归档时间: |
|
| 查看次数: |
20118 次 |
| 最近记录: |