Questions tagged [amazon-linux]

139 questions
5
votes
1 answer

Upgrading command line tools to support TLS1.3 on Amazon Linux 2

A server I need to communicate with only allows TLS1.3 traffic. I have thus updated the version of OpenSSL bundled with Amazon Linux 2 to OpenSSL 1.1.1c. Following this guide I am now able to use TLS 1.3 using OpenSSL e.g. openssl s_client -connect…
Anon957
  • 151
  • 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
  • 643
  • 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
3
votes
1 answer

Per-second billing for custom AMI

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 dependent: Per-second billing is not currently…
3
votes
2 answers

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++14. Is there any way to install a more recent gcc…
bcattle
  • 161
  • 1
  • 2
  • 8
3
votes
2 answers

Ran chkconfig but crond not starting on reboot on Amazon Linux

I am trying to get the cron daemon to start on reboot on an instance of Amazon Linux (Linux version 3.14.57-34.46.amzn1.x86_64). I have run: $ sudo chkconfig crond on If I run: $ chkconfig --list crond I get: crond 0:off 1:off 2:on 3:on …
sohelpme
  • 31
  • 5
3
votes
2 answers

Starting HHVM automatically on Amazon Linux server boot

I'm having trouble getting hhvm to start when my Amazon Linux (which is apparently very similar to Centos) EC2 instance starts. When I reboot the server hhvm doesn't come up, and there's nothing in the error logs. When I use sudo service hhvm…
Tim
  • 31,888
  • 7
  • 52
  • 78
3
votes
1 answer

puppet 3.7 does not install on Amazon linux after the 2015.03 release

hi i am/was using amazon linux and using the RHEL 6 puppetlabs repositories to upgrade the installed puppet client from 2.7 to 3.7. With the latest release of Amazon Linux 2015.03 this process raised the error 25-Mar-2015 13:06:59 …
Graeme
  • 670
  • 1
  • 6
  • 16
3
votes
3 answers

"Unsupported osfamily: Linux" when trying to install Apache using Puppet

I'm trying to setup a simple Puppet setup on AWS EC2 using the latest Amazon Linux AMI. I've followed through the install guide for RHEL and have a puppetmasterd daemon running. When apply the following manifest in…
JoeNyland
  • 225
  • 1
  • 4
  • 12
3
votes
1 answer

How best to maintain a recent bash version on amazon linux?

I require Bash 4.2 or higher. Amazon Linux default repositories only provide Bash 4.1. I have done some searches and can not find a yum repository for recent versions of Bash. I don't want to compile from source, because I want to outsource keeping…
Travis Well
  • 141
  • 5
3
votes
1 answer

Amazon Linux LAMP with php 5.5

I installed PHP 5.5 on my Amazon Linux VPS via the instructions here. The CLI is working fine. I also had apache already installed and running via the httpd package. It was running without any issue. I see that there is no mod_php in the list of…
3
votes
2 answers

Setting up sftp on Amazon Linux 2 with ssh keys, user segregation (sftp vs ssh), different ports, and user directory constraints

TDLR: I have a Catch 22 where, depending on permissions on the user's home directory, I can get the SSH authentication to work, or the user directory constraints, but not both. BTW, I really want to roll my own SFTP server. Please don't recommend I…
Kevin Buchs
  • 353
  • 1
  • 3
  • 20
2
votes
1 answer

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 ago. It has an S3 gateway in the VPC. I created an…
Tim
  • 31,888
  • 7
  • 52
  • 78
2
votes
2 answers

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 file access is related to the file.managed state…
sce
  • 23
  • 3
2
votes
1 answer

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 processes. It is available as /sbin/init and…
Jonathan
  • 1,309
  • 2
  • 22
  • 29
1
2
3
9 10