Questions tagged [amazon-linux-2]
251 questions
0
votes
2 answers
Plugin upload error on wordpress hosted on AWS linux 2 (EC2 instance) connected with AWS RDS database
I am trying to upload plugin and theme on EC2 instance running on AWS Linux 2 connected with AWS RDB instance (MySQL). I exactly followed these steps presented by AWS.
Creating a MySQL Database with RDS: Configure the RDS database to allow access to…

S. Patel
- 25
- 8
0
votes
0 answers
Magento 2 nginx configuration loading default html docroot and not set docroot
My ngnix install is loading the default page from /usr/share/nginx/html; shown in nginx.conf under Server directive even though I have replaced, commented out the original with /var/www/example_com/html;
Am I missing something, do I need to set a…

acctman
- 4,229
- 30
- 98
- 142
0
votes
1 answer
How to enable mariadb10.5 on Amazon Linux 2 with "amazon-linux-extras" command
Greeting all;
I have working with an EC2 instance of Amazon Linux 2 AMI (HVM) - Kernel 5.10, SSD Volume Type (64-bit Arm). I need to install a mariadb version 10.5 on my instance
Goal: My goal is to install mariadb10.5 from the amazon…

Louis Preston Thornton III
- 302
- 1
- 2
- 12
0
votes
0 answers
Amazon Linux 2 Letsencrypt (via certbot) NodeJS Installation
I run a number of small instances through AWS Elastic Beanstalk running NodeJS with express.
I have them running on Amazon Linux 1 through manually validating my domain and adding the certificate to and .ebextensions config file.
Linux 2 is a…

StuP
- 95
- 8
0
votes
0 answers
AWS Linux 2 AMI Failed to get D-Bus connection: No such file or directory
I have an AWS Linux 2 AMI EC2 instance.
When running systemctl --user status I get the message:
Failed to get D-Bus connection: No such file or directory
I then ran systemctl start dbus.socket, which gave me this message:
Failed to start…

hyphen
- 2,368
- 5
- 28
- 59
0
votes
1 answer
Confirming that shell is running on an Amazon WorkSpace
I am currently writing a number of shell scripts which will run both on an Amazon Workspaces Linux instance and elsewhere on other Linux hosts (e.g. Amazon Linux EC2 instances).
I would like to have certain Bash variable values configured…

PicoutputCls
- 1,392
- 1
- 12
- 24
0
votes
1 answer
Getting WARNING [liquibase.resource] Cannot create filesystem for url file: while liquibase update
I am trying to run liquibase for snowflake with liquibase jar
Version : 4.4.1
Getting error for my classpath jar file
[2022-03-23 11:50:57] WARNING [liquibase.resource] Cannot create filesystem for url file:./liquibase-snowflake-4.4.1.jar
And Error…

Gaurav
- 3,615
- 2
- 27
- 50
0
votes
1 answer
How to set environment variables so they work in non-interactive bash shells?
I am running the amazonlinux:2 docker image directly from dockerhub and installing the corretto-17 JDK with the following command:
yum install -y git java-17-amazon-corretto-devel
Note: I am not using a custom Dockerfile, I do not control it and I…

Shorn
- 19,077
- 15
- 90
- 168
0
votes
1 answer
.NET Core bin path changes randomly on Amazon Linux 2
We deploy our ASP.NET Core applications in Amazon Linux 2 using AWS Auto Scaling
When the linux services were created, the path for the dotnet binary was configured as: ExecStart=/usr/bin/dotnet ...
That path worked fine until some months ago, on…

Emiliano Sandler
- 44
- 9
0
votes
1 answer
Routing issue for Laravel API hosted in Amezon linux 2 AMI, Shows 403 not found error
I hosted my application developed using react and laravel in a VPS and its working over there. Now i am trying to move that app from VPS to Amazon EC2 with amazon linux 2 AMI OS and uploaded API developed using Laravel. Laravel is working and gives…

Shameer Ahmed
- 1
- 2
0
votes
1 answer
Error establishing a database connection - AWS Linux 2
Using AWS Linux 2, on my wp site this error "Error establishing a database connection", I believe I was hacked via the wp blog page and the entire site is disabled. Using MySQL:
$ sudo systemctl start mysqld
Job for mysqld.service failed because the…

kiteandwindsurfer
- 125
- 1
- 8
0
votes
2 answers
How to install and enable php extension for tidy html on a beanstalk with amazon linux 2? (php ver. 7.4)
How to install php extension for tidy html on a beanstalk with amazon linux 2?
I have tried the following
commands:
1-aml-extras-epel:
command: "amazon-linux-extras install epel -y"
2-epel:
command: "yum install…

Michele Carino
- 1,043
- 2
- 11
- 25
0
votes
1 answer
AWS Linux 2 systemd vulnerability
A recent security scan of our systems has shown that our AWS Linux 2 instances are vulnerable to an issue with systemd
https://nvd.nist.gov/vuln/detail/CVE-2021-33910
I've had a look through the AWS Linux 2 security bulletin board…

jrwood
- 11
- 2
0
votes
2 answers
Error running systemctl to start service in Amazon Linux 2
I am trying to build a simple Apache/PHP server using the Amazon Linux 2 image. I have the following:
Dockerfile
FROM amazonlinux:2
RUN amazon-linux-extras install epel -y &&\
amazon-linux-extras install php7.4 -y &&\
yum update -y &&\
…

Jared Farrish
- 48,585
- 17
- 95
- 104
0
votes
0 answers
Environment Variable Empty in Bash Script
I have an EC2 instance that I am deploying on AWS.
I am using an Amazon Linux 2, and I am passing a user data to it as such:
userdata_file.write(
f'''
#!/bin/bash\n
export PAGERDUTYAPIKEY='mykey'\n
sudo yum install…

Mervin Hemaraju
- 1,921
- 2
- 22
- 71