Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Wamp is a Valid professional alternative to IIS/MS-SQL on Windows server, we use it in our corporate environment when we need to run PHP on windows.

share|improve this question

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

add comment

1 Answer

up vote 7 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.

share|improve this answer
2  
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 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 at 7:24
add comment

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