08-25-2006
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 original system, prince, used a startup script in /etc/rc3.d called S98hits. It was as follows:
#!/bin/sh
/usr/local/mysql/bin/safe_mysqld &
sleep 30
/usr/local/apache/bin/apachectl start
This script works fine on prince, but on the new system, serenity, nothing I do will run that apachectl start at boot time. I've tried pretty much everything I can think of. From what I've seen, if you try to execute apachectl start from a bourne shell, I get a mysql library error, which I've tracked down and fixed, yet the fix won't work. If you run it from a c-shell, the program executes every time, with no errors, but it won't start automatically. The latest iteration of my scripts has a startup script in rc3.d, which reads the following:
#!/bin/sh
/usr/local/apache/bin/startup
startup is a script that I created that contains the following:
#!/bin/csh
/usr/local/apache/bin/apachectl start
I saw somewhere that scripting in csh without adding a -f after the first line can sometimes cause problems, but after trying it, it didn't work.
Now, I'm totally stumped on why nothing is working here. Any ideas?
Thanks!
JR
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am not by any means a UNIX guru if you can't already tell by the question I'm about to ask.
How do I launch Apache web server on my SOlaris 8 server without rebooting it?
Any help would be much appreciated!!!
-Thanks (5 Replies)
Discussion started by: jskillet
5 Replies
2. UNIX for Dummies Questions & Answers
I successfully installed Apache, but When I tried to start it I experienced problems.
After installing and compiling, I typed the PREFIX "usr/local/
apache/bin/apachect1 start." The output was path not found.
After checking the apachect1 file using vi, I found the file empty.
There was no... (4 Replies)
Discussion started by: cstovall
4 Replies
3. Linux
Hi...
I have installed mysql in Fedora and when i tried to start mysql the error i get was
"Asked for 196608 thread stack"
What might be the problem????
I have tried all ways but doesnt work out........ (1 Reply)
Discussion started by: arunkumar_mca
1 Replies
4. Programming
Hi
I am new to APR and I started programming using APR 1.2.2.
So please guide me how to start learning it? (0 Replies)
Discussion started by: sumsin
0 Replies
5. UNIX for Dummies Questions & Answers
I'm running a FreedBSD server with mysql 4.1. When I start mysqld via the command:
# /usr/local/bin/safe_mysqld --user=mysql
it starts the mysql db (I know because the websites are running off of it) but does not return to a prompt, it will let me type but will not respond unless I restart... (15 Replies)
Discussion started by: unispace
15 Replies
6. UNIX for Dummies Questions & Answers
I just installed Apache 2.2.6 & when trying to start it i got this:
Invalid command 'SSLProtocol', perhaps misspelled or defined by a module not included in the server configuration
Any help? (3 Replies)
Discussion started by: moe2266
3 Replies
7. Web Development
Hi,
I just installed Apache 2.0.54 and when I try and start httpd I get
mohit@mohit-desktop:/sw/pkg/apache/bin$ ./httpd -k start
httpd: Could not determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
(13): make_sock: could not bind to address :80
no listening... (1 Reply)
Discussion started by: mojoman
1 Replies
8. UNIX for Advanced & Expert Users
Sir,
I have installed an Apache server in Fedora 9 (packages)
and when i go to etc folder and try the command
httpd -k start
it says command not found....can any one help me out!!!
---------- Post updated at 12:02 PM ---------- Previous update was at 11:46 AM ----------
When i... (4 Replies)
Discussion started by: bssandeshbs
4 Replies
9. Red Hat
Hello,
I am facing an issue while starting the apache server after compiling php and curl.
Below are the versions i am using.
php-5.2.17
httpd-2.2.17
curl-7.16.0
CentOS5.5x64
Compiling above packages without curl working very fine but when trying to compile php with curl below error is... (1 Reply)
Discussion started by: sunnysthakur
1 Replies
10. HP-UX
Due to an activity scheduled on the server, I had stop the apache process and then restart when the activity completed. The activity started at 9am and ended around 9 pm.
To list the apache processes that were running on the server before I stopped it, I used ps -ef | grep apache, and these were... (11 Replies)
Discussion started by: anaigini45
11 Replies
LEARN ABOUT DEBIAN
pidfilehack
pidfilehack(8) System Manager's Manual pidfilehack(8)
NAME
pidfilehack - work around daemons that always fork
SYNOPSIS
pidfilehack servicename pidfile command [parameters]
DESCRIPTION
pidfilehack is used to work around daemons that insist on forking into the background, but that do write a correct pid file.
pidfilehack forks the actual service, then waits for the pidfile to be written. Once it can read the pid from the pidfile it will tell
minit the real pid and quit.
USAGE
usually pidfilehack is symlinked as run command of a service.
servicename
the name of the service pidfilehack is installed for.
pidfile
the filename to read the pid from
command
the real command to start
parameters
additional parameters for the command
A typical use of this command will look like this:
/etc/minit/apache
/etc/minit/apache/params
apache
/var/run/apache.pid
apachectl
start
/etc/minit/apache/run
-> /sbin/pidfilehack
AUTHOR
minit was written by Felix von Leitner and can be downloaded from his page at http://www.fefe.de/minit/
This manpage was written by Erich Schubert <erich@debian.org> for the Debian GNU/Linux operating system.
SEE ALSO
msvc(8), pidfilehack(8)
pidfilehack(8)