DevOps
EC2 Instance and SWAP space
EC2 Instances on Amazon out of the box, does not contain any SWAP space . So if you exhaust memory, machine probably stuck. It’s very good practice, to give them at least slow SWAP memory to save instant crashes.
Process is quite simple. Let’s check how much free space we have:
Amazon EC2 – Installing Apache and PHP boilerplate
In this extremely simply tutorial I’m going to show, how you can deploy basic LAMP stack on EC2 instance. Instruction are pretty basic, without extra comments. You can just copy and paste command to get working stack in lest then 15 minutes.
What you can learn from it? How to install Apache and PHP, how to enable and run XCache accelerator, and how to run HTTPS on your server, with purchasing SSL certificate.
Gearman installation on CentOS and AMI Linux
Gearman provides a generic application framework to farm out work to other machines or processes that are better suited to do the work.
This solution is truly multiplatform, so we have Client API and Wordkres in multiple languages like Shell, Perl, NodeJS any couple of others (PHP!)
How to Install GeoIP extension on CentOS
Small 2019 update – Please check out this library – github.com/maxmind/MaxMind-DB-Reader-php . It’s a straight replacement of PHP module.
GeoIP from PECL is powerful extension used to determine geographical locations of IP addresses and domain names. This is useful if you want to set a language or redirection based on location of your visitor. Check out the PHP docs for a full list of GeoIP functions .