Hi,
Currently practicing RH294 on RH 8.4, I wasn't able to complete the guided exercise for chapter 2 named "Implementing Playbooks".
The grading command 'lab playbook-review grade' is identifying the topic 'Verify web site' as FAIL, which is confirmed when trying to reach http://serverb.lab.example.com via curl, and indeed the playbook I'm running fails on the task 'connect to internet web server', but when I SSH on serverb I can see the index.php file with -rw-r--r-- permissions.
Did I forget to enabled SELinux for HTTPD, and if yes why is it not specified on the instructions of the guided exercise (I am still learning after all)? Any feedback appreciated..
Thanks and best regards,
Gilles
Closing this query as I found the issue and managed to fix it!
What happened is that I initially try to perform the guided exercise without looking at the solution, but realised something was wrong, and corrected my mistake by adding php and php-mysqlnd to be installed.
What I think happened is that, because I ran the playbook few times, the httpd.service did not get restarted correctly after installing the PHP module and it wasn't interpreting the page.
Discovered the problem by running curl http://serverb.lab.example.com/index.php which was return the page raw, without interpreting it, and running systemctl restart httpd.service fixed it.
Closing this query as I found the issue and managed to fix it!
What happened is that I initially try to perform the guided exercise without looking at the solution, but realised something was wrong, and corrected my mistake by adding php and php-mysqlnd to be installed.
What I think happened is that, because I ran the playbook few times, the httpd.service did not get restarted correctly after installing the PHP module and it wasn't interpreting the page.
Discovered the problem by running curl http://serverb.lab.example.com/index.php which was return the page raw, without interpreting it, and running systemctl restart httpd.service fixed it.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.