WAMP server startup error: "No tray icon was specified" - wampserver

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.

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?

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!

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:
Rename the current wamp folder under C:/wamp to wamp2
Install a new instance of the same wamp on the C: drive
Copy the wampmanager INI file from the new installation (C:/wamp) into the old folder (C:/wamp2)
Delete the new wamp folder
Rename the old folder from wamp2 to wamp
Startup your wamp server, and see the magic.
Remember to say thanks !

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)

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.

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.

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.

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

Related

Rad Studio 10.2.3: Driver/Connection Registry File dbxconnections.ini not found

I am facing problems to use Delphi with MySQL ... I have been trying for weeks to solve the error but without success
i Am using AppServ : Apache + PHP + MYSQL 5.7.17
Someone please help me
On click ConnectionName Properties:
Error: Driver/Connection Registry File 'C:\Users\ROG3R\Documents\Embarcadero\Studio\dbExpress\19.0\dbxconnections.ini' not found.
There is no dbExpress folder in the directory
C:\Users\ROG3R\Documents\Embarcadero\Studio
Have you tried full installation on all users?
yes but problem continues
When you select true connect property:
DBX Error: Driver could not be properly initialized. Client library may be missing, not installed properly, of the wrong version, or the driver may be missing from the system path..
https://imgur.com/a/10bBIMr
This error shows up, when you have installed Delphi only for your own user.
Uninstall it, but don't delete the registry keys at the end of the uninstall process or you will loose all your settings and you would have to reinstall 3rd party componets.
After that reinstall Delphi, but this time for all users!
Source

How to point document library to a network drive when run Liferay as Window Service

I installed Liferay as a Windows service following this tutorial .
After that I created a Network Drive 'D', I created a folder named 'document_library' in this drive D and updated Advanced File System Store to point to this folder. It work well when I run liferay from CMD window:
catalina.bat run
However, if I start Liferay by starting installed service, it throws exception: Unable to create directory D:\document_library
I tried adding full permission for everyone but still not solved yet.
How can I fix this issue?
I have this answer . Followed him and it work.
Instead of using shared driver letter, we must use UNC path. Something like
\\server\share\path

Creating laravel apps without internet connection

Does laravel 5.1 work without internet connection?
I like to create a laravel new application
when i execute laravel new test (with intenet connection) it works well;
but when i execute similar command in the same directory (new anotherName) without internet connection it doesn't work and the nest error message is shown
[GuzzleHttp\Exception\RequestException]
Error creating resource. [url] http://cabinet.laravel.com/latest.zip [type]
2 [message] fopen(http://cabinet.laravel.com/latest.zip): failed to open s
tream: php_network_getaddresses: getaddrinfo failed: Name or service not kn
own [file] /home/<Myname>/.composer/vendor/guzzlehttp/guzzle/src/Adapter/Str
eamAdapter.php [line] 367
Is there a solution because i can't work online always?
When you use the laravel installer it fetches the latest version from the server. One solution would be to initialise a Laravel project, then add it to git version control and then when offline checkout the project to a new folder. You'd have to manually choose a new app key (I think). You will also not be able to composer require or npm install any new packages while offline.
Once you have created it though it should run offline (unless your views are sourcing assets from, say, bootstrap or jQuery CDNs).
Composer 2+:
COMPOSER_DISABLE_NETWORK=1 laravel new myapp
Troubleshooting:
Check your composer version: composer --version - you may have to update to the latest version with composer self-update;
Check you have a global cache: echo $COMPOSER_HOME - you may have to create a ~/.composer and set export COMPOSER_HOME="${HOME}/.composer" to your ~/.bashrc or ~/.zshrc - don't forget to close and open your terminal to apply the changes;
If you get this error https://repo.packagist.org could not be fully loaded (Network disabled, request canceled: https://repo.packagist.org/packages.json), package information was loaded from the local cache and may be out of date, the laravel packages are not in the global cache. Run the command with internet enabled to download the files.

How to start `MYSQL` service in wamp server?

MYSQL service interupted the color of wamp icon turning from orange to green, in menu when i click mysql.log file it says cant find mysql.log.How to fix this? How i can start this service it is really frustrating please help me?
This is a problem of WAMPServers MYSQL finding old my.ini files left on the system by other attempts to install MYSQL manually.
If you try to install MYSQL manually specifically if you use the .msi install or the MYSQL Workbench install that comes with a copy of MYSQL Server, it puts the my.ini into \windows\system32. This is one of the folders that MYSQL searches for its my.ini file, prior to searching its own bin folder.
WAMPServer is very tidy and does not place any of its files outside the \wamp\ folder structure, this is so you can switch versions of MYSQL, which is one of its big benefits, so it i safe to delete these other .my.ini files.

Windows x64 RabbitMQ install error with Erlang environment var (ERLANG_HOME)

I'm ask/answering this question because it hung me up & it's likely someone else will have the same problem.
Install of RabbitMQ x64 v2.8.6 on Windows Server 2008 x64.
After Erlang install using default install location to C:\Program Files\erl5.9.2, I'm attempting to start the server via running the rabbitmq-service.bat. Fail:
Please either set ERLANG_HOME to point to your Erlang installation
or place the RabbitMQ server distribution in the Erlang lib folder.
Problem is the .bat file does not have the correct subpath. with 5.9.2 (R15B02) version of erlang. My ERLANG_HOME directory is set correctly, but the script does not use it correctly for this version of Erlang, which, it appears to this Erlang noob to have a new subdirectory called "erts-5.9.2" which is causing the problems. Maybe someone intimate with these scripts can describe how to make this work correctly without the hack workaround I'm about to describe?
1- Set environment variable:
Variable name : ERLANG_HOME
Variable value: C:\Program Files (x86)\erl6.4
note: don't include bin on above step.
2- Add %ERLANG_HOME%\bin to the PATH environmental variable:
Variable name : PATH
Variable value: %ERLANG_HOME%\bin
This works well.
There are several RabbitMQ control .bat files on windows. Every one you use needs to get changed to reflect the Erlang path correctly. In this example, I'm editing the rabbitmq-server.bat because it's one of the easier ones... any of the .bat files you want to run will need this hack to get them to work, with the rabbitmq_service.bat file being the most involved to adjust.
editing that rabbitmq_server.bat file, you can see on about line 48 or so there's a check to see if the erl.exe is found, but the path isn't correct:
if not exist "!ERLANG_HOME!\bin\erl.exe" (
that path does not match the file structure for the 5.9.2 version of Erlang. I fixed this by simply removing this path check from about line 48 to 58, then, where the .bat actually makes a call to the erl.exe on about line 129 which reads:
"!ERLANG_HOME!\bin\erl.exe"
I simply hardcoded the path to my erl.exe:
"C:\Program Files\erl5.9.2\erts-5.9.2\bin\erl.exe"
With the pathing correct, the rabbitmq .bat files will run.
I had the similar issue, modifying ERLANG_HOME in .bat files did not work. Then I tried echo %ERLANG_HOME% in command prompt, that did not print the environment variable value(I could see that ERLANG_HOME environment variable has been created under advance system settings), that lead me to believe that I need to restart server for 64 bit installation of Erlang. After rebooting server, It worked like a charm. I hope this helps someone.
Just to share an up-to-date answer as of 2019: On Windows Server 2019, after setting up the environment variable, a restart is required to solve the problem.
I got into same kind of problem.
I solved it by doing three changes as given below.
Update Path variable "ERLANG_HOME" : "C:\Program Files\erl8.0" in Environment Variables.
Upadte "Path" variable "Path" : ";%ERLANG_HOME%\bin;"
Give urself FULL CONTROL permissions over "Program Files" in C drive.
It worked for me in this way.
This problem still occurs in Erlang 18.3 (erl7.3) and RabbitMQ 3.6.9 on Windows when upgrading from any older version of RabbitMQ to version 3.6.9. The solution as already stated here is to manually set ERLANG_HOME with 'setx -m ERLANG_HOME "C:\Program Files\erl7.3"' before starting the service.
What happens is that the RabbitMQ 3.6.9 installer removes the environment variable ERLANG_HOME from the system while removing the older version of RabbitMQ. Then, when it proceeds to the installation step, it does not put back the ERLANG_HOME variable. Then, the batch files that start up RabbitMQ cannot find Erlang. They try to find Erlang's home directory using "where.exe" but it always fails after an upgrade.
RabbitMQ's installer also does not kill all of the Erlang background processes, causing many of its files to be undeletable due to the Windows "file in use" problem. This leaves behind "files in use" in %APPDATA%\RabbitMQ and "C:\Program Files\RabbitMQ." These processes are "erl.exe," "erlsrv.exe," and "epmd.exe." The RabbitMQ installer should taskkill these processes after shutting down the RabbitMQ Windows service.
RabbitMQ is rather clunky on Windows.
Download Erlang or OTP - Only one Version of OTP should be installed
Download RabbitMQ installer
Install both exe file as Administrator
Set class path for Erlang. (Setting classpath is a bit troublesome, so follow these steps)
Set a new path with name ERLANG_HOME and value C:\Program Files\erl-23.1 (do not copy bin folder here)
Edit System "path" and add %ERLANG_HOME%\bin
Go to Start - Open rabbitmq command promt and run
rabbitmq-plugins enable rabbitmq_management
Navigate to localhost:15672
Use guest/guest to login
Interesting that this worked for you. There is record of a two bugs in Erl5.9.2 that cause an incomplete installation where %ERLANG_HOME%\bin is not installed.
Either of
* Installed 64bit erlang on 32bit machine
* "The program can't start because MSVCR100.dll is missing from your computer."
https://groups.google.com/d/topic/erlang-programming/wGtFLzapiQ0/discussion
Try 5.9.1 or any other version. They also mention making the future versions of the installer alert you if it fails.
I just had the same problem mentioned here. I installed otp_win64_R15B02 on a Windows 7 machine and everything worked perfectly, but I used the same installer on a Windows 2008 server and the bin directory was not created. I then uninstalled otp_win64_R15B02 and downloaded the otp_win64_R15B02_with_MSVCR100_installer_fix and the bin directory was created.
I suspect the reason it worked on my Windows 7 system is that I have Visual Studio installed and the required libraries were already available which allowed the otp_win64_R15B02 installer to work correctly.
Oh, and if you're installing Erlang to run RabbitMQ the RabbitMQ install will succeed with the broken installer but installing otp_win64_R15B02_with_MSVCR100_installer_fix after RabbitMQ will not work, just un-install and re-install RabbitMQ to resolve this.
Just give C:\Program Files\erl10.6\ not C:\Program Files\erl10.6\bin\erl.exe in the environment variable. If you open the server.bat file I came to know the issueenter image description here
I think this is encoding issue on windows.I see a correct value but I write echo %ERLANG_HOME% on console the value come with question mark. These steps fix it.
1.go environment variable window
2.edit ERLANG_HOME item
3.copy the value, open notepad and paste there
4.copy again on notepad and paste to edit window
5.apply and exit window
6.close command line tools and reopen
7.run rabbitmq bat file.
I solved it in a quick and dirty way,without naming path variables
I've opened the bat file and replaced every occurrence of
!ERLANG_HOME!\bin\erl.exe
with hard coded path for example might be diffrent path for you because of diffrent version
C:\Program Files\erl10.3\erts-10.3\bin\erl.exe
and replaced
%RABBITMQ_HOME%\escript\rabbitmq-plugins
with
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.14\escript\rabbitmq-plugins
Even I was this problem. The issue was the environment variable ERLANG_HOME=c:\Program Files\erl9.0 which was never existed.
I cross checked the path. The correct path was c:\Program Files\erl9.3.
After correcting the
ERLANG_HOME=c:\Program Files\erl9.3
the problem solved. So, definitely it is a path issue.
In my case, it should be installed erlang using admin role running
If above solutions doesn't work for you then you can try following
Find another compatible version of erlang for your rabbit mq e.g. for rabbit 3.7.x erlang version 20.3.x to 22.0.x all are compatible .
Right click newly downloaded erlang version and from properties select the option to unblock the file .
Run the erlang with admin persssion .
Re run rabbit mq exe

Resources