Questions tagged [amazon-linux-2023]
The amazon-linux-2023 tag has no usage guidance.
amazon-linux-2023
23
questions
0
votes
1
answer
38
views
Configure Apache httpd to host app with domain and avoid port conflict
I am deploying a React (UI) / Python (backend) application running on port 3001 to a GoDaddy-reserved domain (www.demo.com) with TLS on an Apache (httpd) server within a AWS Amazon Linux 2023 EC2 ...
0
votes
0
answers
54
views
Nexus yum proxy to amazon2023 - No more mirrors to try
Trying to configure amazon al2023 yum repo proxy to nexus yum repository and added in nexus.repo file.
$yum list is working but $yum install <package> is throwing an error.
Error -
Downloading ...
0
votes
0
answers
66
views
Why is dnf throwing a GLib-ERROR when running under docker
I'm seeing a strange error on docker running Amazon Linux 2023. My host's a Slackware 15 machine running the static versions of the latest docker (26.1) - although the same issue occurred on previous ...
2
votes
1
answer
67
views
SQLSTATE[HY000] [1045] Access denied for user 'db_user'@'ip_address' (using password: YES) trying to connect from elastic beanstalk ec2 to RDS
I have an elastic beanstalk ec2 (Amazon Linux 2023) instance and a RDS database (MariaDB 10.11) created inside same region and using same VPC, my databse is accessible only via ssh tunneling,
i have a ...
0
votes
0
answers
44
views
Which account to install Node under for PHP Shell_exec?
I'm using Amazon Linux 2023 with Apache/PHP and I'd like to shell_exec to node.js. How do I install node.js to make it available to PHP? PHP runs under apache account? Do you install node under the ...
-2
votes
1
answer
210
views
Installing dotnet8 on amazonlinux 2023 image through dockerfile
I am trying to install dotnet8 on amazon linux 2023 image public.ecr.aws/amazonlinux/amazonlinux:2023. After installing, one of the command that it tries to run is 'dotnet', but it errors out saying:
...
1
vote
0
answers
25
views
php-fpm and apache after the user is modified, the access prompt does not have permission
When I change the startup user for Apache and php-fpm, I get error 503 index.php access and Apache error
OS:Amazon linux 2023
Selinux: Enforcing
Apache version:2.48
php version:8.2
change to user:...
1
vote
1
answer
138
views
building ruby 3.3.0 rpm on amazonlinux2023 is linking to hard coded directories
I've been using the below ruby.spec to build RPMs on amazonlinux:2 for several versions of ruby now. Works great.
I'm working on migrating to amazonlinux:2023 and while this still produces an RPM, ...
0
votes
1
answer
1k
views
Error downloading metadata for repository 'AmazonLinux'
I am using
amazoncorretto:17.0.9-al2023
image and while performing "dnf install unzip" I get the below error:
Error downloading metadata for repository 'AmazonLinux', Curl error (6): ...
1
vote
3
answers
298
views
Using gnupg2-full in AWS Lambda base image for Python3.12
Apparently AWS switched their Python base images for AWS Lambda to Amazon Linux 2023. I have a Lambda function which uses gnupg and was working fine on older base images.
With the Python3.12 upgrade, ...
2
votes
1
answer
668
views
How to replace the default motd for AWS Linux 2023
How do I replace the default motd (message-of-the-day) for AWS Linux 2023?
I modified /etc/motd with a new message, but the default text-characters-bird thingy still shows when I login with SSH.
1
vote
1
answer
394
views
In Elastic Beanstalk how do I send custom logs to CloudWatch on the Amazon Linux 2023 platform?
I'm deploying an Elastic Beanstalk app on Amazon Linux 2023. I'm trying to configure the new Amazon CloudWatch Agent to forward custom logs to cloudwatch. This used to be done by adding some config ...
0
votes
1
answer
256
views
How to use AL2023 in a NET 6 Lambda function?
I have a few Lambda functions set up to use NET 6.
The lambdas are created through serverless templates and have the property:
"Runtime": "dotnet6"
By default they use Amazon ...
1
vote
1
answer
872
views
Easiest way to install mysqldump on Amazon Linux 2023 running on AWS Lambda
I need mysqldump (or mariadb-dump) inside my Lambda function.
I chose I want to go the Docker way and used the public.ecr.aws/lambda/nodejs:20 base image.
To add MySQL/MariaDB I added the following to ...
0
votes
1
answer
1k
views
Amazonlinux2023 install hardended version of pip for python
I want to sue amazonlinux2023 with as few "un-hardened" packages as possible.
AL2023 ships with python but not pip
So what is the correct way to get a "hardened" version of pip ...