Skip to main content

All Questions

2 votes
1 answer
5k views

AWS EC2, Apache, PHP: php_network_getaddresses: getaddrinfo failed

Running PHP 5.6 on an EC2 instance with Apache 2.4.18, I'm occasionally seeing errors in the log when trying to connect to an RDS database: PDO::__construct(): php_network_getaddresses: getaddrinfo ...
0 votes
2 answers
3k views

Extending File-system after EBS volume increase on M5 type EC2 with Ubuntu 16.04

Production AWS Instance: We have an m5 ec2 nitro instance that is in need of query optimization. However, we are in a time crunch and have decided to temporarily throw memory and storage at this until ...
8 votes
3 answers
8k views

Is it possible to get metadata about the Elastic Beanstalk environment from the EC2 instance

I'd like to be able to extract information about the current elastic beanstalk environment from my EC2 instance, so that I can include this information in error emails sent from my servers. For ...
7 votes
3 answers
16k views

Is it possible to retain IP address when stopping/starting an AWS EC2 instance?

Reading Amazon's documentation it appears that the default behavior for an EC2 instance to to release the current IP address and reassign a new one at some point in the processes depending on whether ...
0 votes
0 answers
16 views

DB2 on CIS Amazon Linux 2023 Benchmark - Level 1

By following an tutorial blog of installing DB2 on Amazon Linux, after solving many dependencies error, in the end I'm facing an issue where I can't start the DB2. Some troubleshooting steps I did on ...
0 votes
1 answer
32 views

How to limit AWS VPC endpoint to to signed requests

We had a scan done recently of our AWS infrastructure, and one of the high risk level items that we need to address is to Identify any fully accessible VPC endpoints and update their access policy in ...
2 votes
1 answer
10k views

How to increase timeout of EC2 instance for http request

We are getting 504 timedout issue whenever the response time exceeds 60s. EC2 instance is timed out in 60 second. Is there any way to to increase the time-out time configuration in EC2 instance? We ...
1 vote
0 answers
688 views

Docker in AWS - Multiple Elastic Network Interfaces

I have a docker container running web server that’s listening on port 80 (jenkins/jenkins:lts) I have 2x interfaces on the host, one is intended to be dedicated to the container only (once this is ...
4 votes
1 answer
2k views

How to upgrade to IPv6 for AWS EC2?

Starting yesterday, AWS is charging for IP addresses (IPv4). I would like to upgrade my EC2 instances to IPv6, but I must be missing the docs on how to do that? I can't seem to get an EC2 instance ...
4 votes
2 answers
13k views

AWS 2023 AMI Linux installation of epel-release-latest-8

I'm trying to install the following on an EC2 instance and receiving the following error message: [ec2-user@ip-172-30-0-7 ~]$ sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-...
22 votes
3 answers
66k views

How to start and stop AWS EC2 instance based on a time based schedule

Is there an easy way to start and stop AWS EC2 instances at a given time each day? This could save me quite a lot of money for my development and test servers.
0 votes
1 answer
22k views

EC2 after reboot: how to resolve host ip-xxx-xx-xx-xxx: Resource temporarily unavailable

I rebooted my Ubuntu EC2 and I now can't do anything. I get the following error on trying pretty much anything: sudo: unable to resolve host ip-xxx-xx-xx-xxx: Resource temporarily unavailable where ...
0 votes
0 answers
64 views

Nginx: Not loading wordpress repo on EC2 instance - Getting 'This site can't be reached'

I've been trawling through forums trying to figure out why nginx won't point to my wordpress repo and loads the page 'This site can't be reached'. I followed the steps in this guide https://medium.com/...
0 votes
0 answers
30 views

Having issue with Route53, ec2, Apache Virtual host and wordpress working

I am having wordpress blog - https://blog.pepagora.com, hosted on Amazon aWS EC2 instance and DNS is managed in Route53. Suddenly blog site stopped responding and couldn't figure out why? For testing ...
0 votes
1 answer
38 views

The EC2 connection was working fine but suddenly the connection timed out

`I have one bastion ec2, and I had no problem with connecting with putty, but when I tried to connect today, I couldn't connect with "Network Error : connection timed out". I also set the ...

15 30 50 per page
1
2 3 4 5
181