Questions tagged [amazon-linux]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

AWS linux 2 : qt5-qtwebengine and qt5-qtwebenginewidget support not available inside epel-release version 7

I have my application which is working fine on Centos 8 and RHEL 8. The same application I am running on the AWS linux 2 after enabling the epel-release version 7 but it is showing an error i.e ...
3
votes
1answer
435 views

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 ...
0
votes
1answer
385 views

chmod/chown/mkdir: Operation not permitted as root

I get Operation not permitted for root user on one server but not on the other "identical" server. Running on Amazon Linux 1. Server 1: [root@preprod-1 ]# chown root:root /s3mnt/outliers/ ...
0
votes
0answers
245 views

Installing PCNTL module for PHP7.4 on Amazon Linux

I'm using amazon linux2 and trying to install pcntl extension for php7.4.9. There are no package for pcntl after run yum search pcntl, so I manually copied file pcntl.so to /usr/lib64/php/modules and ...
1
vote
1answer
569 views

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 ...
0
votes
1answer
204 views

Let's Encrypt problems with Bitnami stack and Lego, on an Amazon Linux (not 2) instance

We have an Amazon Linux (not Amazon Linux 2) instance, running a fairly old Bitnami Trac/SVN stack, and also running a Tomcat server. It has two instances of httpd: the one that's part of the Bitnami ...
0
votes
1answer
340 views

Trying to install php 7.3 with httpd 2.4 on centos 6

I have CentOS6-equivalent systems (Amazon Linux original, not Linux 2) that I upgraded to Apache httpd 2.4. Now I want to upgrade PHP from 7.1 to 7.3. As far as I can tell, the Remi repo only provides ...
3
votes
2answers
5k views

Can't install amazon-linux-extras pm AWS EC2 Amazon Linux AMI instance

I'm trying to install amazon-linux-extras using the instructions here: sudo yum install -y amazon-linux-extras And I get the following error: amzn-main ...
0
votes
1answer
73 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
32 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 ...
2
votes
1answer
1k 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
1answer
1k 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. ...
2
votes
1answer
1k 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 ...
1
vote
1answer
275 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
559 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
296 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
5k 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
716 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
159 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
306 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
116 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
145 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
1k 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
2answers
213 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
54 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
812 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
28 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
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 ...
2
votes
0answers
813 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
251 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
121 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
587 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
683 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
563 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
3k 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
3k 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
189 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
275 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
343 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: ...
2
votes
1answer
952 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
549 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
552 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 ...
21
votes
5answers
44k 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 ...
5
votes
2answers
9k 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 ...
9
votes
7answers
44k 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
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 ...
-1
votes
1answer
57 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
411 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 ...