O'Reilly logo

Configuration Management with Chef-Solo by Naveed ur Rahman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Hello World recipe

Now, our next task is to create a simple PHP project, and when we access http://localhost:8080, it should display our Hello World page.

To do so, we need PHP5 and Apache2.

Now, we can destroy our old box and start a new one with vagrant up. Alternatively, we can create a new box with Apache2 and PHP.

Use the same Vagrantfile and replace Nginx with Apache2.

Note that Apache2 has the following dependencies. Before we start, we need to clone individual cookbooks into our cookbooks folder.

It's a tedious task to clone the repo one by one. In the next chapter, we will use a software tool to resolve the dependencies.

The Apache2 dependencies are as follows:

  • apt
  • iptables
  • logrotate
  • pacman

Change the Nginx connection to Apache2, remove ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required