Lemmer Posted July 3, 2011 Report Share Posted July 3, 2011 Hello! Recently I want to distribute a PHP/MySQL application along with UniServer to client's computer running Win7. How can I achieve the following: 1. Run PHP/MySQL/Apache on Windows startup.2. Do not show "Press key to continue..." - just automatically close console window after server started.3. Open Google Chrome browser (which could not be default browser) at system startup and redirect immediately to my application instead opening APanel.4. Do not show UniServer splash screen before redirect at startup. Thank you in advance! Quote Link to comment Share on other sites More sharing options...
BobS Posted July 4, 2011 Report Share Posted July 4, 2011 1. Run PHP/MySQL/Apache on Windows startup. See the alternative_control directory for Start_Server.bat and place it in the Startup folder (for XP), or make a Run entry for it in the registry (HKCU\Software\Microsoft\Windows\Current Version\Run). 2. Do not show "Press key to continue..." - just automatically close console window after server started. Use a refresh command. See home\admin\www\redirect.html for an example. 3. Open Google Chrome browser (which could not be default browser) at system startup and redirect immediately to my application instead opening APanel. This is more complex. Go to PortableApps.com and download Chrome.Check out some of the Wiki pages concerning PAC and following: http://wiki.uniformserver.com/index.php/Virtual_Hosting:_PAC These will at least lead you in the right direction. 4. Do not show UniServer splash screen before redirect at startup. One way is to change the redirect.html page. In any case, you'll need to do some research and testing. I suggest you consult the Wiki a lot. Regards,BobS Quote Link to comment Share on other sites More sharing options...
Lemmer Posted July 4, 2011 Author Report Share Posted July 4, 2011 Thank you, BobS!After some investigation I do the following, but not sure I'm doing right.... 1. Added a shortcut to start_servers.bat to startup folder.2. Commented out the pause call in start_servers.bat.3. Run start_servers.php with parameter 3 in batch file and then call portable chrome directly from start_servers.bat along with http://localhost/ parameter.4. Step 3 fixed that. Is there something I do incorrect way? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.