title: Chef Error executing action `start` on resource 'service[httpd]'
body: <p>Here is my very basic recipes/default.rb file;</p>
  
  <pre><code>package "httpd" do
          action :install
  end
  
  node["apache"]["sites"].each do |sitename, data|
          document_root = "/content/sites/#{sitename}"
  
          directory document_root do
                  mode "0755"
                  recursive true
          end
  
  template "/etc/httpd/conf.d/#{sitename}.conf" do
          source "vhost.erb"
          mode "0644"
          variables(
                  :document_root =&gt; document_root,
                  :port =&gt; data["port"],
                  :domain =&gt; data["domain"]
          )
          notifies :restart, "service[httpd]"
  end
  
  end
  
  service "httpd" do
          action [:enable, :start]
  end
  </code></pre>
  
  <p>When I run the chef-client in the node it returns the following error:</p>
  
  <pre><code>Error executing action `start` on resource 'service[httpd]'
      ================================================================================
  
      Mixlib::ShellOut::ShellCommandFailed
      ------------------------------------
      Expected process to exit with [0], but received '1'
      ---- Begin output of /sbin/service httpd start ----
      STDOUT: Starting httpd: [FAILED]
      STDERR: Syntax error on line 15 of /etc/httpd/conf.d/stedelahunty2.conf:
      order takes one argument, 'allow,deny', 'deny,allow', or 'mutual-failure'
      ---- End output of /sbin/service httpd start ----
      Ran /sbin/service httpd start returned 1
  
      Resource Declaration:
      ---------------------
      # In /var/chef/cache/cookbooks/apache/recipes/default.rb
  
       35: service "httpd" do
       36:    action [:enable, :start]
       37: end
  
      Compiled Resource:
      ------------------
      # Declared in /var/chef/cache/cookbooks/apache/recipes/default.rb:35:in `from_file'
  
      service("httpd") do
        action [:enable, :start]
        supports {:restart=&gt;false, :reload=&gt;false, :status=&gt;true}
        retries 0
        retry_delay 2
        default_guard_interpreter :default
        service_name "httpd"
        enabled true
        pattern "httpd"
        declared_type :service
        cookbook_name "apache"
        recipe_name "default"
      end
  </code></pre>
  
  <p>I've tried renaming it apache, changing the options to ':restart', commenting out entirely but that means httpd fails to start. I just need a simple way to restart the service after the chef run has completed. </p>
  
  <p>Again, apologies for the novice question; I'm very new to coding. </p>
  
  <p>Cheers</p>