Re: Certbot error - SOLVED (?)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Apr 24, 2023 at 5:14 AM Patrick O'Callaghan
<pocallaghan@xxxxxxxxx> wrote:
>
> 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.

Yeah, first try Fedora docs at docs.fedoraproject.org. They are
updated regularly. If you have a problem, then ask about it.

    https://docs.fedoraproject.org/en-US/quick-docs/getting-started-with-apache-http-server/

Avoid off-site answers. Oftentimes it's just dev2dev answers, with
some dev posting what worked for him when following someone else's
article.

Jeff
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux