want to execute localhost automatically
Posted by: ronk (---.hsd1.mn.comcast.net)
Date: May 26, 2014 12:10AM

Have installed Wamp and using it to run TNG The Next Generation from /www/index.php . Before was running MoWes but product is discontinued. I was able to load into the application with 1 click before. It's a minor thing, but now need to start Wamp, then open it and select 'localhost' to run. This is two steps. Anyway to make this work with in 1 step?

Options: ReplyQuote
Re: want to execute localhost automatically
Posted by: Otomatic (Moderator)
Date: May 26, 2014 09:42AM

Hi,

You must use VirtualHost: [forum.wampserver.com]

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: want to execute localhost automatically
Posted by: ronk (---.hsd1.mn.comcast.net)
Date: May 26, 2014 03:28PM

Thanks, but a bit overwhelmed by the length of that discussion. All I wish to do is execute www/index.php on Wamp startup and save one step in loading the application.

Options: ReplyQuote
Re: want to execute localhost automatically
Posted by: Otomatic (Moderator)
Date: May 26, 2014 04:59PM

Hi,

> Thanks, but a bit overwhelmed by the length of that discussion..
Good things are worth. If you do not apply the use of VirtualHost, you may have strongly problems thereafter.
Nevertheless, because it is independent of VirtualHost, here is how to get the automatic opening of the homepage at the startup of WampServer.

- 1 - Quit Wampserver
- 2 - Edit the file C:\wamp\wampmanager.tpl
- 2a - Just before ;WAMPSTARTUPACTIONEND insert a line to obtain:
Action: run; FileName: "${c_navigator}"; Parameters: "h ttp://localhost/"; Flags: waituntilterminated
;WAMPSTARTUPACTIONEND
Note: Do not put a space between h and ttp. I have to put one, otherwise it is automatically converted to url.
- 2b - Save the modified file
- 3 - Run Wampserver

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: want to execute localhost automatically
Posted by: ronk (---.hsd1.mn.comcast.net)
Date: May 26, 2014 05:53PM

Wamp now executes the index.php on startup. Thank you for your assistance, it is most appreciated.

Regards,

Ron

Options: ReplyQuote


Sorry, only registered users may post in this forum.