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.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
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
2. Solaris
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
3. 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
4. Red Hat
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
5. BSD
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
6. Web Development
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
7. Red Hat
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
8. UNIX for Advanced & Expert Users
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
9. Ubuntu
on ubuntu lamp server how to install mysql and apache? any instructions? (1 Reply)
Discussion started by: srinathk
1 Replies
10. Web Development
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
LEARN ABOUT MOJAVE
service
SERVICE(8) System Manager's Manual SERVICE(8)
NAME
service - run a System V init script
SYNOPSIS
service SCRIPT COMMAND [OPTIONS]
service --status-all
service --help | -h | --version
DESCRIPTION
service runs a System V init script or systemd unit in as predictable an environment as possible, removing most environment variables and
with the current working directory set to /.
The SCRIPT parameter specifies a System V init script, located in /etc/init.d/SCRIPT, or the name of a systemd unit. The existence of a
systemd unit of the same name as a script in /etc/init.d will cause the unit to take precedence over the init.d script. The supported val-
ues of COMMAND depend on the invoked script. service passes COMMAND and OPTIONS to the init script unmodified. For systemd units, start,
stop, status, and reload are passed through to their systemctl/initctl equivalents.
All scripts should support at least the start and stop commands. As a special case, if COMMAND is --full-restart, the script is run twice,
first with the stop command, then with the start command.
service --status-all runs all init scripts, in alphabetical order, with the status command. The status is [ + ] for running services, [ - ]
for stopped services and [ ? ] for services without a status command. This option only calls status for sysvinit jobs.
EXIT CODES
service calls the init script and returns the status returned by it.
FILES
/etc/init.d
The directory containing System V init scripts.
/{lib,run,etc}/systemd/system
The directories containing systemd units.
ENVIRONMENT
LANG, LANGUAGE, LC_CTYPE, LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES, LC_PAPER, LC_NAME, LC_ADDRESS, LC_TELEPHONE, LC_MEA-
SUREMENT, LC_IDENTIFICATION, LC_ALL, TERM, PATH
The only environment variables passed to the init scripts.
SEE ALSO
/etc/init.d/skeleton
update-rc.d(8)
init(8)
invoke-rc.d(8)
systemctl(1)
AUTHOR
Miloslav Trmac <mitr@redhat.com>, Petter Reinholdtsen <pere@hungry.com>
Licence: GNU Public Licence v2 (GPLv2)
COPYRIGHT
2006 Red Hat, Inc., Petter Reinholdtsen <pere@hungry.com>
Jan 206 SERVICE(8)