Page 1 of 1

Auto-start Apache & MySQL?

PostPosted: 04. August 2005 23:02
by Vger
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

PostPosted: 04. August 2005 23:24
by =P=
I'm sure I did this by dragging xampp_start.bat and mysql_start.bat to the Startup menu folder.

PostPosted: 04. August 2005 23:39
by Vger
Thanks for that. I'm running a search for them now - but can't locate them so far.

Vger

PostPosted: 05. August 2005 00:11
by Vger
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

PostPosted: 05. August 2005 07:58
by kasul
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.

PostPosted: 05. August 2005 13:03
by Vger
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

PostPosted: 05. August 2005 17:46
by kasul
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.