bwessel
Cadet
Cadet
  • 696 Views

RH294 Error End of chapter Lab Chapter 2 Step 5

Jump to solution

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

 

 

1 Solution

Accepted Solutions
Chetan_Tiwary_
Moderator
Moderator
  • 684 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. 

View solution in original post

5 Replies
Chetan_Tiwary_
Moderator
Moderator
  • 685 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
  • 569 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. 

  • 93 Views

Hi All,

I seem to have a similar issue where Serverb is returning a 403 status code when attempting to connect to it.. I'm not sure why as there is no user escalation for this part.

Can anyone please help?

I have attached the below figures for context.

MichaelM26_0-1718005457985.pngMichaelM26_1-1718005472543.png

Kind Regards,

Michael.

Chetan_Tiwary_
Moderator
Moderator
  • 65 Views

@MichaelM26 It seems permission issue in your apache root directory  - can you please recheck ? Anything you got in the logs ?

  • 49 Views

Hi Chetan,

I restarted the server and it worked today. Interesting.

Thanks for your help :D.

Kind Regards,

Michael.

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