[ale] Issue installing httpd on amazon linux ec2 instance
Leam Hall
leamhall at gmail.com
Tue Jun 25 11:11:10 EDT 2024
Hey Chuck,
You're right. I was just trying to get the initial build to work, before putting any extra configuration into it.
I'm doing a checklist format intro to AWS. Most of the AWS docs starts you on one thing, then you have to go to another thing, which leads to yet another thing further from the original path. My checklist covers the things you need, in order, and is written for those who want to get a little hands on with what AWS is about. If the reader likes it, they can go into the advanced stuff with some understanding.
Leam
On 6/25/24 07:06, Chuck Payne wrote:
> 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
>>
>
>
--
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