BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

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:
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 July 1st, 2004, 01:32 AM
namotco namotco is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Madison
Posts: 374 namotco User rank is Sergeant Major (2000 - 5000 Reputation Level)namotco User rank is Sergeant Major (2000 - 5000 Reputation Level)namotco User rank is Sergeant Major (2000 - 5000 Reputation Level)namotco User rank is Sergeant Major (2000 - 5000 Reputation Level)namotco User rank is Sergeant Major (2000 - 5000 Reputation Level)namotco User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 18 h 8 m 52 sec
Reputation Power: 30
Send a message via AIM to namotco
can't start apache2 on FreeBSD 4.9

I'm able to:
Code:
foo# /usr/local/etc/rc.d/apache.sh start

and start apache. but it won't start at boot. what's wrong? It has execute permissions...

Using BSD 4.9 and here's the rc.conf if that helps:

hostname="foo.bar"
ifconfig_rl0="DHCP"
kern_securelevel_enable="NO"
linux_enable="YES"
moused_enable="YES"
nfs_reserved_port_only="YES"
sendmail_enable="NONE"
sshd_enable="YES"
usbd_enable="YES"


inetd_enable="YES"
ifconfig_rl0="inet 192.168.1.103 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
hostname="foo.bar"
ifconfig_rl0="DHCP"
hostname="foo.bar"

local_startup="/usr/local/etc/rc.d/"

(Thanks!)

Reply With Quote
  #2  
Old July 1st, 2004, 01:46 AM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
in rc.conf

Code:
# APACHE2
apache2_enable="YES"             # Set to "NO" by default.  Set it to "YES" to enable apache2
apache2ssl_enable="NO"           # Set to "NO" by default.  Set it to "YES" to start apache with SSL
                                 # if <IfDefined SSL> exists in httpd.conf)
apache2limits_enable="NO"        # Set to "NO" by default.  Set it to yes to run `limits $limits_args`
                                 # just before apache starts.
apache2_flags=""                 # Set to "" by default. Extra flags passed to start command
apache2limits_args="-e -U www"   # Default to "-e -U www". Arguments of pre-start limits run.


-Steven

Reply With Quote
  #3  
Old July 1st, 2004, 02:00 AM
namotco namotco is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Madison
Posts: 374 namotco User rank is Sergeant Major (2000 - 5000 Reputation Level)namotco User rank is Sergeant Major (2000 - 5000 Reputation Level)namotco User rank is Sergeant Major (2000 - 5000 Reputation Level)namotco User rank is Sergeant Major (2000 - 5000 Reputation Level)namotco User rank is Sergeant Major (2000 - 5000 Reputation Level)namotco User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 18 h 8 m 52 sec
Reputation Power: 30
Send a message via AIM to namotco
thanks, but that didn't do it either...

Are there logs I can check?

Reply With Quote
  #4  
Old July 1st, 2004, 02:36 AM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
is this what your apache2.sh looks like? I think I had to copy it from somewhere....

Code:
. /usr/local/etc/rc.subr

name="apache2"
rcvar=`set_rcvar`

command="/usr/local/sbin/httpd"
pidfile="/var/run/httpd.pid"
required_files=/usr/local/etc/apache2/httpd.conf

[ -z "$apache2_enable" ]       && apache2_enable="NO"
[ -z "$apache2ssl_enable" ]    && apache2ssl_enable="NO"
[ -z "$apache2_flags" ]        && apache2_flags=""
[ -z "$apache2limits_enable" ] && apache2limits_enable="NO"
[ -z "$apache2limits_args" ]   && apache2limits_args="-e -U www"

load_rc_config $name

checkyesno apache2ssl_enable && \
         apache2_flags="-DSSL $apache2_flags"

checkyesno apache2limits_enable && \
         start_precmd="`/usr/bin/limits ${apache2limits_args}`"

sig_reload=SIGUSR1

run_rc_command "$1"


-Steven

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > can't start apache2 on FreeBSD 4.9


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