Page 1 of 1

Autostart XAMPP

PostPosted: 19. April 2006 18:10
by munky
How can I get it to autostart when i login instead of having to type "/opt/lampp/lampp start" everytime?

PostPosted: 20. April 2006 12:46
by jgbrown
Munky...

This is covered in the XAMPP FAQ document, under After I rebooted my Linux box XAMPP stopped running! How can I fix this?:
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.

--------

OpenSuSE 10.0 is a little bit strange: You need to set up a symbolic link from /etc/init.d/lampp to /opt/lampp/lampp:

ln -s /opt/lampp/lampp /etc/init.d/lampp

And than use the runlevel editor (expert mode) from YaST to activate XAMPP for the specific runlevels.


Other Linux distributions may have other means of starting applications at boot time. Check the documentation for the distro you use.

JGB

PostPosted: 20. April 2006 14:38
by jgbrown
Whoops. Mayhap the FAQ is in error. See this post.

JGB

PostPosted: 20. April 2006 18:03
by jgbrown
Double whoops. All I uncovered was my own ignorance. Read that entire thread for the whole story.

JGB

PostPosted: 07. May 2006 21:38
by Ticha
also ich habe das jetzt auch versucht, allerdings startet Xampp nicht automatisch :-I


allerdings die SSH konferenz ist direkt erreichbar somit kann ich den den Apche auch so hochfahren, besser wäre es natürlich wenn er automatisch hochfahren würde

ich benutze Linux Mandriva