Jump to content
The Uniform Server Community

Running the server at system startup


Lemmer
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...