Ubuntu Server To Auto Load XAMPP On Bootup

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

Ubuntu Server To Auto Load XAMPP On Bootup

Postby vincentrich » 17. June 2007 20:09

http://www.apachefriends.org/en/faq-xam ... x.html#fsl

I followed the tutorial above but I cannot get it to work on Ubuntu Server.

After I rebooted my Linux box XAMPP stopped running! How can I fix this?
Correct. That's normal Linux behaviour (which applies to any other Unix-like system. It's the admin's job to make sure a particular application is started at bootup.

There is no real standard way to configure the boot process of a Linux system, but most of them should allow you to start XAMPP at boot time using the following steps.

1. First, find out your default runlevel.
Simply type egrep :initdefault: /etc/inittab.
You should no see a line containing a number between two colons.
In most cases 3 or 5 (2 if you're using Debian).

2. Go into the directory which configures this runlevel. If for example your runlevel is 3, then you have to change into the /etc/rc.d/rc3.d directory.

If your system didn't provide /etc/rc.d/rc3.d please try also /etc/init.d/rc3.d and /etc/rc3.d.
3. Now carry out the actual configuration by typing:

ln -s /opt/lampp/lampp S99lampp
ln -s /opt/lampp/lampp K01lampp

Now XAMPP should start and stop automatically if you boot or shutdown your machine.


Command 1 failed. I could only find "/etc/init.d/". No such thing as rc.d, rc3.d on Ubuntu Server. The is rc.local file though but not sure what it does.

Any help would be appreciated. Thanks!
vincentrich
 
Posts: 45
Joined: 19. January 2005 10:05
Location: Singapore

Postby vincentrich » 17. June 2007 20:50

Finally figured this out...

sudo ln -s /opt/lampp/lampp /etc/init.d/lampp
sudo update-rc.d -f lampp defaults
vincentrich
 
Posts: 45
Joined: 19. January 2005 10:05
Location: Singapore


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 4 guests