Autostart XAMPP

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

Autostart XAMPP

Postby munky » 19. April 2006 18:10

How can I get it to autostart when i login instead of having to type "/opt/lampp/lampp start" everytime?
munky
 
Posts: 1
Joined: 19. April 2006 15:08

Postby jgbrown » 20. April 2006 12:46

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
User avatar
jgbrown
 
Posts: 13
Joined: 19. April 2006 02:38

Postby jgbrown » 20. April 2006 14:38

Whoops. Mayhap the FAQ is in error. See this post.

JGB
User avatar
jgbrown
 
Posts: 13
Joined: 19. April 2006 02:38

Postby jgbrown » 20. April 2006 18:03

Double whoops. All I uncovered was my own ignorance. Read that entire thread for the whole story.

JGB
User avatar
jgbrown
 
Posts: 13
Joined: 19. April 2006 02:38

Postby Ticha » 07. May 2006 21:38

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
1101011010101110100010101010101101
0101011010101110101010101111100010
0011010101111000100101010101010111
1110100011010101001010101102011001

2??? EINE 2??? AHHH ES GIBT KEINE 2!!! ES DARF KEINE 2 GEBEN !!! MEINE WELT GEHT UNTER!!! *umfall TOT*
Ticha
 
Posts: 94
Joined: 18. January 2006 14:23


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 3 guests