How to change default browser to open localhost in wampserver

When I installed wampserver on my computer. I didn't have firefox or any browser installed. Because I also disabled Internet explorer. How do I manually set the default browser that opens up localhost or phpmyadmin from wampserver when you left click it


Solution 1:

To change the default browser for the tray icon:

  • Open C:\wamp in Windows Explorer (or wherever you installed wampserver)
  • Open wampmanager.conf in a text editor

    • Find the section [main]
    • Find the following line:

      navigator = "C:\Program Files\Internet Explorer\IEXPLORE.EXE"
      
    • Replace it with:

      navigator = “C:\Program Files\Mozilla Firefox\firefox.exe”
      
  • Save the the file
  • Restart the tray icon

Solution 2:

Open your wampmanager.conf file in a text editor; it is usually in C:/wamp/wampmanager.conf.

Under the section [main], you will find the key navigator. Change its value to the path of your browser. For example:

navigator = "C:/Program Files/Mozilla Firefox/firefox.exe"

Restart the wampserver tray icon.

Solution 3:

this may not be exactly what you want, but may work for you. You can set the shortcut properties target, and define which browser to use. This vista example is using chrome, but you can target whichever browser you prefer, just point to the application exe.

 C:\Users\anyUser\AppData\Local\Google\Chrome\Application\chrome.exe --app=http://localhost/default.htm