Problems starting apache 1.3 with mysql


 
Thread Tools Search this Thread
Operating Systems Solaris Problems starting apache 1.3 with mysql
# 1  
Old 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
# 2  
Old 08-25-2006
Just a followup with some more information for you gurus. When I run the apachectl start from a command line, in a bourne or korn shell, I get the following error about the LD_LIBRARY:

ld.so.1: httpd: fatal: libmysqlclient.so.6: open failed: No such file or directory
Killed
/usr/local/apache/bin/apachectl start: httpd could not be started

The libmysqlclient.so.6 file is located in /usr/local/mysql/lib/mysql.

I've edited the global .cshrc file to include the following:

setenv LD_LIBRARY_PATH /usr/openwin/lib:usr/local/lib:/usr/lib:/usr/local/mysql/lib/mysql:/usr/local/mysql/lib:/usr/sfw/lib

Still, I'm stumped.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Error when starting apache

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

2. Red Hat

Error while starting Apache after compiling PHP and Curl

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

3. UNIX for Advanced & Expert Users

Starting an Apache Server

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

4. Web Development

Problems starting Apache 2.0.54

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

5. UNIX for Dummies Questions & Answers

Error about SSLProtocol when starting Apache

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

6. UNIX for Dummies Questions & Answers

Starting MySQL daemon

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

7. Programming

starting with APR (Apache Portable Runtime)

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

8. Linux

mysql not starting with fedora 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

9. UNIX for Dummies Questions & Answers

Starting Apache

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

10. UNIX for Dummies Questions & Answers

starting Apache on Solaris 8

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
Login or Register to Ask a Question