Page 1 of 1

Auto Boot on server startup ?

PostPosted: 05. October 2003 22:55
by Guest
how do i setup xampp on linux 9 to startup with the system ?

PostPosted: 06. October 2003 12:51
by esCmo
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.

PostPosted: 08. October 2003 01:49
by Guest
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 )

PostPosted: 08. October 2003 05:00
by Guest
it was 5


i think i got it down now....

PostPosted: 08. October 2003 13:48
by esCmo
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

PostPosted: 09. October 2003 02:02
by Guest
got it to work , much thanks

Autoboot on Red Hat 9.0

PostPosted: 13. October 2003 21:09
by author
:) 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

Re: Auto Boot on server startup ?

PostPosted: 12. July 2013 04:21
by rajshardel
Friends Apache is already auto started along with dovecot saslauthd and postfix. The order start up boot is first dovecot then saslauthd then postfix then xampp. Web site gets loaded but I get postfix mail error but when I restart Lampp by command ./lampp restart in lampp directory at terminal postfix mail works.

What is the problem or what should be boot order if boot order is a problem.

These 2 files are already there in run level 5 and that is why lampp starts at boot. Dovecot , saslauthd and postfix status is also already showing started

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

Can anyone help to solve the problem of lampp restart to get postfix mail working.

Rajeev

Mobile : + 91 9810744101

Re: Auto Boot on server startup ?

PostPosted: 08. November 2013 09:18
by rajshardel
Also before restart postfix and dovecot mail from gmail to server and from server to outlook is delivered but mail from website nobody using php code is delivered only after restart lampp once and thereafter mail is continuously delivered..

no errors in maillog and after lampp restart mail works with following logs:

jobseasily postfix/pickup[1801]: 00109124164: uid=99 from=<nobody>
Nov 7 20:42:10 jobseasily postfix/cleanup[12586]: 00109124164: message-id=<20131107151210.00109124164@localhost>
Nov 7 20:42:10 jobseasily postfix/qmgr[1802]: 00109124164: from=<nobody@localhost.localhost>, size=1467, nrcpt=1 (queue active)
Nov 7 20:42:10 jobseasily postfix/pickup[1801]: 141F8124128: uid=99 from=<nobody>
Nov 7 20:42:10 jobseasily postfix/cleanup[12586]: 141F8124128: message-id=<20131107151210.141F8124128@localhost>
Nov 7 20:42:10 jobseasily postfix/qmgr[1802]: 141F8124128: from=<nobody@localhost.localhost>, size=2303, nrcpt=2 (queue active)
Nov 7 20:42:12 jobseasily postfix/smtp[12592]: 141F8124128: to=<rajshardel@gmail.com>, relay=gmail-smtp-in.l.google.com[173.194.79.26]:25, delay=2.4, delays=0.13/0.01/0.95/1.3, dsn=2.0.0, status=sent (250 2.0.0 OK 1383837231 p2si2940376pbe.278 - gsmtp)