Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use Notepad++ to open my httpd.conf and php.ini configuration files and have associated those file types in Windows to Notepad++; opening those documents via windows opens Notepad++. But when I use WAMP (Apache MySQL and PHP for windows) Server's menu to access these config files it opens Microsoft Notepad, an unacceptable editor. Is there any known way to change how WAMP Server opens these files?


locked by HopelessN00b Feb 19 '15 at 6:33

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

closed as off topic by MDMarra, Michael Hampton, mdpc, Dave M, Khaled Feb 8 '13 at 18:33

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 10 down vote accepted

Look for the [apacheMenu] section of your wampmanager.tpl file. There are definitions in that file that specify how to edit various configuration files including what editor to use.

To set NP++ as the default for all the files you can do a simple find-and-replace of "notepad.exe" --> "C:/Program Files/Notepad++/notepad++.exe" - note the forward slashes instead of backslashes.

Note that in new WAMP version there is a wampmanager.conf file which contains all the variables' definitions therefore you should change the "editor" constant there instead of directly modifying the .tpl file – Milan Jan 20 2015 (This comment was auto-hidden, but 100% relevant, and where you need to edit it in the newer WAMP)

Technically the wampmanager.tpl file has to be edited, the .ini is regenerated every time WAMP starts from that file. Thanks for pointing me in the right direction though. – Ben Brocka Aug 10 '11 at 15:41
This doesn't work for me. I made the changes, stopped WampServer from the command line with "wampmanager.exe -quit -id={wampserver}" and restarted it with "wampmanager.exe", but it still uses notepad. – Erel Segal-Halevi May 1 '14 at 7:17
wampmanager.ini is automatically created when I restart wampmanager, and it contains "notepad.exe" even though I chagned wampmanager.tpl – Erel Segal-Halevi May 1 '14 at 7:24
In new Wamp versions - I tested only Version 2.5 - there is new approach in wampmanager.tpl it is defining the variable ${c_editor} with your favorite editor path in the beginning of the tpl file something like the following: ${c_editor} = "C:/Program Files (x86)/Notepad++/notepad++.exe"; – sємsєм Aug 11 '14 at 22:46
in wampmanager.conf, use editor = "C:/Program Files/Notepad++/notepad++.exe" – sawe Oct 30 '14 at 6:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.