Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

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 Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old December 14th, 2000, 09:00 PM
antony17 antony17 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 4 antony17 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Manually tarting Apache is possibel with 'apachectl start', but how to start it automatically ??

Reply With Quote
  #2  
Old December 17th, 2000, 03:30 PM
eduany eduany is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Boston, MA
Posts: 54 eduany User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via AIM to eduany
If you are using RedHat, to start APACHE automatically place the following script
in /etc/rc.d/init.d/httpd (make sure is excutable) then create a symbolic link from this script to /etc/rc.d/rc3.d/ and name the link S80httpd.
here is the script, u'll have to edit it to point to your apache installation dir.
============================================

#!/bin/sh
#
# Startup script for the Apache Web Server
#
# chkconfig: 345 85 15
# description: Apache is a World Wide Web server. It is used to serve
# HTML files and CGI.
# processname: httpd
# pidfile: /usr/local/etc/httpd/logs/httpd.pid
# config: /www/conf/access.conf
# config: /www/conf/httpd.conf
# config: /www/conf/srm.conf

# the location of the file that will be used to record the process
# id of the running apache server
#
# PIDFILE=/usr/local/etc/httpd/logs/httpd.pid
PIDFILE=/usr/local/etc/apache_1.3.12/logs/httpd.pid
#
# the location of the apache daemon binary
# BINFILE=/usr/local/etc/httpd/bin/httpd
BINFILE=/usr/local/etc/apache_1.3.12/bin/httpd
#
# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
start)
echo -n "Starting httpd: "
daemon $BINFILE
echo
touch /var/lock/subsys/httpd
;;
stop)
echo -n "Shutting down http: "
[ -f "$PIDFILE" ] && {
kill `cat "$PIDFILE"`
echo -n httpd
}
echo
rm -f /var/lock/subsys/httpd
rm -f "$PIDFILE"
;;
status)
status "$BINFILE"
;;
restart)
$0 stop
$0 start
;;
reload)
echo -n "Reloading httpd: "
[ -f "$PIDFILE" ] && {
kill -HUP `cat "$PIDFILE"`
echo -n httpd
}
echo
;;
*)
echo "Usage: $0 {start|stop|restart|reload|status}"
exit 1
esac

exit 0
=============================================
edit the PIDFILE and BINFILE variables to point to 'httpd.pid' and 'httpd' files. these files are locate in the Apache installation directory under he subdirectories 'logs/' and 'bin/'.


hope this helps..

Rodrigo


Reply With Quote
  #3  
Old December 18th, 2000, 05:25 AM
antony17 antony17 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 4 antony17 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How do you make httpd executable ?

Reply With Quote
  #4  
Old December 18th, 2000, 06:50 AM
antony17 antony17 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Posts: 4 antony17 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Go some error msg :
starting httpd: etc/rc5.d/S15httpd: daemon : command not found.

had manually click on the httpd file and it works.

My binfile per my installation is BINFILE=/usr/local/apache/bin/httpd

Your BINFILE=/usr/local/etc/httpd/bin/httpd

That is the only difference I can see.

Reply With Quote
  #5  
Old December 21st, 2000, 04:32 AM
satit satit is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: bangkok, thailand.
Posts: 4 satit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi,
Another easy way...
remove httpd service by type
setup
uncheck httpd
then
add in last line of /etc/rc.d/rc.local
/usr/local/apache/bin/apachectl start
good luck
satit

Reply With Quote
  #6  
Old January 25th, 2001, 01:39 PM
nitroteen nitroteen is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: USA
Posts: 6 nitroteen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to nitroteen
Thumbs up Thanks, works fine

I'm using apache 1.3.14 and i edited the file a little and it worked fine.
Thanks

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > How to auto boot Apache


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 6 hosted by Hostway