linux

Apache 2.4, PHP 5.4 on EC2 instance

Apache 2.4, PHP 5.4 on EC2 instance

This tutorial just updated version of my previous one . This time we are going to install newer version of apache (httpd 2.4), PHP 5.4 but as a PHP-FPM . Instructions are pretty simple. You can just copy and paste command to get working stack in less then 15 minutes.

What you can learn from it? How to install Apache 2.4 and PHP 5.4, how to enable and APC, and how to install HTTPS on your server, with purchasing SSL certificate.

Shuttle XS35 V2 and CentOs drivers

Some time ago I bought extremely quiet Shuttle XS35 V2  device to have something “seperate” for my web development work. Right now this awesome fan less device has many purposes. Works as full web dev stack, with Apache, PHP, MySQL, mongoDB, and even Jenkins machine.

Recently I realised that this small ugly device got also WiFi cart into it. Because I’m running out of cables and space in my apartment i figure out, that I could move it easily without plugging into it more cables.

Utilizing multi core for tar+gzip/bzip compression/decompression

Utilizing multi core for tar+gzip/bzip compression/decompression

We have couple options: pigz and pbzip2 . tar -c --use-compress-program=pigz -f my_archive.tar.gz /home/archive The other trick useful trick is that you can exclude some directories or files tar -zcvf my_archive.tar.gz --exclude='cache' --exclude='.git' /home/archive
EC2 Instance and SWAP space

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: