Apache and MySQL as services?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Apache and MySQL as services?
# 1  
Old 05-10-2004
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!
# 2  
Old 05-10-2004
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.
# 3  
Old 05-10-2004
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?
# 4  
Old 05-10-2004
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 &
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

Apache users from MySQL database

Hi team, How can I implement a users in MySQL database for Apache users, assuming that I'm using RHEL6. That is to say, how can I design this database and how let's Apache server know those user in this database. Thanks in advance.. (3 Replies)
Discussion started by: leo_ultra_leo
3 Replies

2. Ubuntu

Mysql apache installation

on ubuntu lamp server how to install mysql and apache? any instructions? (1 Reply)
Discussion started by: srinathk
1 Replies

3. UNIX for Advanced & Expert Users

How to optimize apache and mysql on my dedicated server?

Hi, Any one please suggest me the best mysql, apache settings for the given below scenario. My Server config: Intel(R) Xeon(R) CPU E5504 @ 2.00GHz 8GB RAM 300GB HDD Website: It's a famous wordpress blog Mysql DB size: 235MB Expectations: Server should be handle 600+ concurrent... (0 Replies)
Discussion started by: chandranjoy
0 Replies

4. Red Hat

Apache,php,mysql, and jdk 1.6 update 20 installation on RHEL 5.5

I want to install Apache (version 2.2.X), php (version 5.3.X),mysql (version 5.5.X) on RHEL 5.5. Guide re. site address for download all rpm. X = latest version. Thanks in advance. (1 Reply)
Discussion started by: vasdaax
1 Replies

5. Web Development

not able to build mod_auth_mysql.c on solaris10 sparc with apache 1.3.34 and mysql 5.1.50

Hello , I have s Solaris 10 10/09 s10x_u8wos_08a X86 OS. I installed Apache 1.3.34 and MYSQL 5.1.50. while executing the following command to compile the mod_auth_mysql.c module sudo ./apxs -c -L/d00/tbls/mysql/lib -I/d00/tbls/mysql/include -lmysqlclient -lm -lz mod_auth_mysql.c. result of it... (2 Replies)
Discussion started by: cnighojkar
2 Replies

6. BSD

Setting up Apache/mySQL/PHP in Jail

Server: FreeBSD 7.2-Release Previously I admin a website that uses IP.Board as a forum. It was on a FreeBSD server but there were some issues with some other people on the server so the whole server has been resetup. It is has been set up as a Unix Jail and I was given root access. Apache has... (3 Replies)
Discussion started by: Dark Severance
3 Replies

7. Red Hat

Wordpress + Apache,PHP,MySQL = blankpage

Hi, This is my problem: - I install and configure apache,php,mysql-server - configure database on mysql and wp-config od Wordpress - upload files wordpress in to public_html and... i see results "blank page". What is it? Where is problem? (PS. I install and configure wordpress few... (1 Reply)
Discussion started by: gripek
1 Replies

8. SCO

Apache Services and subversion on SCO

I have SCO OpenServer 5.0.7. I think the SCO box is running Apache internet services because if I open IE and enter \\scoserver in the addressbar, I get the Apache test page. Does SCO run Apache by default? If Apache is running, can I use the SCO box for a subversion repository? Anybody ever... (1 Reply)
Discussion started by: bnhcomputing
1 Replies

9. Solaris

Problems starting apache 1.3 with mysql

I've been working on a project to replace one of the my group's primary NIS servers. It also runs mysql and apache, as it is the host for the our team's hardware tracking database and website. Its running apache 1.3, and for some odd reason, I can't get apache to start on system boot. The... (1 Reply)
Discussion started by: godspunk32
1 Replies

10. UNIX for Dummies Questions & Answers

PHP & Apache & MySQL install how-to ?

how do i install php & mysql with apache on suse linux ??? apache was installed and configured when i installed linux. all its files are in different folders. e.g http files in usr/local/httpd/htdocs/ and its configs are in etc/httpd/ so how do i install php and get it to work with apache and... (4 Replies)
Discussion started by: perleo
4 Replies
Login or Register to Ask a Question