Questions tagged [amazon-linux-2]

251 questions
0
votes
2 answers

Nginx try_files prompt for download PHP

I'm setting up an Nginx + PHP web server on AWS Linux 2. It is a fresh install with nginx and PHP7.4 installed. Below is the virtual host config file in nginx. I need to redirect all the traffic to index.php because it is a Single Page App. When I…
Lee Le
  • 337
  • 1
  • 4
  • 10
0
votes
0 answers

How to install a specific version of php 7.1.28 on Amzon Linux EC2

I need to install the 7.1.28 version of php in my EC2 instance, and i have to install also php-mysqlnd and php opcache, i added the remi repository but i get the 7.1.33, there is any repository or any guide for do it? Thanks in advance
0
votes
1 answer

How can I add a variable to jenkins during the install on Amazon Linux

I have a variable that I need to add as Jenkins Environment Variable so that the $jenkins_home/init.d groovy scripts can use them. I have this variable set in the host machine(where iam installing jenkins) - Amazon linux EC2 via a .sh file in…
0
votes
2 answers

Error deploying a node.js app to Elastic Beanstalk on Amazon Linux 2

I am trying to have a node js app on Elastic Beanstalk. On Amazon Linux Image the environment gets created and works smooth.In order to get it done I followed the instructions given in the AWS documentation itself. It works on single…
0
votes
1 answer

crond service not working inside docker container [image: amazon linux 2]

we can install cron service using below command in container yum install crontabs or yum -y install cronie service can start using : crond I have configured the cron in /etc/crontab, but it is not working. And not generating cron log file…
Naveen BT
  • 115
  • 4
  • 11
0
votes
2 answers

How do I get my EC2 Instance to connect to ECS Cluster?

I have an ECS cluster defined in AWS and an Auto Scaling Group that I use to add/remove instance to handle tasks as necessary. I have the ASG setup so that it is creating the EC2 instance at the appropriate time, but it won't connect to the ECS…
0
votes
0 answers

Setting php_admin_value in Amazon Linux2 with FPM

I searched for a whole day trying to find this, so I'm sharing my experience in attempting set php_value and php_admin_value with Amazon Linux2 instances. First of all, Linux2 runs PHP with the much more efficient and faster FPM (FastCGI Process…
WebTigers
  • 297
  • 2
  • 8
0
votes
1 answer

What is the proper location to build packages from source to on a 64 bit Amazon Linux 2 instance?

I am having a similar problem to No package 'gdk-pixbuf-2.0' found. However, after installing gdk-pixbuf-2.0, it does not appear in the results of pkg-config--list-all at all. Here are the relevant environment variables: PKG_CONFIG_PATH:…
adam tropp
  • 674
  • 7
  • 22
0
votes
3 answers

Ansible load epel and yum update

trying to add epel and then do a yum update via ansible on a amazon-linux-2 server. The URL im using based on : https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/ My ansible script is: --- - hosts: all remote_user:…
Staggerlee011
  • 847
  • 2
  • 13
  • 23
0
votes
1 answer

logrotate 3.8.6 on amazon linux 2 does not respect size limit

logrotate.d configuration on an amazon linux 2 for awslogs is the following /var/log/awslogs.log { missingok notifempty size 100M create 0600 root root delaycompress compress rotate 4 postrotate systemctl…
chi
  • 471
  • 3
  • 18
0
votes
1 answer

Two EC2s, different regions, default settings, N.Virginia = no internet, Ohio = yes internet

I launch a new Amazon Linux 2 AMI t2 micro instance in N.Virginia with all default settings (next, next, next, next...) and once up and running, I ssh into it, and no connectivity to the Internet. I do the same in Ohio, and I have Internet…
John Chase
  • 328
  • 3
  • 10
0
votes
2 answers

403 forbidden on POST request nginx + amazon linux 2

I have setup a server on AWS everything working fine, i am able to fetch data from server but unable to POST, POST data is continuously giving 403 forbidden response, i have check nginx logs, call never even reach there, but GET request are shows up…
Awais Ayub
  • 389
  • 3
  • 13
0
votes
1 answer

Amazon Linux 2 / Red Hat Linux Enterprise : binutils won't install 'ld' bin

Trying to install the mongodb extension on Amazon linux 2 (which is based on Red Hat Linux Enterprise) but I'm missing the ld extension. I have the binutils installed, but no ld bin :( binutils-2.29.1-30.amzn2.x86_64.rpm …
0
votes
1 answer

Installing php 7.0 on amazon linux 2

I'm trying to create an Amazon Linux 2 AMI image using packer with php 7.0 installed, since that's the version we have currently in our production machine. Now, php 7.0 has reached end of life status, so you can't find it on the normal repositories,…
0
votes
1 answer

How can I migrate amazon linux from VERSION_ID="2018.03" to version 2?

I have been working on python project on AWS EC2 instance using Amazon Linux VERSION_ID="2018.03" but I need to migrate entire OS to latest version 2 as older version is missing some important features and commands..... how can I do that I checked…
Ishwor Khanal
  • 1,312
  • 18
  • 30
1 2 3
16
17