Jump to content
The Uniform Server Community

Autostart Apache and MySQL


Airburn
 Share

Recommended Posts

Hello,

 

I am looking for a way to change a config file or even create a batch file that will autostart Apache and MySQL instead of having to open Start_as_program and click the button that says "Start Both". Sorry if this has been stated somewhere already, but I have been unable to find it.

 

Also, I tried creating a batch file that runs Start_as_program and then runs the start-apache.bat/start-mysql.bat files and it comes up with port errors.

 

Any help would be great! =]

Link to comment
Share on other sites

Check out the alt_diag subdirectory. That contains all the batch files you need, plus instructions about using them.

Regards,

BobS

Link to comment
Share on other sites

Check out the alt_diag subdirectory. That contains all the batch files you need, plus instructions about using them.

Regards,

BobS

 

Thanks for the reply. I took a look at what you said, however it is not working for me. Below are the steps I took, if there is something I am doing wrong or something else you can think of to try please let me know.

 

Uniform Server 8.7.2

1) Fresh install to a folder on my desktop (c:\users\name\Desktop\webfolder)

2) Run Start_as_program to load all correct paths

3) Close Start_as_program

4) Run self created batch script

cd "%userprofile%\Desktop\webfolder\alt_diag\run_as_program"
start start_apache.bat
start start_mysql.bat
start iexplore http://localhost

 

Both windows come up saying "Starting Apache/MySQL Server. Apache/MySQL Server started. Press any key to continue." IE launches but the website is not able to be displayed (this is the same result as when I execute the batch files manually as well). When I open Run_as_program and start both there, the website launches properly.

 

Am I missing something? Do I need to run more than just those two batch files in alt_diag?

 

Thank you in advance for any help!

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