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

Comments

  • lee42xlee42x Posts: 237

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

  • clemayclemay 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!

  • clemayclemay Posts: 6

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

  • clemayclemay 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?

  • lee42xlee42x Posts: 237

    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

  • clemayclemay Posts: 6

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

    Thanks for the help!

Sign In or Register to comment.