Hi everyone,
I'm a bit stumped about this problem, and it's probably (hopefully) something obvious I'm overlooking. I recently upgraded my ports, and some scripts got changed/added which is now causing a problem with starting Apache.
When I try [cmd=]/usr/local/etc/rc.d/apache22 start[/cmd] it doesn't start and gives me a warning. I turned on rc_debug, but get little extra help. I also checked as many relevant log files I could, but I can't find any clues. Also looking on the net for
doesn't help much.
Here's some output:
For now, I can start Apache with apachectl, but I'm pretty sure the service won't start after a reboot.
Oh, also.. before the upgrade, the system used /usr/local/etc/rc.d/apache-chroot.sh, which also uses apachectl instead of httpd. What are the benefits of using the apache22 script over apachectl anyway? I can easily fix the apache-chroot.sh, as only the path to apachectl has changed. But yeah, I want to do the right thing here instead of the easy way out
Thanks!
I'm a bit stumped about this problem, and it's probably (hopefully) something obvious I'm overlooking. I recently upgraded my ports, and some scripts got changed/added which is now causing a problem with starting Apache.
When I try [cmd=]/usr/local/etc/rc.d/apache22 start[/cmd] it doesn't start and gives me a warning. I turned on rc_debug, but get little extra help. I also checked as many relevant log files I could, but I can't find any clues. Also looking on the net for
Code:
run_rc_command: cannot run /usr/local/sbin/httpd
Here's some output:
Code:
Oct 19 17:49:44 newton root: ./apache22: DEBUG: checkyesno: apache22_http_accept_enable is set to NO.
Oct 19 17:49:44 newton root: ./apache22: DEBUG: checkyesno: apache22_enable is set to YES.
Oct 19 17:49:44 newton root: ./apache22: DEBUG: pid file (/var/run/httpd.pid): not readable.
Oct 19 17:49:44 newton root: ./apache22: WARNING: run_rc_command: cannot run /usr/local/sbin/httpd
-rwxr-xr-x 1 root wheel 1310853 Oct 18 15:05 /usr/local/sbin/httpd
For now, I can start Apache with apachectl, but I'm pretty sure the service won't start after a reboot.
Oh, also.. before the upgrade, the system used /usr/local/etc/rc.d/apache-chroot.sh, which also uses apachectl instead of httpd. What are the benefits of using the apache22 script over apachectl anyway? I can easily fix the apache-chroot.sh, as only the path to apachectl has changed. But yeah, I want to do the right thing here instead of the easy way out

Thanks!