Join Robin Beck for an in-depth discussion in this video The PHP homepage, part of Chef Essential Training.
- [Instructor] The final change we need to make…to the lamp app cookbook is to modify our web application…to create an index homepage that uses some PHP code…to read from our database and display…some client information when you run crow localhost.…Now to implement this, we're going…to use a template resource to actually hold our PHP code.…In my terminal session, I'm going to run…the chef generate template command,…placing a template inside of our lamp app cookbook.…
The name of the template will be index.php.…Running this, we should be able to see…the new template directory added to our lamp app cookbook.…If you were to look at the file structure, index.php.erb,…the embedded Ruby template, is where we'll put our PHP code.…Inside of Sublime Text, I'm going to open up…the newly created the index.php.erb file…inside of the templates directory.…
This file should be empty.…Now we're going to populate this template file…with some canned PHP application code.…But this course does not focus on the specifics of PHP.…
This intermediate-level course provides insights into the Chef architecture through practical examples and demos, including the deployment of a PHP application on top of a LAMP stack. Instructor Robin Beck walks through recipe development and the various prebuilt cookbooks available from the Chef community Supermarket, and reviews best practices for building wrapper cookbooks that allow you to access recipes from different cookbooks. He also shows how to work more efficiently with knife commands for managing clients, cookbooks, and data.
- Building a setup recipe
- Using cookbooks to organize recipes
- Using community recipes
- Uploading cookbooks
- Using the database cookbook
- Adding PHP to the mix
- Searching with knife
- Testing cookbooks with Kitchen
Skill Level Intermediate
1. Review the Fundamentals
2. Community Code
3. Complete the LAMP Stack
4. The Joy of Test Kitchen
Next steps3m 43s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.