Results 1 to 3 of 3

Thread: How to auto start XAMPP in Ubuntu?

  1. #1
    Join Date
    Feb 2012

    Angry How to auto start XAMPP in Ubuntu?

    I am trying to automatically start XAMPP for Linux (LAMPP) after Ubuntu reboot/boot. I have tried lots of solutions available in internet. None worked for me.
    Could someone help me please? I am using Ubuntu 11.10

  2. #2
    Join Date
    Mar 2012

    Re: How to auto start XAMPP in Ubuntu?

    I was struggling with the same thing. This was very useful
    but didn't work for me because the permissions on /etc/init.d/lampp

    Here is the complete proccess that worked for me (Ubuntu 11.10, Xampp 1.7.7)

    1. Create a script in init.d called lampp
    sudo gedit /etc/init.d/lampp

    2. Paste this code on the script and save
    /opt/lampp/lampp start
    3. Give -x permissions to the file
    sudo chmod +x /etc/init.d/lampp

    4. Use update-rc.d to install init scripts to all runlevel by typing
    sudo update-rc.d lampp defaults

  3. #3
    Join Date
    Apr 2011

    Re: How to auto start XAMPP in Ubuntu?

    Sorry to dig up an old thread, but I needed to do this too and thought I'd add to it for anyone else who stumbles across it. That file should really be:

    file: /etc/init.d/lampp
    /opt/lampp/lampp $1

    That way you can run:
    service lampp stop
    or similar to control it.

    You may also find it helpful on ubuntu to add a umask definition in that file if you have set up appache with it's own user/group. E.g.
    umask 002
    /opt/lampp/lampp $1
    Last edited by swiftoid; April 29th, 2012 at 10:49 AM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts