[ale] Issue installing httpd on amazon linux ec2 instance
Leam Hall
leamhall at gmail.com
Tue Jun 25 07:44:47 EDT 2024
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)
More information about the Ale
mailing list