|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > Server Not Autostarting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|