![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Re: Apache and MySQL as services?
Quote:
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. |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|