Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on cookbook_file #2

Open
brauliobo opened this issue Aug 5, 2014 · 2 comments
Open

Error on cookbook_file #2

brauliobo opened this issue Aug 5, 2014 · 2 comments

Comments

@brauliobo
Copy link

  * cookbook_file[/etc/apache2/conf.d/awstats] action create
    * Parent directory /etc/apache2/conf.d does not exist.
    ================================================================================
    Error executing action `create` on resource 'cookbook_file[/etc/apache2/conf.d/awstats]'
    ================================================================================

    Chef::Exceptions::EnclosingDirectoryDoesNotExist
    ------------------------------------------------
    Parent directory /etc/apache2/conf.d does not exist.

    Resource Declaration:
    ---------------------
    # In /home/braulio/chef-solo/cookbooks-3/awstats/providers/domain_statistics.rb

     51:   cookbook_file "/etc/apache2/conf.d/awstats" do
     52:     source "awstats"
     53:     cookbook "awstats"
     54: 
     55:     owner "root"
     56:     group "root"
     57:     mode "0755"
     58: 
     59:     notifies :restart, resources(:service => "apache2")
     60:   end
     61: 
@dfduarte
Copy link

dfduarte commented Nov 4, 2015

Wow, a VERY old comment, but...

@brauliobo This happens because the conf.d directory don't exists anymore on Apache 2.4. The right user-config dir at this version is conf-enabled. (At least, on Ubuntu case).

@fooforge I have a little fix for this here. Are you interested on a PR for this?

Diego

@brauliobo
Copy link
Author

hi @dfduarte and and @fooforge

i have a fork of awstats with some other changes at https://github.com/coletivoEITA/awstats-cookbook

@dfduarte for this the best is to use apache_conf, see coletivoEITA@645cdf4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants