bwessel
Cadet
Cadet
  • 437 Views

RH294 Error End of chapter Lab Chapter 2 Step 5

This task does fail. 

    - name: Test php page is installed
      ansible.builtin.copy:
        src: index.php
        dest: /var/www/html/index.php
        mode: 0644 

 Serverb httpd error log is posting 

 

 

No matching DirectoryIndex

 

 

looking further into  /etc/httpd/conf/httpd.conf

index.php is missing in the DirectoryIndex

 

 

<IfModule dir_module>
DirectoryIndex index.html
</IfModule>

 

 

 

after chaning this to 

 

 

<IfModule dir_module>
 DirectoryIndex index.html index.php
 </IfModule>

 

 

 

I was able to pass 

 

 

lab grade playbook-review

 

 

2 Replies
Chetan_Tiwary_
Moderator
Moderator
  • 425 Views

Hello @bwessel !

I just followed the lab Ch02s09 as per the instructions in the course and found no issues as such : 

Chetan_Tiwary__0-1695826024014.png

Chetan_Tiwary__1-1695826049404.png

Chetan_Tiwary__2-1695826064528.png

Could you please recheck the same. Try it again in a freshly built lab environment and share the error screenshots - so that I can take a look. 

bwessel
Cadet
Cadet
  • 310 Views

@Chetan_Tiwary_  

It worked, but I just had this again while doing the review-cr2 and this on a freshly built environment. 

 

this time, I needed to add this to the to the vhost.conf file.

with best regards. 

Join the discussion
You must log in to join this conversation.