[CentOS] TUTORIAL: How to Install Apache Web Server in CentOS 7.5 (1805) Linux in Amazon AWS Cloud with URL/HTTP/HTTPS Redirection

Thu Aug 30 21:35:33 UTC 2018
Jonathan Billings <billings at negate.org>

On Aug 29, 2018, at 23:17, Turritopsis Dohrnii Teo En Ming <turritopsis.dohrnii at teo-en-ming.com> wrote:
> sudo /usr/sbin/apachectl start

On CentOS 7 you really should run:

$ sudo systemctl start httpd.service

That way the service is managed by systemd and gets the appropriate cgroups and contexts. You also do nothing to ensure the httpd.service unit starts on boot. You need to run:

$ sudo systemctl enable httpd.service

Jonathan Billings <billings at negate.org>