Install LAMP Stack on AWS EC2 with Amazon Linux from Start to Finish

How to Install LAMP Stack on AWS EC2 with Amazon Linux Here are quick steps to install LAMP Amazon EC2 Access your EC2 instance via SSH or Instance Connect from terminal Start by updating yum: yum update Verify PHP doesn't currently exist: php -v Install PHP if it couldn't be found: sudo yum install php Verify php is installed: php -v Install various important php extensions: sudo yum install php-fpm php-mysqli php-json php-deve Install Apache web server and wget: sudo yum install httpd wget Install MySQL: sudo yum install -y mariadb-server Configure your PHP.ini file and add other required extensions #Update Linux Packages sudo yum update -y #Install PHP sudo yum install php #Check PHP version php -v #Install important PHP extensions sudo yum install php-fpm php-mysqli php-json php-deve #Install Apache Web Server and wget sudo yum install httpd wget #Install MariaDB server sudo yum install -y mariadb-server The article…

read more

Install cURL Libraries for PHP on AWS EC2 From Start to Finish

How to Install cURL for PHP on AWS Amazon Linux EC2 cURL comes pre-installed on an AWS EC2 instance. You can follow these 2 steps if you find it missing. You will need to install the cURL module. Once installed, confirm that the cURL extension is enabled in your php.ini file. Steps to Install cURL on an AWS EC2 with Amazon Linux EC2 Connect into the AWS EC2 instance using SSH or Session Manager Update Linux packages with command: sudo yum update Install cURL package with command: sudo yum install php-curl Verify if cURL is installed with command: curl -v Confirm the PHP curl extension is enabled in your PHP.ini file Find the PHP.ini file on the server with command: php --ini cd to the directory of the PHP.ini file like: cd /etc Open the file using vim or your preferred editor: vi php.ini Find the following in the file:…

read more