LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-30-2002, 02:26 PM   #1
buddy
LQ Newbie
 
Registered: Dec 2002
Location: Montreal
Distribution: Mdk9
Posts: 20

Rep: Reputation: 0
Exclamation Starting apache and mysql as service on boot ::


Hey folks,

Me again, as you can see from my other postings - I have my main stuff working again...

Unfortunately they are not working as I wish 100%. How des one have apache and php/mysql start on boot. I've attempted this in the past with results that were... well just not working. So I've now turned to you guys - which have helped me today a great deal.

Any ideas on steps to take to get these things running as services or on boot? Being a webserver if we ever went down and needed a reboot - I would need these to be automatic... For that matter I would also need to get VNC running as a service too.


Cheers mates
 
Old 12-30-2002, 02:47 PM   #2
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
I'm not familiar with the mdk9 distribution, but failing all else if you posess an rc.local in your /etc/rc.d directory you can simply add the command to start apache in that.

/path-to-apache/bin/apachectl start &

Otherwise I'd recomment a man chkconfig.

Slick.


Slick.
 
Old 12-30-2002, 02:51 PM   #3
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Dunno much about MDK, but if it is as similar to RH as I hear..

/sbin/chkconfig --level 35 httpd on
/sbin/chkconfig --level 35 mysqld on


Also try running 'serviceconf' from within X to see if you have the graphical utility to administer services.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot adjust 'apache2' service when starting Apache cbj4074 Linux - Software 7 11-18-2005 02:48 PM
Starting a Service at Boot as a Different user Butterbroetchen Linux - Security 2 05-16-2005 07:05 PM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 06:39 PM
Starting up a service (Postgres) on boot aa2bi Linux - Newbie 1 06-15-2004 05:34 PM
Starting and Restarting the Apache service. johann519 Fedora 6 02-05-2004 11:00 PM


All times are GMT -5. The time now is 03:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration