me looking so small in this world

15 2006f October, 2006

automatically start xampp on boot

Filed under: xampp — rudyegenias @ 11:35 am

(also applies to xampplite)

What could be the search engine terms for this?

  • start xampp automatically
  • xampp as a service
  • xampp in windows startup folder

Here we go with the story:

I always favored simplicity and ease of life that’s why I have many articles relating to productivity(has also remodeled the links on my blog to simplify things up). Then since I am always using xampp as a development environment. I want it started when I start my PC.

So how it is going to be?

  • as a service
  • as a startup program for windows(more clutter on your taskbar)
  • other things(don’t know/forgot)

As a service

You can set this one by:

  1. Going first to your installation directory(in my case it’s c:\xampplite). It could be somewhere else depending on your installation. Have also my full version in c:\x2\xampp
  2. Once your in the installation directory find xampp-control.exe and click/double-click to launch it.
  3. You should first stop all running instances of your apache2 and mysqld/mysql to do this.
  4. Click the checkmark next to Apache and Mysql with the header name Service.
  5. It will warn you that it’s installing as a service which of course is what we like it to do. Click Yes.
  6. Do step 5 also with Mysql. We’re almost done.
  7. Click Start ยป then Run
  8. Type services.msc(it can also be done in control panel under administrative tools which is a way lot of click than this one).
  9. Find apache2 and mysql services
  10. Double click each one and set the startup type to Automatic (You will be presented with 3 options: Automatic, Manual, Disabled)
    Automatic – will start it automatically at startup
    Manual – user’s will have to start it up manually i.e. by issuing command like net start apache2
    Disabled – will disable it.
    ****be warned though that any change in the services just like the registry can cause your system to stall***
  11. Click the start button to manually start it(just for the session though). The next restart it’ll be automated.
  12. Do the same with mysql.

As a startup program

  1. Find xampp_start.exe from your installation directory
  2. Press Ctrl+C to copy it or right-click the file and hit copy.
  3. Go to C:\Documents and Settings\Administrator\Start Menu\Programs\Startup and right click on it and hit Paste Shortcut
  4. When you restart it’ll be starting also and you’ll see something like this:

  5. You can stop it by issuing the xampp_stop.exe command in your installation directory.
    ***another worth mentioning is that if you right click again on the shortcut and hit properties, try to change the run option to minimized. This way the shortcut will be on your taskbar once started.

Enjoy.

8 Comments »

  1. I am looking for a solution for xampp on Mac and came across your article. I have a question, the article is for Windows, but the interface you have is so Mac, what did you use to get the Mac look?

    Thanks.

    Rich

    Comment by rich — 7 2007f December, 2007 @ 8:05 am | Reply

  2. Thanks Rich for visiting.

    The look is from Flyakite OSX. It is just sort of skin for windows. Cheers.

    Comment by rudyegenias — 8 2008f January, 2008 @ 10:50 am | Reply

  3. Thanks
    That was helpful information

    Comment by hat — 11 2008f June, 2008 @ 7:31 pm | Reply

  4. Great!
    Very helpful to me.
    Thanks lot.

    Regards
    Deva

    Comment by Devasundaram — 31 2008f July, 2008 @ 7:56 pm | Reply

  5. Hi,

    thanks for that article – you just saved the rest of my hair from being pulled out. I kept getting BSOD (Vista) when trying to start Apache. Figured out that xampp control panel was not setting up Apache or MySql as a service (by going through your steps). Turns out (typical Vista) that I needed to run Xampp control panel as administrator. No error message was being given of course (thanks MS), the service was just not being installed and when I tried to start Apache, the blue screen happened,

    cheers,

    Mike

    Thanks Mike, saving hair loss these days takes a good deal of patience. Knowing I’ve helped you on this cause flatters me. Cheers from the Philippines.

    Comment by Mike — 10 2008f October, 2008 @ 4:39 pm | Reply

  6. Thank you very much. What I needed was the first part of your post “As a service”. I even only needed steps 1.-6. because the “Startup Type” was already set to “Automatic”. So it all amounted to clicking just the two checkboxes!

    Since I’m no operating system expert, I would really have liked if XAMPP just had checkboxes like this:

    [ ] Start Apache automatically when computer is booted
    [ ] Start MySQL automatically when computer is booted

    This would have helped me out right away. Anyway, thanks again for your help.

    Comment by koyama — 22 2009f April, 2009 @ 7:43 am | Reply

  7. Wow, thank you! I’m not new to xampp….but this new installation of xampp for some reason wasn’t a service from the get go (it was last installation). And since I work with websites a lot and scripting I wanted it as a start up service. Used the first solution and it seems to work like a charm.

    *goes to restart*

    Comment by Daquan Wright — 16 2009f August, 2009 @ 7:43 am | Reply

  8. i am using xampp on windows
    i hve ubuntu 9.04 also on my system
    when i use ubuntu will the xampp work
    shall i need to install xampp on ubuntu too

    Comment by satyadeep — 28 2009f August, 2009 @ 3:48 am | Reply


RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.