Questions tagged [amazon-linux-2]
55 questions
1
vote
1 answer
How to set umask for Apache on Amazon Linux 2 AMI
I want to set umask 0002 for Apache httpd so that certain files that it creates will be writable by other users.
The traditional solutions don't seem to work on Amazon Linux 2 AMI.

dln385
- 121
- 4
1
vote
1 answer
Where are the logs for commands executed as root in AWS Linux 2 AMI?
Can't find them, there's no .bash_history. Also checked at /var/log/audit and /var/log/secure* Maybe they don't even exist or are disabled.
Thanks!

Rancor
- 143
- 1
- 1
- 8
1
vote
1 answer
How do I install php-memcached for php 8.x on Amazon Linux 2 aarch64?
I'm migrating our website from an older Centos server to a new EC2 instance (Amazon Linux 2, aarch64). I'd like to install both the LAMP stack and memcached on the EC2 instance stack; which is the setup we had on our old server
The amzn2extra-php7.4…

Arth
- 365
- 1
- 5
- 15
1
vote
0 answers
How do I install third party packages from non-default repositories in Amazon Linux?
My ultimate goal is to create a Docker image with a particular binary installed (loudgain) that I can run functions on.
As above, pkgs.org claims the binary is available from both "fedora-updates" and "RPM Fusion Free" repositories. I've tried…

Robert Atkins
- 111
- 2
1
vote
1 answer
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
- 115
- 4
- 14
1
vote
1 answer
How to install Erlang 24.1 on Amazon Linux 2
I need to install Erlang 24.1 on Aamazon Linux 2. I am using package cloud script and repos for this but it fails with following message.
(venv) [CORP\shiv.d@a-1njrk968l4brs yum.repos.d]$ sudo yum install erlang
Loaded plugins:…

Shiv
- 119
- 4
1
vote
1 answer
How do I migrate our existing Beanstalk application to Amazon Linux 2?
Our three Beanstalks are currently running on the "Tomcat 8.5 with Java 8 running on 64bit Amazon Linux" platform, either on the canned "ami-0e469f970b0c3b65c" AMI, or (for one of them) on a customized version of that AMI with Java compilation…

hbquikcomjamesl
- 259
- 2
- 16
1
vote
1 answer
How to start etcd in docker from systemd?
I want to start etcd (single node) in docker from systemd, but something seems to go wrong - it gets terminated about 30 seconds after start.
It looks like the service starts in status "activating" but get terminated after about 30 seconds without…

Jonas
- 1,187
- 5
- 19
- 33
1
vote
0 answers
Cron Help in Amazon Linux 2 EC2
It's like not only Amazon Linux 2 I could not setup cron. I type
crontab -e
then
@reboot bash /home/ec2-user/abcd.sh
After Rebooting the EC2, this cron job doesn't work. The same used to work in my Linode VM which had centos 8
Can someone please…

Am3Y
- 67
- 6
1
vote
1 answer
How to disable SoughtRules in SpamAssassin
I'm running SpamAssassin 3.4 via Amavisd 2.12, installed with yum from EPEL on Amazon Linux 2. According to the SpamAssassin Confluence wiki (here and here), SoughtRules should be disabled, but ... I can't figure out where it's configured. How do I…

philolegein
- 409
- 4
- 12
1
vote
1 answer
How to speed up clamd@amavisd launch / get it to "start" on Amazon Linux 2
I recently upgraded clamav from I'm not sure which version, but whatever was current on EPEL on February 13th, to 0.102.3. Under the previous version, I had to set TimeoutStartSec in the systemd conf file to 5 minutes to get it to start without…

philolegein
- 409
- 4
- 12
1
vote
1 answer
firewalld on EC2 Amazon Linux 2 - no icmptypes found
On freshly-booted Amazon EC2 instance (Amazon Linux 2), the firewalld could not be started. Executing systemctl start firewalld gives several warnings and errors (details below), boiling down to: no icmptypes found and no such file or directory:…

Juriy
- 140
- 1
- 7
1
vote
0 answers
How to enable jpeg suppot for php GD in aws linux 2?
I am using php7.4 also installed php-gd using yum install php-gd and also restart my httpd service and also reboot my server.
installed libjpeg but still getting
Array (
[GD Version] => bundled (2.1.0 compatible)
[FreeType Support] =>
…

Chirag Senjaliya
- 111
- 2
0
votes
1 answer
Amazon Linux 2 OpenSSL Wrong Singature Type
I'm coding a discord bot in python. Whenever I try to connect to a specific site, on my EC2 instance running Amazon Linux 2, the script returns the following error:
discord.ext.commands.errors.CommandInvokeError: Command raised an exception:…
0
votes
1 answer
Putting Tomcat on Port 80 on Amazon Linux 2 (iptables?)
I'm configuring a new EC2 instance, which will be running Tomcat, and I want it accessible on Port 80.
Within Amazon Linux 1, the primary strategy I saw people using was to use iptables to do port forwarding. It's not my ideal strategy, but it has…

Geoffrey Wiseman
- 123
- 1
- 8