Jump to content
The Uniform Server Community
snecia

Starting Apache and MySQL automatically

Recommended Posts

I want to start Apache and MySQL automatically when I launch uniserver without having to click on Start Apache and Start MySQL. Is this possible?

 

According to past forum posts, there used to be batch files that could this, but I couldn't find any in the latest version.

 

Also, I can't get uniserver to start automatically with apache and mysql at computer startup, despite configuring it to do so.

 

But I would still much rather launch it myself using a batch script and have apache and mysql start on application launch.

 

Thank you,

 

Alex

Share this post


Link to post
Share on other sites

Two things: First and foremost, tell us what version of The Uniform Server you are using. What version of Windows would be helpful, also.

Second, when you say "configuring" it to run at startup, do you mean that you set it to start it as a service (which is the right way)? The batch files were a workaround for making the programs run as a service.

 

Regards,

BobS

Share this post


Link to post
Share on other sites

I got what I believe is the latest one: Zero XI, 11.0.0 and I'm under Windows 8

 

I don't think I configured it to run as a service, I just went in Extra -> PC-win start-up and checked everything.

 

Ideally, I would not like to run everything on computer start-up, but rather just have Apache and MySQL start automatically when I launch the UniController.exe

 

I was using XAMPP before, the config file had:

 

[Autostart]

Apache = 1

MySQL = 1

 

That did exactly that. Is something similar possible with uniserver? If not, is there a workaround I could make myself?

 

The reason I ask is that I have a backdoor into my home server that runs a few services for myself and my friends (games, small web server etc). As I'm often away, I have little scripts that I can execute from anywhere to remotely play around with things.

Share this post


Link to post
Share on other sites

You can use command-line parameters for example:

UniController.exe start_both
UniController.exe stop_both

For details see reference manual page:
UniServerZ/docs/manual/command_line_parameters.html

All the best
Ric

Share this post


Link to post
Share on other sites

Hi all.

We were using the coral 8 version and know we are moving to Zero version.

I have a question regarding the " run at startup" feature. is this option install uniserver as service (like for the corl 8 version) or just start uniserver when computer starts.

I have another question regarding this feature, if it's not a service do a user need to login to start the uniserver ?

 

Thank you.

 

Guillaume

Share this post


Link to post
Share on other sites

Hi All,

 

I have made a test with uniserver Zero XI (11_0_1) and windows 7 64b

I have activated the run at start-up (seems to need administrator rights) and restart my computer

-> i was able to access to the website without any user logged in.

 

I have check the msconfig program and see unicontroller zero in the startup tab.

So in this version, uniserver is no more a service.

 

Has someone tried to use this version on a windows server system ? i don't know if the behaviour is the same.

 

 

Guillaume

Share this post


Link to post
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...

×
×
  • Create New...