SunQuest
           Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 20th, 2003, 06:02 AM
slashandburn slashandburn is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 slashandburn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Server Not Autostarting

I have correctly built and have apache2 running when i manually launch apachectl from the etc/init.d/ directory. I went through the SYS-V startup editor and made a link for it to start when runlevel 3, 05 position. But it doesn't start. What do i have to do just to get Debian Linux to run these two commands at startup
/etc/init.d/apachectl start and /etc/unut.d/mysql.server start

I have Debian Linux + Apache 2.0.45 + MySql4

Reply With Quote
  #2  
Old July 16th, 2003, 02:02 AM
bluephoenix's Avatar
bluephoenix bluephoenix is offline
Levelheaded Curmudgeon
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Syracuse, NY
Posts: 507 bluephoenix User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 13 m 2 sec
Reputation Power: 2
Send a message via AIM to bluephoenix
RE: Server Not Autostarting

When I set up my server, I saved the following file as /etc/init.d/httpd

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

#! /bin/sh
#
# httpd Start/Stop the Apache Web Server http daemon.
#
# chkconfig: 2345 55 55
# description: the Apache http daemon
# processname: httpd
# config: /usr/local/apache/conf/httpd.conf
# pidfile: /usr/local/apache/logs/httpd.pid

# Source function library.
. /etc/init.d/functions

RETVAL=0

# See how we were called.

prog="httpd"

start() {
echo -n $"Starting $prog: "
daemon /usr/local/apache/bin/httpd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/httpd
return $RETVAL
}

stop() {
echo -n $"Stopping $prog: "
killproc httpd
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/http
return $RETVAL
}

rhstatus() {
status httpd
}

restart() {
stop
start
}

reload() {
echo -n $"Reloading cron daemon configuration: "
killproc httpd -HUP
retval=$?
echo
return $RETVAL
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
reload)
reload
;;
status)
rhstatus
;;
condrestart)
[ -f /var/lock/subsys/httpd ] && restart || :
;;
*)
echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}"
exit 1
esac

exit $?

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Afterwards I needed to run:

/bin/chmod 755 /etc/init.d/httpd
and
/sbin/chkconfig --add httpd

She worked perfectly for me. Good luck; I hope this helps.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > Server Not Autostarting


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway