Questions tagged [amazon-linux]
The amazon-linux tag has no usage guidance.
128
questions
0
votes
0
answers
24
views
Is there a way to read dmesg.old with absolute timestamps
Is there a way, using dmesg or otherwise to see the data in /var/log/dmesg.old with an absolute timestamp? I'm trying to get the same effect as dmesg -T but on older data.
I'm using Amazon Linux AMI ...
0
votes
0
answers
12
views
How to connect two adapters to aws linux 2 with virtulabox?
I followed this video link and able to use amazon linux 2 with virtualbox.
But this video shows only one network adapter(bridged).
I connected two network adapters(NAT and Host-Only) but only the ...
0
votes
2
answers
31
views
Reducing Amazon EBS Root Volume Size on Amazon Linux 1
I have been trying to reduce the size of my Amazon Linux 1 AMI root volume using the procedure in this documentation (with some modifications made after failing to do so) and continuously run into ...
0
votes
1
answer
46
views
Downtime on an EC2 instance
Recently I had an issue on an EC2 instance. The site running there was unavailable for 2 hours:
CPU utilization for the past week:
The rest are around the time it happened:
The systemd journal ...
-1
votes
1
answer
947
views
AWS EC2 Yum has no repositories
I'm a frontend web developer and struggling with this backend stuff!
My goal here is to install and update to PHP 7.4 on my AWS EC2 server.
I need yum to install amazon-linux-extras but yum has no ...
1
vote
1
answer
255
views
Error getting the correct Python3 dependency
I get this error when trying to install HTCondor on Amazon Linux 2 instance:
Error: Package: python3-condor-8.8.15-1.el7.x86_64 (htcondor-stable)
Requires: libpython3.6m.so.1.0()(64bit)
I ...
1
vote
1
answer
775
views
Install certbot nginx in Amazon Linux AMI
i have a really old amazon linux ami in which i need to install certbot for my nginx which is running a php website. Now i need to install ssl on this website. But i cannot install certbot-nginx on my ...
0
votes
0
answers
22
views
How would I migrate an SVN/Trac/Tomcat server instance to Amazon Linux 2?
We have a development EC2 instance, originally spun up (if memory serves) from a free canned AMI with Trac and SVN running under Amazon Linux, to which we added Tomcat.
Some time ago, I tried to set ...
3
votes
2
answers
854
views
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 ...
3
votes
1
answer
814
views
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 ...
0
votes
1
answer
926
views
Intermittent "Address already in use: AH00072: make_sock: could not bind to address" on port 80
We are experiencing intermittent "Address already in use: AH00072: make_sock: could not bind to address" on port 80 failures on our servers. I have looked at other answers and they are ...
1
vote
1
answer
168
views
Instance created from (working) Lightsail snapshot will not respond to nginx requests
I'm trying to scale up a Lightsail instance. It's a basic Wordpress site on an Amazon Linux 2 AMI running nginx and mariadb. It's using a static IP. Works fine.
When I create a snapshot of it, use it ...
0
votes
1
answer
580
views
Where to find/how to install `libclang-*.so.1` on CentOS?
I am trying to find a library of libclang-*.so.1 on centOS, but didn't find it anywhere. I have already installed clang and llvm-toolset-7.0. Any suggestions are welcome.
4
votes
1
answer
4k
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
1
answer
1k
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
0
answers
674
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 ...
3
votes
1
answer
2k
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
1
answer
466
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
1
answer
489
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 ...
4
votes
2
answers
12k
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
1
answer
173
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
0
answers
40
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 ...
5
votes
1
answer
3k
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
1
answer
2k
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
1
answer
2k
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
1
answer
352
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
2
answers
1k
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
0
answers
431
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 ...
2
votes
1
answer
9k
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
1
answer
1k
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
0
answers
260
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
1
answer
417
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
0
answers
133
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
0
answers
408
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
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 ...
0
votes
2
answers
18
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
2
answers
305
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
1
answer
83
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
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 ...
0
votes
0
answers
29
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
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 ...
2
votes
0
answers
949
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
1
answer
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
0
answers
332
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
1
answer
183
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 ...
1
vote
2
answers
874
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
1
answer
956
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
2
answers
754
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, ...
1
vote
1
answer
6k
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
1
answer
4k
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 ...