Questions tagged [amazon-linux]

139 questions
29
votes
5 answers

amazon linux 2 ami - aws - How to install mysql in Amazon Linux 2?

I am trying to install mysql in amazon linux 2 ami and am not able to do it. sudo yum install mysql56-server -> doesn't work amazon-linux-extras list -> doesn't list mysql I do not want mariadb since I have more exposure to mysql (even if both are…
Jey Geethan
  • 775
  • 1
  • 6
  • 11
18
votes
3 answers

PHP-FPM does not automatically start after reboot

I'm running PHP-FPM and Nginx, occasionally, for whatever reason, I have to reboot the server. Once the server is running again, the nginx service automatically starts, however, PHP-FPM does not. This can be seen when I run the command sudo…
SteveEdson
  • 1,539
  • 3
  • 12
  • 23
14
votes
2 answers

Update PHP with yum on Amazon Linux

I have Amazon Linux on EC2, AMI 2013.09. I followed the LAMP install tutorial, http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html, and ended up with PHP5.3 installed. In answer to this question here, Amazon Linux Version Details,…
DatsunBing
  • 459
  • 4
  • 8
  • 17
12
votes
7 answers

How to enable systemd on Amazon Linux AMI

I started using Amazon Linux AMIs. It seems to have the /etc/systemd/system/ folder, but I am not able to use systemctl to start stop a service I added to the /etc/systemd/system/ folder. $ systemctl bash: systemctl: command not found
Saqib Ali
  • 428
  • 2
  • 7
  • 21
12
votes
4 answers

Slave replication stops with Last_SQL_Errno: 1032

I have added an extra Slave server to an existing MySQL Replication. The Master server and the old Slave server are working fine without any issue, but the newly added server is stoping with the following error: Last_SQL_Errno: 1032 …
adminz
  • 397
  • 2
  • 6
  • 20
12
votes
2 answers

Installing Postgres server 9.6 on Amazon Linux

What's the best way to install postgres-server 9.6 on Amazon Linux without building from source? I tried running rpm -i https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-ami201503-96-9.6-2.noarch.rpm to install the version…
shroud
  • 223
  • 1
  • 2
  • 4
9
votes
1 answer

Docker changes IPtables FORWARD policy to DROP

I've got OpenVPN on Amazon Linux 2 EC2 instance and need to forward packets through it. It works until I start docker on the instance. Then the FORWARD policy turns to DROP and VPN stops working. [root@ip-... ~]# iptables -L FORWARD Chain FORWARD…
KeepLearning
  • 665
  • 7
  • 10
8
votes
1 answer

Any way to migrate AWS T3 x64 to T4G ARM?

Is there any easy way to migrate from aws x64 to arm arch? like without configuring a new arm based server and installing packages and file? it is currently running with Amazon linux AMI, we wish to change it to Amazon linux AMI 2. I just wanna know…
Ruben John
  • 83
  • 1
  • 3
7
votes
2 answers

SFTP suddenly failing for chroot accounts on Amazon Linux

Frustratingly, SFTP users suddenly stopped being able to connect to my Amazon Linux server. The /var/log/secure shows the following error: sshd[7291]: fatal: safely_chroot: stat("/chroot/uhleeka"): Permission denied…
uhleeka
  • 173
  • 1
  • 5
6
votes
2 answers

Supervisor setup on AWS AMI Linux

I'm trying to get supervisor working to make sure my queue system is always running. Here are the steps I took, which I pieced together from various sources: (Ran as root or super user) Ran: # easy_install supervisor # echo_supervisord_conf >…
zeros-and-ones
  • 315
  • 1
  • 3
  • 10
6
votes
2 answers

How to get the latest kernel package on AWS EC2

I manage some EC2 instances running Amazon Linux (not sure what version), which need security patches. A lot of software was patched well, but we have stuck on the kernel upgrade. We are unable to use the latest kernel version as we preferred. What…
6
votes
4 answers

Can't install amazon-linux-extras pm AWS EC2 Amazon Linux AMI instance

I'm trying to install amazon-linux-extras using the instructions here: sudo yum install -y amazon-linux-extras And I get the following error: amzn-main …
Aerodynamika
  • 216
  • 1
  • 2
  • 8
5
votes
2 answers

LibSSH authentication bypass

With the recent security announcement by libssh (CVE-2018-10933) I wonder how to find out if any of my running services use the vulnerable library? I will eventually yum upgrade the system but for now it would be nice to know if I'm in danger. I'm…
I-P-X
  • 263
  • 1
  • 10
5
votes
2 answers

looking for a way to get certbot running on Amazon Linux 2

Amazon has a new Linux out called "Amazon Linux 2" When I try and get certbot going.... wget https://dl.eff.org/certbot-auto chmod a+x certbot-auto ./certbot-auto gives this error Sorry, I don't know how to bootstrap Certbot on your operating…
iewebguy
  • 213
  • 1
  • 3
  • 7
5
votes
3 answers

How to install and configure Redis server on Amazon Linux 2023 (AL2023)?

Amazon Linux 2023 is loosely based on Fedora 34, 35 and 36 as per aws: https://docs.aws.amazon.com/linux/al2023/ug/relationship-to-fedora.html However redis package is not available in AL2023, instead redis6 is available:…
VIVEK
  • 53
  • 1
  • 4
1
2 3
9 10