Welcome to the Linux Foundation Forum!

Lab 7.1 Error

Options

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

Comments

  • lee42x
    lee42x Posts: 380
    Options

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

  • clemay
    clemay Posts: 6
    Options

    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!

  • clemay
    clemay Posts: 6
    Options

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

  • clemay
    clemay Posts: 6
    Options

    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?

  • lee42x
    lee42x Posts: 380
    Options

    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

  • clemay
    clemay Posts: 6
    Options

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

    Thanks for the help!

Categories

Upcoming Training