Bug #390
Problems Setting Up Apache in a FreeNAS Jail
Description
I encountered a problem while setting up a new apache server which prevented apache from starting altogether. The following command was used to debug apache, but only received the following error:
apachectl -f /usr/local/etc/apache22/httpd.conf
This was due to the fact that FreeNAS is currently not including the accf_http and accf_data kernel modules, and setting them up as a Tunable in the FreeNAS web interface would not work since the kernel modules are not compiled in. And since I am a lazy sysadmin, I would rather not compile the modules on another machine and move the modules into FreeNAS. So I decided to disable the accf declarations. This was done by doing 2 things:[Thu May 08 14:37:05 2014] [warn] (2)No such file or directory: Failed to enable the 'dataready' Accept Filter
[Thu May 08 14:37:05 2014] [warn] (2)No such file or directory: Failed to enable the 'dataready' Accept Filter
[Thu May 08 14:37:05 2014] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
[Thu May 08 14:37:05 2014] [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
- Disable the modules in
/etc/rc.conf
- Adding an apache configuration to disable accf
Disable the modules in /etc/rc.conf
¶
I needed to add the following lines to my /etc/rc.conf
:
apache22_http_accept_enable="NO" apache22_data_accept_enable="NO"
Adding an apache configuration to disable accf¶
Then I needed to add a declaration to handle accf being disabled:
<IfDefine NOHTTPACCEPT> AcceptFilter http none AcceptFilter https none </IfDefine>
Once these were set, I was able to start apache proper:
service apache22 start
Updated by Daniel Curtis almost 10 years ago
- Project changed from 91 to FreeBSD Administration
- Category set to Web Server
- Target version set to FreeNAS 9.x