Welcome to the Linux Foundation Forum!

Lab 7.1 Error

I installed httpd, create the index.html file and added to the document root folder(/var/www/html) per the lab instructions. When I went to verify that it would display, I keep getting a forbidden error. I changed the permissions for my user to execute the file but I still get the error. Am I missing something?

Thanks!

Chris

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

  • Posts: 380

    Can you please post "sudo ls -lZ /var/www/html/index.html " , "sudo getenforce" and "sudo aa-status"
    Thanks Lee

  • Posts: 6

    Hi Lee,

    Here is the information you requested:

    For the "sudo ls -lZ /var/www/html/index.html "
    unconfined_u:object_r:user_home_t:s0 /var/www/html/index.html

    "sudo getenforce" - Enforcing

    "sudo aa-status" command not found

    Thanks!

  • Posts: 6

    Lee, I forgot to mention I am running this in CentOS 8

  • Posts: 6

    Hi Lee, I edited the file using vi and I got this as the output in Firefox. Is this what I am supposed to get?

  • Posts: 380

    Yes ! That is correct.
    At this point in the class SELinux should be off. Please enter "sudo set enforce 0" , to temporarily set SELinux to "permissive " mode. We cover SELinux in a future chapter.

    Are you using a machine you installed or a Linux Foundation Virtual Machine?

    Thanks Lee

  • Posts: 6

    Great! It's a VM that I installed on VMWare Fusion.

    Thanks for the help!

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training