Skip to main content

Posts

Showing posts with the label Amazon Cloud

Working with multiple versions of PHP 7.3, 7.2, 7.1, 7.0 & 5.6 on Ubuntu

  Sometimes PHP developers need to work on multiple versions of PHP for different projects and one might think of using a docker installation, which is a better idea of what we are going to do below, but Docker can be complicated for many reasons and one might not be ready to get started with Docker. In the below article, I will be explaining how one can work with multiple PHP version on Ubuntu. I am using ubuntu 18.10 and the below article for me without any issues. Install PHP (5.6, 7.0, 7.1, 7.2 and 7.3) on Ubuntu Using PPA 1.   Adding  Ondřej PPA  to install different versions of PHP –  PHP 5.6 ,  PHP 7.0,   PHP 7.1, PHP 7.2  and  PHP 7.3  on the system. sudo apt-get install software-properties-common ## sudo apt install python-software-properties sudo add-apt-repository ppa:ondrej/php 2.    Update the system Make sure you have the  sudo  privileges to do so. sudo apt-get update ...

Discount (up to 75%) On Amazon EC2 Reserved Instances (RI) compared to On-Demand Instances pricing.

Amazon EC2 Reserved Instances (RI) provide a significant discount (up to 75%) compared to On-Demand pricing and provide a capacity reservation when used in a specific Availability Zone.   Why Should I Use RIs? Save Money and Maintain Flexibility RIs provide you with a significant discount (up to 75%) compared to On-Demand instance pricing. You have the flexibility to change families, OS types, and tenancies while benefitting from RI pricing when you use Convertible RIs. Reserve Capacity RIs can provide a capacity reservation, offering additional confidence in your ability to launch the number of instances you have reserved when you need them. How do RIs Work? EC2 RIs provide a discounted hourly rate and an optional capacity reservation for EC2 instances. AWS Billing automatically applies your RI’s discounted rate when attributes of EC2 instance usage match attributes of an active RI. If an Availability Zone is specified, EC2 reserves capaci...

Restore AWS EC2 instance private key

In case when you lost private keys from AWS EC2 instances you will need a way to restore it. Unfortunately you can’t just change instance private key in AWS Management Console. The easiest way to do it which I found is through Amazon Machine Image (AMI). Basically all you need to do is recreate you instance from AMI and set new private key to it. Below I describe required steps to do it. Steps to change EC2 key pair 1. Shut down your instance   2. Create AMI for that instance and provide some meaningful name for them   3. Go to “Images > AMIs”. You need to launch instance with the same type from created AMI 4. On the last step of launching you will be asked about key pair. So it’s time to create/chose private key which you want to use with this instance 5. After that you need go to “Network & Security > Elastic IPs” and disassociate ip from old instance and associate with created instance...

How To Install cPanel On Amazon Cloud (AWS) EC2 Instance?

Why easy to use cPanel ?   cPanel  is a Linux   based web GUI hosting control panel. The main advantage of cPanel servers is that you can easily install and configure the W ebsite and E -mail.   WHM  - Web Host Manager is a tool that is also used, as well as the reseller server administrator. Resellers can be accessed by authorized resellers in WHM, by using a reseller account can create and manage sub-accounts which may be limited modifications.   To change all the server level, server administrators need the Administrator login that you use to manage tasks such as Apache , Php and upgrading perl module  installed. cPanel servers have access to the root password of the server. In the following blog , we look at the installation of cPanel Server  on EC2 . Setup AWS EC2 for cPanel.   1. Start with log into the  AWS Management Console . Open the Amazon EC2 console by choosing EC2 under Compute.   2...