The Computer Oracle

How to change default browser to open localhost in wampserver

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Thinking It Over

--

Chapters
00:00 How To Change Default Browser To Open Localhost In Wampserver
00:26 Answer 1 Score 1
00:48 Answer 2 Score 1
01:25 Accepted Answer Score 33
02:01 Answer 4 Score 4
02:24 Thank you

--

Full question
https://superuser.com/questions/160730/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows7 #localhost #wamp

#avk47



ACCEPTED ANSWER

Score 33


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



ANSWER 2

Score 4


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.




ANSWER 3

Score 1


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



ANSWER 4

Score 1


Here is another solution more appropriate I think:

In your main wamp locate the file named wampmanager.ini (seems to be named wampserver.ini on some installs). If you want to change only the browser for localhost, search for the [Menu.Left] section, around line 277. Two lines in that section define the path to the browser for localhost and phpmyadmin. Change it to point to the desired browser.

If you want to change every settings involving the preset browser, run a find command in the file with the browser's name.