|
|
|
| |||||||||
![]() |
|
|
«
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
|
|||
|
|||
|
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!) |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
thanks, but that didn't do it either...
Are there logs I can check? |
|
#4
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > can't start apache2 on FreeBSD 4.9 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|