Questions tagged [amazon-linux]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
26 views

Linux service is listening and responding on ports it wasn't assigned and that don't show up in netstat

I have an Amazon Linux 1 instance that was created from a Solarwinds DPA AMI. I created this around 2 years ago. It is possible I did something weird back then to make this happen. Today, I upgraded ...
0
votes
0answers
23 views

Locked of Server, how to run sudo passwordless

Here is the issue Created a new server with Amazon Linux 2 Removed ssh-key from default root user (ec2-user) Created two new accounts with sudo access without a password Now I got locked out of the ...
1
vote
1answer
61 views

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. [...
0
votes
0answers
76 views

Amazon Linux 2 Apache: Resource interpreted as Stylesheet but transferred with MIME type text/html

At an Amazon Linux 2 Apache web server, I've installed WordPress. In the WordPress dashboard, the content section doesn't display properly, and the Chrome console shows 14 x Resource interpreted as ...
0
votes
0answers
66 views

Issues validating SSL certificate with mailx on Amazon Linux

I am trying to use Heirloom mailx for sending emails from command line in conjunction with Amazon SES SMTP and ensure certificate is properly validated during interaction. OS: Amazon Linux 2017.09 ...
0
votes
1answer
325 views

Amazon Linux: yumm install php73 > “No package php73 available”

On an Amazon EC2 Linux server, I've run: sudo su - yum -y update yum install -y php73 I receive the error No package php73 available. I've been able to install httpd, php, & php-mysql okay. ...
0
votes
0answers
33 views

AWS Elastic Beanstalk — What are the updates to the Amazon Linux versions?

I use Python on AWS Elastic Beanstalk. Seemingly every few days there is a new Amazon Linux version updated and I get this message. Platform: Python 3.6 running on 64bit Amazon Linux/2.9.4 Newer ...
1
vote
1answer
457 views

Amazon Linux - yum update fails with HTTP Error 403 - Forbidden

I have an Amazon Linux v1 instance in us-west-2 (Oregon) that is failing yum update as per below. This is an old instance that's been working fine for a few years, updated to a t3a.nano a few months ...
0
votes
0answers
166 views

Create a kubernetes cluster in AWS china

I am trying to run a kuberntes cluster in AWS china. This is the context: There is no direct way to access original google repository (Long story, politics, etc). Using VPN sucks and is very slow in ...
1
vote
1answer
191 views

Installing LetsEncrypt SSL on Amazon Linux with Nginx + PHP-FPM gives “The connection was reset” error

It's been a while since I needed ServerFault, I hope someone can help me. I am trying to secure my Laravel (PHP) application running on Amazon Linux with LetsEncrypt free SSL. Using certbot-auto, I ...
2
votes
2answers
110 views

Does SElinux in enforcing mode cause delays in file access?

I have enabled SElinux in enforcing mode on Amazon Linux and see that the time taken for file access (read/write/update) has increased by an average of 2-4 seconds. The source process is Salt and the ...
0
votes
0answers
168 views

Tomcat 8.5.40 does not work after Amazon linux O.S. upgrade to Version 3.1.6

I am a java developer, and our web application have been running on AWS Beanstalk over AWS EC2 instances with Java-8, Tomcat 8.5 and 64-bit Amazon Linux/3.0.1. Recently, as per security team's ...
1
vote
1answer
1k views

Where should init scripts be placed in Amazon Linux 2?

In the Amazon Linux 2 release notes, Amazon advises that initscripts should no longer exist in /etc/init.d Amazon Linux 2 uses the systemd 219 init system to bootstrap userspace and manage system ...
0
votes
1answer
368 views

Apache graceful restart is failing with no errors

I'm writing a script to gracefully restart Apache in a AWS Elastic Beanstalk application every hour. This is needed so that new SSL certificates are loaded. The app serves multiple websites on ...
0
votes
0answers
73 views

strings utility on Amazon Linux?

I'm on Amazon Linux, and looking for the strings utility - the one that displays printable strings in a binary file - but it's not there, and I can't find it on yum. Is there an equivalent tool in ...
0
votes
1answer
192 views

Configured repository failed for Icinga2 on Amazon Linux EC2

added the epel release repo and the Icinga2 repo into my instance based on this guide while installing Icinga2 with sudo yum install icinga2 i am getting http://packages.icinga.com/epel/latest/...
0
votes
0answers
86 views

Problems Installing Pacemaker in AWS Amazon Linux

I am trying to install Pacemaker in my Amazon Linux and I couldn't find it in the repo anymore following this tutorial with sudo yum install pacemaker. i then further search and found this, and to no ...
1
vote
0answers
45 views

Apache appears to be ignoring my .htaccess file, despite mod_rewrite being enabled and AllowOveride all

System specifications: Amazon Linux AMI release 2017.03 Apache/2.4.33 (Amazon) PHP 5.6.36 DNS is handled by Cloudflare Here are my VirtualHosts: <VirtualHost *:80> DocumentRoot "/var/www/...
1
vote
2answers
669 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 ...
0
votes
2answers
17 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) (...
0
votes
1answer
144 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 --...
0
votes
1answer
49 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 "...
0
votes
2answers
619 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 ...
0
votes
0answers
25 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 ...
5
votes
2answers
984 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 ...
2
votes
0answers
526 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 ...
0
votes
1answer
2k 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 ...
1
vote
0answers
213 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 ...
0
votes
1answer
81 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 ...
0
votes
2answers
364 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 ...
1
vote
1answer
381 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 ...
0
votes
2answers
328 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, ...
0
votes
1answer
1k 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 ...
0
votes
1answer
2k 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 ...
0
votes
1answer
159 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 webadmin@ohanacruises.com ...
0
votes
0answers
256 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 ...
0
votes
1answer
310 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: ...
1
vote
0answers
661 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 ...
1
vote
0answers
469 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 ...
0
votes
1answer
470 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 ...
18
votes
3answers
27k 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 ...
4
votes
2answers
7k 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 ...
8
votes
4answers
34k 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 ...
1
vote
0answers
936 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 ...
-1
votes
1answer
50 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 ...
1
vote
0answers
372 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 ...
3
votes
1answer
300 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 ...
0
votes
1answer
2k 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 ...
2
votes
0answers
66 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 ...
3
votes
1answer
3k 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++...