Auto-start Apache & MySQL?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Auto-start Apache & MySQL?

Postby Vger » 04. August 2005 23:02

I have just replaced Xitami with XAMPP on my Win XP computer, and would like it to start when the computer boots as Xitami did - instead of having to click on the XAMPP desktop connection and start Apache and MySQL manually.

I'm sure this is a matter of dragging some icon to a start-up folder or something - but which ones and where are they located?

MTIA

Vger
Vger
 
Posts: 21
Joined: 16. June 2005 23:46
Location: United Kingdom

Postby =P= » 04. August 2005 23:24

I'm sure I did this by dragging xampp_start.bat and mysql_start.bat to the Startup menu folder.
=P=
 
Posts: 6
Joined: 04. August 2005 20:52

Postby Vger » 04. August 2005 23:39

Thanks for that. I'm running a search for them now - but can't locate them so far.

Vger
Vger
 
Posts: 21
Joined: 16. June 2005 23:46
Location: United Kingdom

Postby Vger » 05. August 2005 00:11

Okay, found apache_start.bat and mysql_start.bat and dragged both of them to the Startup folder. MySQL does start when the computer boots up now but not Apache, it's still not booting. I'm wondering if Win XP is not permitting it to start?

Vger
Vger
 
Posts: 21
Joined: 16. June 2005 23:46
Location: United Kingdom

Postby kasul » 05. August 2005 07:58

the appropriate way to have them both started on Systemboot is to install them as services.
to do this:
- remove the start.bat's from autostart menu
- make shure that neither mysql nor apache is running
- use <xampp_install_dir>\apache\apache_installservice.bat
- use <xampp_install_dir>\mysql\mysql_installservice.bat

have a look at at any errors reported by these .bats.

if there where no errors, both, apache and mysql are now running and will start automatically while booting.
A pc ist like an aircondition: If you open Windows it does'nt work anymore
kasul
 
Posts: 20
Joined: 06. October 2004 09:52

Postby Vger » 05. August 2005 13:03

Many thanks for the information. I had managed to get MySQL to start on boot by dragging the mysql_start.bat file to the Startup folder, but it didn't work for Apache.

I followed the advice and used the apache_installservice file, and that worked fine for Apache - starting it on boot up.

I removed the mysql_start.bat file from the Startup folder, shut the services down, rebooted and ran the mysql_installservice file but it wouldn't take. So I put the mysql_start.bat file back in the Startup folder and I now have both of them starting up when the 'puter boots. Great - just what I wanted.

Many Thanks - Vger
Vger
 
Posts: 21
Joined: 16. June 2005 23:46
Location: United Kingdom

Postby kasul » 05. August 2005 17:46

hmm. mysql doesn't work as service, but as a normal application? strange.

just4info:

now, the apache will start before a user is logged in, the mysql wont.
A pc ist like an aircondition: If you open Windows it does'nt work anymore
kasul
 
Posts: 20
Joined: 06. October 2004 09:52


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 63 guests