# \[SOLVED\] New on Chef, problem with tuto

**URL:** <https://discourse.chef.io/t/solved-new-on-chef-problem-with-tuto/12469>\
**Category:** Chef Infra (archive)\
**Created:** [January 21, 2018, 4:44pm UTC](https://discourse.chef.io/t/solved-new-on-chef-problem-with-tuto/12469 "2018-01-21T16:44:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![victorh34](https://avatars.discourse-cdn.com/v4/letter/v/2bfe46/32.png) [@victorh34](https://discourse.chef.io/u/victorh34)\
**Post date:** [January 21, 2018, 4:44pm UTC](https://discourse.chef.io/t/solved-new-on-chef-problem-with-tuto/12469/1 "2018-01-21T16:44:17Z")

</div>

Hello guys

Im a recently new user on chef and vagrant so im just exploring and i would like to start making a small projet with 2 VMs with web servers on them, and a reverse proxy. Im following the guides on the Chef website which are very detailed and helpfull but i keep getting an error.

[https://learn.chef.io/modules/learn-the-basics/ubuntu/virtualbox/configure-a-package-and-service#/](https://learn.chef.io/modules/learn-the-basics/ubuntu/virtualbox/configure-a-package-and-service#/)

Im trying to install apache2 on my first webserver but i get this error:

```auto
Recipe: @recipe_files::/Users/iVic/Desktop/Projets/Reseau/DAISY/chef-repo/webserver.rb
  * apt_update[Update the apt cache daily] action periodic (up to date)
  * homebrew_package[apache2] action install
    
    ================================================================================
    Error executing action `install` on resource 'homebrew_package[apache2]'
    ================================================================================
    
    Chef::Exceptions::CannotDetermineHomebrewOwner
    ----------------------------------------------
    Could not find the "brew" executable in /usr/local/bin or anywhere on the path.
    
    Resource Declaration:
    ---------------------
    # In /Users/iVic/Desktop/Projets/Reseau/DAISY/chef-repo/webserver.rb
    
      6: package 'apache2'
      7: 
    
    Compiled Resource:
    ------------------
    # Declared in /Users/iVic/Desktop/Projets/Reseau/DAISY/chef-repo/webserver.rb:6:in `from_file'
    
    homebrew_package("apache2") do
      package_name "apache2"
      action [:install]
      default_guard_interpreter :default
      declared_type :package
      cookbook_name "@recipe_files"
      recipe_name "/Users/iVic/Desktop/Projets/Reseau/DAISY/chef-repo/webserver.rb"
    end
    
    System Info:
    ------------
    chef_version=13.6.4
    platform=mac_os_x
    platform_version=10.12.6
    ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin14]
    program_name=chef-client worker: ppid=7859;start=17:23:59;
    executable=/opt/chefdk/bin/chef-client

```

Does anyone has an idea of what could be causing it? can i get some advice?

Thank you very much!!

---

<div class="post-metadata">

**Author:** ![jdunn](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/jdunn/32/1800_2.png) [@jdunn](https://discourse.chef.io/u/jdunn)\
**Post date:** [January 23, 2018, 7:45am UTC](https://discourse.chef.io/t/solved-new-on-chef-problem-with-tuto/12469/2 "2018-01-23T07:45:31Z")

</div>

Are you sure you are running this tutorial on a Ubuntu server? It looks like you are trying to run it on a Mac.

---

<div class="post-metadata">

**Author:** ![victorh34](https://avatars.discourse-cdn.com/v4/letter/v/2bfe46/32.png) [@victorh34](https://discourse.chef.io/u/victorh34)\
**Post date:** [January 23, 2018, 10:47pm UTC](https://discourse.chef.io/t/solved-new-on-chef-problem-with-tuto/12469/3 "2018-01-23T22:47:39Z")

</div>

> [@jdunn](#):
>
> you are running this tutorial on a Ubuntu server? It looks like you are trying to run it on a Mac.

That was it! im very sorry for posting such a stupid mistake! Thank you very much!
