Welcome to the Linux Foundation Forum!

Stumped by a lab

Options

The website is down
Ugh, the system's website is down. Check it out:

copy
curl http://localhost
(or you can use the System Website tab in the interface there above the terminal)

See how it's the test page? THAT'S NOT RIGHT

I don't know what Nate did, but please fix it, we've got all those people out there that need some web content and all they're getting is garbage. We need them to see our super awesome site!

Above is a lab challenge to fix a apache web server on RHEL9,
sudo tail -n5 /var/log/httpd/error_log gives
[Mon Jun 30 18:42:13.804492 2025] [core:error] [pid 2459:tid 2595] (13)Permission denied: [client ::1:38698] AH00035: access to /index.html denied (filesystem path '/web/html/index.html') because search permissions are missing on a component of the path

As an approach I ran

sudo chmod o+x /
sudo chmod -R o+x /web
sudo chmod -R o+rX /web/html

I then ensured ownership with

sudo chown apache:apache /web/html/index.html
sudo chmod 644 /web/html/index.html

I restart httpd.service but the outcome was still failure
https://red.ht/ts-1i

Welcome!

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

Answers

  • Posts: 53
    edited June 30

    Sorry does this pertain to LFS207? And if so which lab?

  • Posts: 1,283

    Hi @fet0, it seems you are trying to setup a web server and it's not working. This isn't associated to LFS207, right?

    Luis.

  • Posts: 2

    Yes, this isn't associated to LFS207, I am just using the lab for my lfcs preparation.
    Apologies if this violates any rules.

  • Posts: 1,283

    Hi @fet0,

    You need to check on the correct owner and permissions for /web/html as I can see in the log error. I see you did some work for the permissions, but you also have to check on the correct owner. Depending on the setup, it would be apache or httpd user and group.

    You also can research for "rhel 9 apache correct permissions".

    Regards,
    Luis.

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