Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [amazon-linux]

The tag has no usage guidance.

0
votes
0answers
9 views

Default Apache 2.4 StartServers, MinSpareServers, MaxSpareServers, ServerLimit, MaxClients

What are the default settings for Apache 2.4 prefork MPM StartServers, MinSpareServers, MaxSpareServers, ServerLimit, and MaxClients on Amazon Linux? I have a server which I don't think is specifying ...
0
votes
0answers
11 views

AWS Elastic Beanstalk: Routing system mails to real email address?

How can I from within Elastic Beanstalk instances have system emails routed to a real email address instead of just piling up in like /var/spool/mail/root? I thinking of both system-wide emails by ...
0
votes
0answers
11 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
759 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 ...
1
vote
0answers
33 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
119 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
77 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
46 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
75 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 ...
0
votes
0answers
9 views

Can artifactory update a repository from a mirror list automatically?

Can Artifactory support using a mirror list to find most up to date mirror? Amazon linux updates their mirror list periodically to a new location (probably within an s3 bucket) with a long sha id. ...
0
votes
1answer
81 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
59 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
91 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
249 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
54 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
121 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
181 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
250 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 ...
0
votes
0answers
12 views

In memory disk caching uses all available memory [duplicate]

Disk caching in memory on an AWS Amazon Linux machine grows to 99% of the total free memory. The machine runs a LEMP stack (latest stable nginx & php 7.1.6) & the code makes use of AMPHP and ...
0
votes
0answers
445 views

Why is php-zip missing from Amazon Linux 2 ? How do I fix this so I can install moodle

I have a new Amazon Linux 2 server running nginx and php-fpm but when I try to install moodle I get this error: The Zip PHP extension is now required by Moodle, info-ZIP binaries or PclZip library ...
0
votes
0answers
78 views

Trouble with separating apache log by year,month directory on AWS Linux AMI

I'm using AWS EC2 with Amazon Linux AMI, and need to separate apache logs by date. When I used Ubuntu, I used cronolog like below. CustomLog "|/usr/local/cronolog/sbin/cronolog /var/log/apache2/%Y/%m/...
1
vote
0answers
283 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
213 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 ...
6
votes
2answers
4k 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 ...
2
votes
2answers
1k 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 ...
5
votes
3answers
15k 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 ...
0
votes
0answers
179 views

how to write user data script in aws cloud formation #cloud-config

i have a cloud formation template and i have user data in ASG launch configuration i want to execute this command "- mdadm --create --verbose /dev/md0 --level=0 --name=Raid0 --raid-devices=2 /dev/xvdb ...
1
vote
0answers
495 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
33 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 ...
0
votes
0answers
212 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
136 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
783 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
52 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 ...
1
vote
1answer
1k 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++...
0
votes
0answers
22 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 ...
0
votes
2answers
29 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-...
1
vote
2answers
2k 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 ...
1
vote
1answer
531 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 ...
0
votes
0answers
551 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. ...
0
votes
1answer
372 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 ...
0
votes
0answers
39 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 ...
10
votes
2answers
8k 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-...
0
votes
2answers
1k 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 ...
7
votes
2answers
3k 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"):...
0
votes
2answers
439 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 ...
0
votes
1answer
201 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 ...
0
votes
1answer
2k 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 ...
-2
votes
3answers
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 ...
1
vote
1answer
721 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 ...
0
votes
1answer
340 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 ...