Questions tagged [amazon-linux]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
2k views

Can't install Mysql on Linux -- Mysql website failing?

I'm attempting to install mysql on Amazon Linux 2. I followed the instructions in the first answer here: amazon linux 2 ami - aws - How to install mysql in Amazon Linux 2? When I type: sudo yum ...
Shef's user avatar
  • 253
0 votes
2 answers
20 views

6 EC 2 servers on AWS making it easier to manage software on them

I have 6 ec2 web servers on amazon linux and will be upgrading to php 7.3 soon. It is becoming a pain to upgrade all these servers manually as there are just clones of each other (for the most part) (...
Chris Muench's user avatar
0 votes
2 answers
559 views

install msmtp amazon linux

My goal is to get the PHP mail() function to work on Amazon Linux. So the best option seems to be to install msmtp (found in EPEL repository) but I get a dependency error. I run run sudo yum --...
TheStoryCoder's user avatar
0 votes
1 answer
135 views

How to install svnmucc on Amazon Linux?

I have an AWS Linux machine running Amazon Linux: Linux XXX.XXX.XXX.XXX 4.4.30-32.54.amzn1.x86_64 #1 SMP Thu Nov 10 15:52:05 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux And I am trying to install "...
UBIK LOAD PACK's user avatar
0 votes
2 answers
1k views

AWS EC2 (Amazon Linux 2018.03) ran instance yum update and now yum gives an error about NSS_3.34

I ran yum update and tomcat was not working. I then tried to downgrade nss but yum is not working at all and gives me the following error PLEASE HELP: There was a problem importing one of the Python ...
Jim Ford's user avatar
  • 105
0 votes
0 answers
32 views

How to upgrade from Java 7 to Java 8 on Amazon Linux [duplicate]

I found another thread on this that is outdated and doesn't give a non-interactive way to do this. If you need to upgrade from Java 7 to Java 8 to run Jenkins, or whatever other Java application, you ...
TechDawg270's user avatar
5 votes
2 answers
1k views

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 ...
I-P-X's user avatar
  • 263
2 votes
0 answers
1k views

Docker storage re-mounted in read-only mode when container is generating a lot of large file(20G+)

I am getting stuck with an issue for a couple of days, and hope someone here could help or give some hints. So here is the issue: when I am running some docker images which performs large I/O ...
UTS-AnQ's user avatar
  • 21
0 votes
1 answer
3k views

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 ...
Geoffrey Wiseman's user avatar
2 votes
0 answers
459 views

Trying to run php-fpm 5.6 alongside php7.2 for different Apache virtual hosts on EC2 amazon linux , what am I missing?

I'm working on amazon linux on an EC2 instance. I installed php72 using yum, apache worked fine. I have installed php5.6 at /opt/php5.6 configured it as fpm and done the make install whcih all went ...
Tofuwarrior's user avatar
0 votes
1 answer
284 views

/etc/services file accidentally deleted on Amazon Linux EC2 instance

I accidentally deleted /etc/services file from my ec2 instance on AWS running Amazon Linux. How can I restore this file? In Ubuntu, I found out that this can be done using netbase package, how can ...
Mandeep Singh's user avatar
1 vote
2 answers
1k views

How to debug EC2 server that stop responding silently randomly

I'm running a t2.micro instance on Amazon Linux AMI 2018.03 (4.14.59-64.43.amzn1.x86_64). It hosts a php website using Apache/2.4.33, and connect to an RDS MySQL database. From time to time, the ...
Dino's user avatar
  • 13
2 votes
1 answer
2k views

Can I add Centos or Redhat main repositories to Amazon Linux?

I’m trying to use AWS Cloud 9 for development, however it forces you to use Amazon Linux, instead of my familiar Ubuntu. The major limitation is the lack of available packages. Is it possible to add ...
chrism2671's user avatar
  • 2,629
0 votes
2 answers
1k views

How to allow SSH server to accept inbound traffic from 2 TCP ports?

Brief Allow the following TCP port numbers on SSH server 22 2222 Premises The machine uses an Amazon Linux AMI distribution The SSH installation is based on an SELinux system Details By default, ...
Abel Melquiades Callejo's user avatar
1 vote
1 answer
11k views

Setting MACs setting in /etc/ssh/sshd_config on Amazon Linux

We are going through the process of hardening Amazon Linux 1 based on CIS. Control 5.2.12 states under "Expected Values" : The following List String value(s) X indicate the current status of the ...
Lightbeard's user avatar
0 votes
1 answer
6k views

vsftpd passive port configuration doesn't apply

In short: It DOES connect in passive mode, but it just doesn't use the ports that I'm trying to use despite the configuration. Settings on pasv_max_port and pasv_min_port seems to be ignored, but I ...
Iorippi's user avatar
  • 11
0 votes
1 answer
422 views

Amazon Linux + SSL + vhosts

I have a new test instance that I have setup with LAMP and SSL. I have the following in my /etc/httpd/conf/httpd.conf file <VirtualHost *:80> ServerAdmin [email protected] ...
Jeffrey Lazo's user avatar
0 votes
0 answers
365 views

Cannot mount swap partition at boot on Amazon Linux 2

I am trying to mount swap partition in etc/fstab on Amazon Linux 2, but it doesn't work on the boot-up process. here the steps I have followed: create swap file: dd if=/dev/zero of=/swapfile bs=1024 ...
fromthestone's user avatar
0 votes
1 answer
592 views

Amazon Linux 17.09 init.d script not starting when Docker does

I'm probably missing something really silly, but does anyone know why this init script isn't running when Docker starts on Amazon Linux 17.09? #!/bin/sh ### BEGIN INIT INFO # Provides: ...
laverya's user avatar
2 votes
1 answer
2k views

How to install samba-tool on Amazon Linux

I am using Amazon Linux on AWS and wish to install the CLI application of samba-tool. On Linux distributions including Ubuntu, this is included by default with installing samba, but does not appear to ...
Jake's user avatar
  • 121
2 votes
0 answers
828 views

Unassigned secondary IP stuck on AWS Linux EC2

I have a couple of c5.large instances with two network interfaces each, running the latest Amazon Linux 2 AMI as of 2018-03. They used to have 8 IP addresses on each interface, which is now changed to ...
Legogris's user avatar
  • 129
0 votes
1 answer
886 views

Error creating SSL cert with LetsEncrypt certbot on Amazon Linux

I'm trying to setup a free LetsEncrypt SSL certificate for a web server (Apache) running on an AWS EC2 instance running Amazon Linux (2017.09) using the certbot software. I can't seem to get it from ...
RTF's user avatar
  • 218
30 votes
5 answers
78k views

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 ...
Jey Geethan's user avatar
5 votes
2 answers
11k views

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 ...
iewebguy's user avatar
  • 213
12 votes
7 answers
64k views

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 ...
Saqib Ali's user avatar
  • 438
1 vote
0 answers
1k views

Apache 2.4 fails to start -- without any errors

I had an existing Amazon Linux EC2 instance running Apache 2.2 and PHP 5.3. After uninstalling the old versions of Apache PHP using (sudo yum remove 'php*' 'httpd*'), I then installed Apache 2.4 and ...
nevada_scout's user avatar
-1 votes
1 answer
158 views

Able to connect the other ports however unable to connect the SSH port (22) of EC2 instance [closed]

I am having two ec2-instance with OS Amazon linux (instance1 and instance2) mapped with same security groups and I am able to ssh the 'instance2'. However I am unable to SSH the instance1, this ...
user447065's user avatar
1 vote
0 answers
544 views

Software Configuration and .ebextensions priorities

Last week Amazon Linux v2.7.0 was released. After update to this version Software Configuration in the web console disappeared. Because of that change we had to quickly move to .ebextensions file ...
Marek Raki's user avatar
3 votes
1 answer
420 views

Per-second billing for custom AMI [closed]

In the beginning of October this year Amazon announced per-second billing for EC2 instances. This potentially could be a big cost reduction for me. However Amazon also says this billing is platform ...
Marek Raki's user avatar
0 votes
1 answer
4k views

How to chroot accounts for using scp in Amazon Linux?

I need to setup an scp server. Suppliers will upload files to that server via scp (not sftp). While configuration was easy for sftp, I really struggle with scp. There are some instructions and how-tos ...
hey's user avatar
  • 347
2 votes
0 answers
100 views

Strange Linux disk statistics on EBS i/o credit exhaustion

We have T2 instances (Linux 4.9.20-11.31.amzn1.x86_64) on AWS EC2 which exhaust their i/o credits due to disk reads. It may well be that we have excessive reads on these nodes, so nothing strange ...
Bittrance's user avatar
  • 3,110
3 votes
2 answers
14k views

Can I install a recent gcc from binaries on Amazon Linux?

I'm using Amazon Linux on an EC2 instance started from the most recent 2017.03 AMI (ami-6df1e514). This distribution comes with g++ 4.8.3 from 2013. I need something more recent that can compile C++...
bcattle's user avatar
  • 161
0 votes
0 answers
35 views

How to autoreboot an ec2 amazon linux instance after 1st start during autoscaling? (to start working with it from the 2nd start only)

I have a problem, that when I launch an instance from an AMI, the instance doesn't respond on ssh or http, but it works normally after I restart it (so from the 2nd start). I'm still troubleshooting ...
GTXBxaKgCANmT9D9's user avatar
0 votes
2 answers
68 views

Using base Amazon linux AMI seems to use GPU AMI?

I having been setting up our prod infrastructure and have noticed that when using the ami-1c47407f ap-southeast-2 image, it seems to be using this within the ec2 instances themselves - amzn-ami-hvm-...
Harrison Lucas's user avatar
12 votes
4 answers
49k views

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 ...
adminz's user avatar
  • 397
2 votes
1 answer
2k views

How to run fail2ban on Amazon Linux - No module named fail2ban.version

I installed fail2ban using this command on Amazon Linux yum install fail2ban My epel repository is defined as mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch I ...
Tim's user avatar
  • 32.8k
0 votes
0 answers
1k views

MySQL server failing in install on Amazon Linux machine due to missing systemd

I'm currently trying to install Redmine on a machine running the latest Amazon Linux. One of the first steps I'm told to do is to install MySQL server using the command sudo yum install mysql-server. ...
shaneoh's user avatar
  • 424
0 votes
1 answer
777 views

Permissions on chrooted user not working after update on Amazon Linux

I setup chrooted users on an Amazon Linux development instance to grant them access to the /var/www folder. It was working fine, but after a yum update (November I think), the users can no longer ...
Complectia's user avatar
0 votes
0 answers
120 views

uninstalled cracklib-dicts, sudo gone, how to recover

I was trying to install the packer utility to build AWS AMI's. However it was conflicting with a builtin utility of the same name, which is part of the cracklib-dicts package. I used yum to remove ...
user1751825's user avatar
12 votes
2 answers
15k views

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-...
shroud's user avatar
  • 223
2 votes
2 answers
15k views

How to fix dependency issue with partially completed yum update of glibc

I attempted to update my production web server this morning (t2 running Amazon Linux) but it failed because I ran out of RAM (php-fpm had it all). I stopped php-fpm to free up some RAM, but the yum ...
Tim's user avatar
  • 32.8k
7 votes
2 answers
7k views

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"):...
uhleeka's user avatar
  • 173
0 votes
2 answers
1k views

Installing Lame on Amazon Linux - command not found

I'm trying to install Lame on Amazon Linux. I've downloaded lame-3.99.5.tar.gz, uploaded it to the server, and tried to install it. I followed this example: make sure you have the tools necessary ...
SPRBRN's user avatar
  • 581
0 votes
1 answer
541 views

Browser is not showing my site using public DNS on Amazon EC2 instance [This site can’t be reached]

Couple of weeks back i launched an instance on AWS free tier and i was running a wordpress site, I dont have much knowledge about so i followed all the AWS guide and did this step by step everything ...
Tayyab's user avatar
  • 11
3 votes
1 answer
15k views

Installing Debian package tools (dpkg-buildpackage) on Amazon Linux?

I am setting up a web server which packages and hosts different installers for client applications on Windows, Mac OS X, and Linux. I am using EC2 so I went with Amazon Linux for my base image. I ...
ashgromnies's user avatar
-2 votes
3 answers
2k views

Supporting Http2 on Amazon Linux with Apache with OpenSSL 1.0.1

I'm trying to run an http2 web server on Amazon linux over Apache. From what I understand OpenSSL 1.0.2 is required to use Http2. However, my current distribution only supports OpenSSL 1.0.1. I've ...
DD.'s user avatar
  • 3,114
1 vote
2 answers
5k views

Proxy settings at/prior to cloud-init runtime

Instances launched into our VPC in EC2 require HTTP_PROXY and partners to be set to access anything located outside the VPC. Now I've run into a problem (using data pipeline) where I have no control ...
kadrach's user avatar
  • 113
0 votes
1 answer
926 views

503 Bad gateway for php only html works fine

I have configured aws instance from amazon ec2 linux image and configured nginx and php on server. Server serves html pages normally but don't serve php pages and also shows 503 Bad gateway error when ...
Shailesh Sutar's user avatar
0 votes
2 answers
173 views

How to find online support for Amazon Linux AMI

I am a beginner to Linux, but am currently deciding on a distro for my AWS EC2 web server. My question is how to find online support to Amazon Linux AMI should I decide to use it? I know that it is ...
Jeffrey Cordero's user avatar
0 votes
1 answer
2k views

Adding cron jobs using crontab from several different files

I have two files where in I have listed my cronjobs: cron.dev1.txt cron.dev2.txt Now I am using crontab in the following manner: crontab cron.dev1.txt and crontab cron.dev2.txt When I do crontab ...
kosta's user avatar
  • 163