Featured

Centos PHP 7 LAMP boilerplate

Centos PHP 7 LAMP boilerplate

This time we are going to cook Apache (httpd 2.4), PHP 7.0 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 7, how to enable and opcache, and how to install HTTPS on your server, with purchasing SSL certificate.

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.

Posftix Permission denied problem

Posftix Permission denied problem

Recently I stuck with WordPress installation which was unable to send emails using build in wp_mail function. After investigation tail -f /var/log/messages I founded a pleasant line of code with really nice explanation: sendmail: fatal: chdir /var/spool/postfix: Permission denied In theory this should be a problem for sysadmin, but – I wanted to find faster solution. After short adventure with Google I found a clue: /usr/sbin/getsebool httpd_can_sendmail My result was obvious:
CodeIgniter IMG – thumbnails on the fly

CodeIgniter IMG – thumbnails on the fly

CodeIgniter library to generate high quality thumbnails Library is based on excellent * Smarty plugin “Thumb” * created in 2005 by Christoph Erdmann. This version is a little different, we are using core from Thumb, and some modification which gives more flexibility to work with it. Features thumbnails are generated “on the fly” no additional actions required, cache for generated thumbnails, clear structure for generated thumbnails, thumbnails sharpening function, cropping function, fill space function Usage You need to upload file img.