25

I get an error when I try to load WAMP Server:

The configuration file contains a syntax error on line 0; [EParseError] No tray icon was specified. Please assign a tray icon by using on the of the Trayicon directives in the [Config] section.

What am I supposed to do? It won't load WAMPServer.

underscore_d
  • 6,309
  • 3
  • 38
  • 64
bili
  • 395
  • 1
  • 6
  • 9
  • Have you checked that you have all the required Microsoft C++ runtime libraries? See here http://stackoverflow.com/questions/26011072/msvcr110-dll-is-missing-from-your-computer/26013219#26013219 – RiggsFolly Sep 27 '14 at 15:48
  • Jessé Catrinck's answer was the solution for me, however I had to execute `refresh.php` with `php.exe` found in **php5.6.40**. Any other version of php resulted in errors and wampmanager.ini would not be rebuilt. Here is the full command I ran in Command Prompt with administrative privileges: `C:\wamp\bin\php\php5.6.40\php.exe C:\wamp\scripts\refresh.php` – Sasha Dorval Mar 14 '21 at 02:34

8 Answers8

87
  • Go to the wamp/scripts folder
  • Open console
  • run: php refresh.php

This should recreate wampmanager.ini (requires wampmanager.tpl file in wamp folder.

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

Tested only in wampserver 2.4.

Working wampserver 3.2.3 as well

Answered in: How to repair wamp server without re-installing?

Jessé Catrinck
  • 2,227
  • 19
  • 20
19

Same thing happened to me after a Windows update. Some of the solutions above haven't worked for me (as of 2017) but here's what solved it without having to reinstall Wamp.

Head over to WampServer's repo, scroll down to "Tools" and download wampmanager.ini repair. Run the .exe, open wampini_repair.bat, and you're golden!

Dawn T
  • 189
  • 3
  • 9
11

I also encountered the same error some-times ago and the fix was so simple.

Take note of the wamp server version you installed.

The fix:

  1. Rename the current wamp folder under C:/wamp to wamp2
  2. Install a new instance of the same wamp on the C: drive
  3. Copy the wampmanager INI file from the new installation (C:/wamp) into the old folder (C:/wamp2)
  4. Delete the new wamp folder
  5. Rename the old folder from wamp2 to wamp
  6. Startup your wamp server, and see the magic.

Remember to say thanks !

Star
  • 3,222
  • 5
  • 32
  • 48
Olasunkanmi
  • 902
  • 15
  • 23
10

The problem is in wampmanager.ini. Check if the above file is empty, if so adding the following code will work

[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

Add the correct path to php-win.exe. (change the php5.5.12 to your installed version)

Achi
  • 141
  • 1
  • 4
1

The easiest way is to install the same version of WAMP to a with the same folder structure to a different partition ( if you don't have an extra partition use external drive). For example, if your current WAMP, which causes you the error is in C:/wamp64, install the duplicate in D:/wamp64.

After that copying process, the content of the wampmanager.ini from the new installation and replace to wampmanager.ini of the old installation ( open the file with Notepad, delete the existing stuff and replace it with the copied content).

Then replace the drive letter with the old drive letter (i.e D:/wamp64 with C:/wamp64 ) and save the file. ( you will have two lines to change this letter).

That is it. You are ready and good to go.

Enjoy!!

Tested with wamp64 version 3.0 and it works fine.

zx485
  • 28,498
  • 28
  • 50
  • 59
Shirantha
  • 71
  • 10
0

First take the backup of all the folders from c:\wamp folder then reinstall wamp. Copy the files named wampmanager.exe and wampmanager.conf from c:\wamp files (Files from Backup) to the folder c:\wamp you will be asked to replace the existing files, do it. Then Start WAMP Server. The problem is fixed.

If you do it, your project files will not lose.

JWC May
  • 605
  • 8
  • 14
0

I had this issue and solved it by going into the wamp64 folder and simply running wampmanager.ini.repair . This opened a version of wamp where only 2 of 3 services were running, but I exited out of that and ran wamp again as administrator, and it started working.

-2

I faced the similar issue and got the fix. You just have to search for the file name wampmanager.ini in the WAMP server installation and replace the file content with the following content. Be sure to put the correct directory path.

[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.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