LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-17-2005, 05:21 PM   #1
Ziax
LQ Newbie
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 11

Rep: Reputation: 0
Compiled Apache v2.20, but it won't startup automatically


Hello

Compiled Apache v2.2 with success, and copied the bin/apachectl to /etc/init.d, but it doesn't show in the list with drakconf.

Did the same with support-files/mysql.server and that's working.

Anyone have an idea?

Cheers
 
Old 12-17-2005, 09:07 PM   #2
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by Ziax
Hello

Compiled Apache v2.2 with success, and copied the bin/apachectl to /etc/init.d, but it doesn't show in the list with drakconf.

Did the same with support-files/mysql.server and that's working.

Anyone have an idea?

Cheers

if you open this folder
/etc/rc.d/rc5.d
you will see lots of symlinks to files in /etc/init.d
Everythin here is loaded when you start you computer and start X , kde etc.



ln -s /etc/init.d/apachectl /etc/rc.d/rc5.d/S60apachectl


S is to start
K is for kill
as you go down to 4 3 2 1 lots of Kills are used to close extra stuff.

the number is the order they are started i think?
 
Old 12-18-2005, 07:57 AM   #3
Ziax
LQ Newbie
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 11

Original Poster
Rep: Reputation: 0
Hello

I did this: (taking from a guide)
Quote:
#cd /etc/rc3.d
#ln -s ../init.d/httpd S85httpd
#ln -s ../init.d/httpd K85httpd
#cd /etc/rc5.d
#ln -s ../init.d/httpd S85httpd
#ln -s ../init.d/httpd K85httpd
But no, It still don't shows in the list in drakconf.

Cheers
 
Old 12-18-2005, 10:40 PM   #4
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by Ziax
Hello

I did this: (taking from a guide)


But no, It still don't shows in the list in drakconf.

Cheers
it probably wont show in drakconf because there is probably a config file everything in drakconf has a name description etc

but it should say work during boot try

service apachectl start
[root@localhost carl0ski]# service harddrake stop
Stopping harddrake [ OK ]
[root@localhost carl0ski]# service harddrake start
Checking for new hardware [ OK ]
[root@localhost carl0ski]#


and delete
K85httpd

you cant just start it then stop it straight away

Last edited by carl0ski; 12-18-2005 at 10:42 PM.
 
Old 12-19-2005, 04:21 AM   #5
Ziax
LQ Newbie
 
Registered: Oct 2005
Distribution: Mandriva 2006
Posts: 11

Original Poster
Rep: Reputation: 0
Hello

Hmm, still can't get it to work.

Why did it work so smoothly with MySQL?? I just copied the mysql.server from the support-files to /etc/init.d/, and bang, it shows in the list right away?

Cheers
 
Old 12-19-2005, 04:35 PM   #6
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
AFAIK apachectl is a binary exectuable, not an init script. If you look in any of the other files in /etc/init.d you'll see that they are shell scripts written in a particular format - ie. the start) stop) restart) etc. sections and the sourcing of /etc/init.d/functions. It's not just drakservices that won't pick it up but probably the system itself and any other programs which manage the SysV init scripts (eg. service, chkconfig).

You need to either find an init script in the apache stuff you downloaded (like you found the mysql.server file) or copy one from a computer where apache was installed using RPM.
 
Old 12-19-2005, 05:36 PM   #7
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by tkedwards
AFAIK apachectl is a binary exectuable, not an init script. If you look in any of the other files in /etc/init.d you'll see that they are shell scripts written in a particular format - ie. the start) stop) restart) etc. sections and the sourcing of /etc/init.d/functions. It's not just drakservices that won't pick it up but probably the system itself and any other programs which manage the SysV init scripts (eg. service, chkconfig).

You need to either find an init script in the apache stuff you downloaded (like you found the mysql.server file) or copy one from a computer where apache was installed using RPM.


follow this advice i have never used apache so dont know which files are script
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a module to startup automatically mikegorb Linux - Hardware 1 11-20-2005 02:17 PM
How to automatically connect on startup? PerfectReign Linux - Wireless Networking 6 09-16-2005 01:44 AM
Any way to startup daemon automatically? Niceman2005 Linux - Newbie 2 01-12-2005 09:27 PM
automatically startup a program after booting? caicai Linux - Software 7 08-12-2004 07:16 AM
startup the service automatically ashley75 Linux - General 4 09-24-2003 02:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 09:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration