Skip to content

Commit

Permalink
web stack debugged using puppet
Browse files Browse the repository at this point in the history
  • Loading branch information
godfrey-creat committed Aug 8, 2023
1 parent 09af156 commit 167cbec
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 0x17-web_stack_debugging_3/0-strace_is_your_friend.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# A puppet manuscript to replace a line in a file on a server

$file_to_edit = '/var/www/html/wp-settings.php'

#replace line containing "phpp" with "php"

exec { 'replace_line':
command => "sed -i 's/phpp/php/g' ${file_to_edit}",
path => ['/bin','/usr/bin']
}
9 changes: 9 additions & 0 deletions 0x17-web_stack_debugging_3/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
0x17. Web stack debugging #3


Background Context


When debugging, sometimes logs are not enough. Either because the software is breaking in a way that was not expected and the error is not being logged, or because logs are not providing enough information. In this case, you will need to go down the stack, the good news is that this is something Holberton students can do :)

Wordpress is a very popular tool, it allows you to run blogs, portfolios, e-commerce and company websites… It actually powers 26% of the web, so there is a fair chance that you will end up working with it at some point in your career.

0 comments on commit 167cbec

Please sign in to comment.