Do you have an init script for Apache in /etc/init.d (e.g. /etc/init.d/apache)? If not, create one (like this;
you need to adjust the paths in it!):
Code:
#!/bin/sh
case "$1" in
start)
/usr/sbin/apachectl startssl
;;
stop)
/usr/sbin/apachectl stop
;;
restart)
$0 stop && sleep 3
$0 start
;;
reload)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
esac
Then make it executable:
Code:
chmod 755 /etc/init.d/apache
The command
Code:
chkconfig --levels 235 apache on
will make your Apache start at boot time (in the run levels 2, 3, and 5).
Flo
Recent comments
1 day 8 hours ago
1 day 11 hours ago
1 day 23 hours ago
2 days 1 hour ago
2 days 6 hours ago
2 days 12 hours ago
2 days 21 hours ago
2 days 23 hours ago
3 days 7 hours ago
3 days 9 hours ago