#!/bin/bash dnf upgrade -y dnf install -y httpd wget php-fpm php-mysqli php-json php php-devel dnf install mariadb105-server systemctl start httpd systemctl enable httpd systemctl is-enabled httpd usermod -a -G apache ec2-user chown -R ec2-user:apache /var/www chmod 2775 /var/www && find /var/www -type d -exec sudo chmod 2775 {} \; find /var/www -type f -exec sudo […]
This is a mess. I will edit it later This is the command history to build a Lambda Layer in Python. I had to add a C compiler, Compile Python 3.9 with a specific requests module, and then upload to S3 and Add the Layer to Lambda function before I could use it but […]
Recently, I had the need to compile Python 3.9 on AWS CloudShell which was necessary to create a Lambda Layer for the requests module. This required add a C compiler to CloudShell. The steps are: Step 1: Update packages. sudo yum update Step 2: Install GCC sudo yum groupinstall “Development Tools” Step 3: […]
#Upgrading to PHP 7.2 on Amazon Linux #check current version of PHP php -v #stop APACHE and PHP services sudo service httpd stop #uninstall APACHE and PHP sudo yum remove httpd* php* #Get latest updates sudo yum update -y #install PHP 7.2 sudo yum install php72 #install MySQL driver for PHP 7.2 sudo yum install […]
WordPress uses .htaccess to automatically attempt to correct URLs that are misunderstood. This behavior can lead to errors such as ERR_TOO_MANY_REDIRECTS and prevent intended funcationality such as using an index.html as a landing page for the domain. It is possible to Disable WordPress Canonical URL or Permalink Auto Redirect to fix these problems. This code […]