The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
MySQL article - Sun and MySQL: How It Stacks Up for Developers iBot UNIX and Linux RSS News 0 02-28-2008 08:20 PM
Problems starting apache 1.3 with mysql godspunk32 SUN Solaris 1 08-25-2006 06:56 AM
mysql would not start: missing mysql.sock xnightcrawl UNIX for Advanced & Expert Users 2 05-26-2006 07:06 AM
PHP & Apache & MySQL install how-to ? perleo UNIX for Dummies Questions & Answers 4 09-01-2003 08:42 PM
MySQL problem >> missing mysql.sock _hp_ UNIX for Advanced & Expert Users 8 11-03-2002 11:44 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 05-10-2004
Registered User
 

Join Date: Feb 2002
Location: HELLena, MT
Posts: 13
Apache and MySQL as services?

What is the best way to run Apache2 and MySQL as daemons that run on startup? Can anyone give me some scenarios/examples. Thanks in advance!
__________________
g_M_e
Reply With Quote
Forum Sponsor
  #2  
Old 05-10-2004
flim flam flamma jamma
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
Re: Apache and MySQL as services?

Quote:
Originally posted by ezekiel61
What is the best way to run Apache2 and MySQL as daemons that run on startup? Can anyone give me some scenarios/examples. Thanks in advance!
it helps to know the os you are useing. different oses use differnt ways to start services.

if you read the apache2 docs you should see a section that says how to install it as a service.

basicly you create a script and put it with the rest fo your run control scripts. and link to it from teh proper init level directory.

IE:

in solaris all the run control scripts are in /etc/init.d
you create your start/shutdown script in there.

then usually in /etc/rc3.d you create a hard link to the script you just created. The link would be named S##script-name (ie: S99apache2) and you would have a shutdown script in /etc/rc0-2.d also. These scripts would start with a K.
Reply With Quote
  #3  
Old 05-10-2004
Registered User
 

Join Date: Feb 2002
Location: HELLena, MT
Posts: 13
sorry, I'm running FreeBSD 4.9-RELEASE. I don't see a /etc/rc.d or an /etc/init.d folder. Where do startup scripts go?
__________________
g_M_e
Reply With Quote
  #4  
Old 05-10-2004
Registered User
 

Join Date: Feb 2002
Location: HELLena, MT
Posts: 13
i got it to work! w00t! all i had to do was create a file called rc.local with the following lines:

echo " httpd"; /path/to/apache start
echo " mysqld"; /path/to/mysqld_safe --user=mysql &
__________________
g_M_e
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 02:55 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0