Questions tagged [amazon-linux]
129 questions
28
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
- 735
- 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,479
- 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
- 7
- 17
12
votes
3 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
- 4
- 19
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
11
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
- 410
- 2
- 7
- 19
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
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
- 635
- 7
- 10
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
- 163
- 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
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
- 53
- 1
- 3
4
votes
0 answers
Apache Server Stops Serving Requests Temporarily with Apache 2.4.12 on Amazon Linux with PHP 5.4.40 FPM/Worker
We have an apache server stopping serving requests constantly due to the following error:
(70007)The timeout specified has expired: [client xxx.xxx.xxx.xxx:33740] AH01075: Error dispatching request to : (polling), referer:…
David Eisen
- 633
- 5
- 21
4
votes
4 answers
Using iptables without root privileges
When running the following script as user ec2-user, I get the error message iptables v1.4.18: can't initialize iptables table filter: Permission denied (you must be root)
Script:
#!/bin/sh
# Offending IP as detected by mod_evasive
# Add the…
AlexR
- 173
- 2
- 2
- 7
4
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…
WICHPONG KAO-IAN
- 141
- 1
- 2