Questions tagged [amazon-linux]

139 questions
2
votes
1 answer

Amazon Linux, PHP 5.5: php.ini ignored

On our Amazon EC2 instance, I uninstalled PHP5.3 (yum remove php) and installed PHP 5.5, which also bundled in Apache 2.4 (yum install php54). For some reason, my php.ini file is no longer being read. It looks like it may be deprecated, and maybe I…
DOOManiac
  • 791
  • 6
  • 12
  • 26
1
vote
1 answer

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 have successfully generated the SSL Certificates…
Latheesan
  • 357
  • 2
  • 6
  • 19
1
vote
0 answers

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: DocumentRoot "/var/www/sub.mysite.com/app/public" ServerName…
jvnk
  • 123
  • 4
1
vote
2 answers

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 install mysql-community-server I get: Loaded plugins:…
Shef
  • 243
  • 2
  • 12
1
vote
2 answers

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 server completely "disappears". Trying to display…
Dino
  • 13
  • 5
1
vote
1 answer

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 MACs setting defined within the …
Lightbeard
  • 239
  • 1
  • 5
  • 12
1
vote
0 answers

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 PHP 7.1. However, I am now unable to start Apache.…
nevada_scout
  • 164
  • 1
  • 9
1
vote
0 answers

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 configuration instead. We use file like this one…
1
vote
2 answers

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 over the user data passed in for cloud-config.…
kadrach
  • 113
  • 1
  • 5
1
vote
0 answers

Nginx serving to 2 ghost blogs in node.js

I'm trying to configure an Amazon EC2 instance running Amazon linux with nginx to serve two different ghost blogs in node.js. My understanding is that web traffic hits the public IP of the ec2 instance, nginx is listening on port 80 and the config…
1
vote
1 answer

high memory usage on amazon linux

I've observed high memory usage at amazon ec2 instance using amazon Linux. See attached image. Top 25 processes shows < 1GB of memory, but free -m says ~ 3GB is consumed. I've already visited http://www.linuxatemyram.com/, but in my case cache is…
Piyuesh
  • 146
  • 7
1
vote
2 answers

How to install the PHP OAuth Extension on Amazon Linux

In order to connect to QuickBooks from my PHP application, I need to install OAuth. I was following these instructions (substituting yum for apt-get) but after the first line sudo yum install gcc make autoconf libc-dev pkg-config I see: No package…
Tomaso Albinoni
  • 113
  • 1
  • 5
1
vote
1 answer

Custom kernel options for Amazon Linux 2015.03

I've been attempting to build a custom kernel for the 2015.03 release with CONFIG_HOTPLUG_CPU disabled. Following a bunch of threads on this forum and elsewhere I've been able to build a new kernel RPM but the option I'm setting is not taking…
Ben Whaley
  • 1,433
  • 13
  • 13
1
vote
2 answers

Apache:mod_ssl:Error: Private key not found

I'm installing a SSL certificate to serve HTTPS. I'm using Apache 2.4 in Amazon Linux and got the certificate in Startssl. My Vhost config is the following: ServerAdmin webmaster@myweb.com …
davids
  • 167
  • 2
  • 4
  • 10
1
vote
1 answer

Can't install Facter 1.7.0 on Amazon Linux using PuppetLabs Yum repositories

I've installed Puppet using the setup guide but it seems I'm only able to install Puppet packages from the amzn-* repos, even though I have installed the PuppetLabs EL6 Yum repository using the instructions provided by…
JoeNyland
  • 225
  • 1
  • 4
  • 12