Install Development Environment for NodeJS on CentOS

This short blog entry will cover how to install nodejs and npm for NodeJS on CentOS. First, install epel repository: [bash]yum install[/bash] For CentOS 7, use [bash]yum install[/bash] Then, install nodejs and npm via yum: [bash]yum install nodejs npm[/bash] Finally, go to node project root directory and run: [bash]npm […]

Linux, Nginx, MySQL, PHP – LEMP Stack for Laravel on Ubuntu

This quick tutorial will guide to install LEMP stack for Laravel on Ubuntu OS. Install PHP Install necessary php mods: [bash]apt-get install nginx php5-fpm php5-cli php5-mcrypt php5-json php5-dev php-pear git[/bash] Enable mcrypt: [bash]ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available php5enmod mcrypt[/bash] Modify /etc/php5/fpm/php.ini and change cgi.fix_pathinfo to 0: [bash]cgi.fix_pathinfo=0[/bash] Install opcache: [bash]pecl install […]

Setting up Nginx, HHVM, and Percona for Laravel

HHVM is an open-source virtual machine designed for executing programs written in Hack and PHP. HHVM uses a just-in-time (JIT) compilation approach to achieve superior performance while maintaining the development flexibility that PHP provides. This tutorial guides how to set up Nginx, HHVM, and Percona for Laravel Projects on Ubuntu. First, we need to update system […]

Zend OpCache in PHP 5.5

A great news for the PHP community is that Zend Optimizer+ was became open-source, so it is built-in from PHP 5.5. This tutorial will guide how to install Zend Opcache in PHP 5.5 and will mention a little bit about its performance. What is Optimizer+? According to PHP OptimizerPlus RFC, Optimizer+ […]

Laravel 4 – Beginner’s notes

You might ask: What is Laravel (and Laravel 4)? In short, it is the PHP frameworks for web artisans. This contains notes for beginners. We can generate tables for application by utilizing the migration feature with artisan. For example, in order to setup a user table, we use parameters –table and –create:[bash]php […]