On Sun, 2023-04-23 at 14:56 -0700, Samuel Sieb wrote:
> On 4/23/23 14:50, Patrick O'Callaghan wrote:
> > I had a look at /var/log/httpd/error_log and found this:
> > 
> >      httpd: could not open error log file
> > /var/www/bree.org.uk/error.log
> > 
> > I rechecked and that file definitely exists and is writable by root
> > (which httpd runs as). However a suspicion arose and I decided to
> > turn
> > off SElinux and reload.
> 
> As someone else mentioned, why are you writing logs to the web server
> data directory?  There's a directory (/var/log/httpd) that's already 
> intended for that.  The file context is most likely going to be
> wrong, 
> which is why selinux is (rightly) blocking it.

Why? Because being unfamiliar with Apache (and Certbot) I was foolishly
following an online step-by-step guide:

https://www.linuxshelltips.com/install-apache-fedora-linux/

I've since seen the error of my ways and it seems to be working now.

poc
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to