[ale] Issue installing httpd on amazon linux ec2 instance

Chuck Payne terrorpup at gmail.com
Tue Jun 25 08:06:45 EDT 2024


Leam,

If it a RH base image, you will still need to enable it.

sudo systemctl enable --now httpd.

Pup

On Tue, Jun 25, 2024 at 7:45 AM Leam Hall via Ale <ale at ale.org> wrote:

> Here's the working solution. The issue was that I forgot that while
> "running commands" implies a shell, in AWS it has to be called out
> explicitly.
>
>
> #!/bin/sh
> dnf update -y
> dnf install -y httpd
> echo "Nice" > index.html
> mv index.html /var/www/html
> systemctl restart httpd
>
>
> It looks like AWS Linux does not auto start httpd on install, which is
> fine by me. If there are a lot of changes then it would have to be
> restarted anyway.
>
> The current Amazon Linux is loosely based on Fedora, here's there official
> explanation (
> https://docs.aws.amazon.com/linux/al2023/ug/relationship-to-fedora.html):
>
> "AL2023 maintains its own release and support lifecycles independent of
> Fedora. AL2023 provides updated versions of open-source software, a larger
> variety of packages, and frequent releases. This preserves the familiar
> RPM-based operating systems.
>
> The Generally Available (GA) version of AL2023 isn't directly comparable
> to any specific Fedora release. The AL2023 GA version includes components
> from Fedora 34, 35, and 36. Some of the components are the same as the
> components in Fedora and some are modified. Other components more closely
> resemble the components in CentOS 9 Streams or were developed
> independently. The Amazon Linux kernel is sourced from the long-term
> support options that are on kernel.org, chosen independently from Fedora."
>
>
> Leam
>
> On 6/24/24 21:43, Ron via Ale wrote:
> > On 2024-06-24 14:05, Boris Borisov via Ale wrote:
> >
> >> Httpd is usually generic name for the http demon.
> >
> >
> > If my memory is correct, in the RHEL world, `httpd` is the package for
> Apache.
> >
> >
> > Is this (still) correct?
> >
> >
> > rb
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > https://mail.ale.org/mailman/listinfo/ale
> > See JOBS, ANNOUNCE and SCHOOLS lists at
> > http://mail.ale.org/mailman/listinfo
>
> --
> Site Reliability Engineer  (reuel.net/resume)
> Scribe: The Domici War     (domiciwar.net)
> General Ne'er-do-well      (github.com/LeamHall)
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> https://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>


-- 
Terror PUP a.k.a
Chuck "PUP" Payne
-----------------------------------------
Discover it! Enjoy it! Share it! openSUSE Linux.
-----------------------------------------
openSUSE -- Terrorpup
openSUSE Ambassador/openSUSE Member
skype,twiiter,identica,friendfeed -- terrorpup
freenode(irc) --terrorpup/lupinstein
Register Linux Userid: 155363

openSUSE Community Member since 2008.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.ale.org/pipermail/ale/attachments/20240625/81884c36/attachment.htm>


More information about the Ale mailing list