Questions tagged [amazon-linux]

The Amazon Linux AMI is a supported and maintained Linux image provided by Amazon Web Services for use on Amazon Elastic Compute Cloud (Amazon EC2).

312 questions
1
vote
0 answers

How to change my EC2 instance listen to new folder

I have a running EC2 instance in Linux (Apache server). I recently cloned another repository to my EC2 instance. For example : In var/wwww/html there are two folders front(already running) frontend(newly cloned) I wanted the instance to listen,…
1
vote
1 answer

php-sodium on Amazon Linux 2023

php-sodium is absent on Amazon Linux 2023 and can't be easilly installed. So I'll put the solution here as an answer. Expected to install php-sodium/libsodium on Amazon Linux 2023, but there is no the simple way, because amazon-linux-extras not…
1
vote
2 answers

Alternative of amazon-linux-extras in Amazon Linux 2023

We have amazon-linux-extras for Amazon Linux 2 but, what is the alternative of amazon-linux-extras in Amazon Linux 2023 and how to install it
1
vote
2 answers

Installing let's encrypt on Amazon Linux2023

I am trying to get SSL certificate with let's encrypt nginx. First, I added epel using the commands $ wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm and $ sudo rpm -ihv --nodeps ./epel-release-latest-8.noarch.rpm and it…
1
vote
1 answer

Can I install MySQL ODBC Driver 8 on Amazon Linux 2?

I'm running into an issue when connecting to a MySQL database on Amazon Linux 2 using pyodbc and the mysql-connector-odbc driver. As shown below: pyodbc.OperationalError: ('08004', "[08004] [unixODBC][MySQL][ODBC 5.2(w) Driver]Authentication plugin…
Hassan Syyid
  • 1,559
  • 1
  • 13
  • 24
1
vote
1 answer

Unable to get the environment variable using PHP hosted in amazon linux

I set up the environment path in amazon linux vi /etc/environment as ENV_TYPE=DEV. Environment variable are set up in localhost but it not get the environment in web host. In apache path /var/www/html I create a index.php with below code:
PRADEEP M
  • 11
  • 3
1
vote
0 answers

Can't start docker daemon inside container

I have a docker image based on amazonlinux:2.0.20220912.1 with Amazon Corretto Java SDK 11 installed. I have also added a docker installation to this image by using this command in the Dockerfile RUN amazon-linux-extras install docker I use this…
1
vote
1 answer

Wordpress on a second volume

I have a complex Wordpress multisite that is difficult to migrate to another server. I need to upgrade the underlying OS from AWS Linux to AWS Linux 2 for security reasons. Since upgrading the OS on the EC2 instance is not an option, is it possible…
el diablo
  • 2,647
  • 2
  • 20
  • 22
1
vote
1 answer

connect() failed (111: Connection refused) while connecting to upstream) NGINX, Gunicorn when running Flask App

I'm trying to host a flask application on a Public EC2 instance on Amazon-Linux-2 using aws-cdk. I've configured nginx such for a custom health check endpoint /healthcheck i have created a python env and installed gunicorn there and ran gunicorn…
Mahesh M
  • 69
  • 1
  • 10
1
vote
0 answers

QuestPDF Text is not displaying (.NET Core running on 64bit Amazon Linux)

I have developed an application in .NET Core 5, I am using QuestPDF (2022.2.6). Generated PDF is working fine on my local machine (Windows 11), but when I deploy this application to .NET Core running on 64bit Amazon Linux, it is not working. The…
1
vote
1 answer

How can I not run this command 'sudo amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2'?

I am following this tutorial: https://aws.amazon.com/getting-started/hands-on/deploy-wordpress-with-amazon-rds/?refid=dd707452-50b0-4e41-9f2b-d84c7ca273d4 in an attempt to create my own wordpress server on ec2 / rds of AWS. However, I DO NOT want to…
Danny Ellis Jr.
  • 1,674
  • 2
  • 23
  • 38
1
vote
0 answers

How do I install something from the "Fedora Updates" repository on Amazon Linux 2?

I want a container image based on Amazon Linux 2 with loudgain installed. Loudgain apparently exists as a package in the "Fedora Updates" repository. That repository is not included a default Amazon Linux 2 image: bash-4.2# yum repolist all Loaded…
Robert Atkins
  • 23,528
  • 15
  • 68
  • 97
1
vote
1 answer

What is the safest way to get a newer version of a repo from yum on Amazon Linux?

I need a newer version of binutils on Amazon Linux to compile a piece of needed software. This is due to a bug in version 2.29 which is the latest available in their repo. What would be the best way to add another repo, and will this mess up future…
David
  • 1,648
  • 1
  • 16
  • 31
1
vote
1 answer

zip the files and folders inside a parent directory without including the parent directory + Amazon Linux

Is there a Linux command to zip the files and folders inside a parent directory without including the parent directory. From all the solutions that I tried, the parent directory also is getting zipped
Rahith R R
  • 129
  • 2
  • 13
1
vote
1 answer

Beanstalk: eb deploy erroring out with Invalid length for parameter EnvironmentName, value: 25, valid range: 4-23

I have a Beanstalk environment which has been running since more than a year now. It's running Python 3.6 running on 64bit Amazon Linux, which is now deprecated and I need to migrate to Amazon Linux 2 separately. Out of nowhere, I am not able to do…