#!/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 […]
const SKILL_NAME = ‘SKILL_NAME ‘; const GET_FACT_MESSAGE = ‘Here\’s your information: ‘; const HELP_MESSAGE = ‘You can say tell me a fact, or, tell me about something… What can I help you with?’; const HELP_REPROMPT = ‘What can I help you with?’; const STOP_MESSAGE = ‘Goodbye!’; const data = [ ‘Fact Number One.’, ‘Fact […]