Auto Boot on server startup ?

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

Auto Boot on server startup ?

Postby Guest » 05. October 2003 22:55

how do i setup xampp on linux 9 to startup with the system ?
Guest
 

Postby esCmo » 06. October 2003 12:51

Translated from the FAQ:
First, you have to find out what default runlevel your system is booting.
Code: Select all
egrep :initdefault: /etc/inittab

Mostly this will be 3 or 5.

Change to the directory that configures your runlevel, e.g if your runlevel is 3, change (command: cd) into /etc/rc.d/rc3.d

Now symlink /opt/lampp/lampp to S99lampp and K01lampp
Code: Select all
ln -s /opt/lampp/lampp S99lampp
ln -s /opt/lampp/lampp K01lampp


Now XAMPP for Linux should be started on every boot.
User avatar
esCmo
 
Posts: 59
Joined: 21. September 2003 22:01

Postby Guest » 08. October 2003 01:49

esCmo wrote:Translated from the FAQ:
First, you have to find out what default runlevel your system is booting.
Code: Select all
egrep :initdefault: /etc/inittab

Mostly this will be 3 or 5.

Change to the directory that configures your runlevel, e.g if your runlevel is 3, change (command: cd) into /etc/rc.d/rc3.d

Now symlink /opt/lampp/lampp to S99lampp and K01lampp
Code: Select all
ln -s /opt/lampp/lampp S99lampp
ln -s /opt/lampp/lampp K01lampp


Now XAMPP for Linux should be started on every boot.



so i edit this file ( /etc/inittab ) with the symlink code ( ln -s /opt/lampp/lampp S99lampp
ln -s /opt/lampp/lampp K01lampp )
Guest
 

Postby Guest » 08. October 2003 05:00

it was 5


i think i got it down now....
Guest
 

Postby esCmo » 08. October 2003 13:48

Anonymous wrote:so i edit this file ( /etc/inittab ) with the symlink code ( ln -s /opt/lampp/lampp S99lampp
ln -s /opt/lampp/lampp K01lampp )

You don't have to edit anything, just symlink /opt/lampp/lampp to /etc/rc.d/rc5.d/S99lampp and /etc/rc.d/rc5.d/K01lampp
User avatar
esCmo
 
Posts: 59
Joined: 21. September 2003 22:01

Postby Guest » 09. October 2003 02:02

got it to work , much thanks
Guest
 

Autoboot on Red Hat 9.0

Postby author » 13. October 2003 21:09

:) Another way of accomplishing autoboot--since Red Hat 9.0's server installation already has an older version of Apache, MySQL, and usually an FTP program running:

1) go to /etc/rc.d/init.d as root

2) move the httpd, mysqld, and whatever the FTP version you are running (in my case it was vsftpd) to somewhere else (I put them in the root directory just to get them out of the way).

3) do

cp /opt/lampp/lampp ./

4) restart the server (shutdown -r now)

That's it.... worked nicely for me.

--Ralph
--Ralph Roberts, CEO
aBOOKS / Creativity, Inc.
http://abooks.com
author
 
Posts: 2
Joined: 13. October 2003 20:59
Location: Alexander, North Carolina


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 3 guests