Skip to main content

Posts

Showing posts from 2015

Installing the PHP "memcached" Extension on OS X MAC

To disable System Integrity Protection, boot into recovery mode by restarting and then holding  ⌘R  as you hear the startup chime. Then start the Terminal from the Utilities menu. Run the following command $ csrutil disable Then reboot. You are good to go. If you wish to turn it back on, which you probably should when you are done, follow the instructions above but instead use: $ csrutil enable The first step is to install the latest and greatest Xcode. Install the Xcode developer tools. Apple seems to have removed this option from the preferences so you'll need to handle this from the command line. $ xcode-select --install Next we will install the required dependencies. If you are not already using  Homebrew  you should be. $ brew install wget autoconf pkg-config libmemcached You will also want to make sure you have PEAR installed; instructions can be found  here  but can be summarized as follows: $ wget http://pear.php.net/go-pear.phar $ php go-pear.phar T

How to Start and Stop Background Services with Homebrew/brew

install brew services:   brew tap homebrew/services then check list of service ablable in brew by commond ": brew services list this will give you all service aviable with brew then start , stop restart by :  brew services start redis brew services restart redis brew services stop redis now you can cleanup brew by : brew services cleanup , More : brew --help brew command brew  beer

How to install memcached on Mac with Homebrew and Lunchy

install  memcached -  brew install memcached . install  Lunchy -  gem install lunchy find version of install memcached and link lunchy to memcached -  $version cp / usr / local / Cellar / memcached / $version / homebrew . mxcl . memcached . plist ~ /Library/ LaunchAgents / and start memcached with lunchy start memcached , lunchy stop memcached

how to add icon in zf2 navigation ?

1: In your config file : .... 'navigation' => array(         'default' => array(                  array(                         'label' => 'Vender Dashborad',                         'route' => 'vender',                         'resource' => 'vender',                         'icon' => 'fa fa-building',                         'pages' => array(                             array(                                 'label' => 'Dashborad',                                 'uri' => '/vender/index',                                 'icon' => 'fa fa-tachometer'                             ) ,                              array(                                 'label' => 'Profile',                                 'uri' => '/vender/index/profile',            

Install the MongoDB PHP Driver on Ubuntu

First, to get this thing going, we'll need to resolve some dependencies. To do that, run this command from the terminal: $ sudo apt-get install php-pear php5-dev Next, you should easily be able to install the driver with the following command: $ sudo pecl install mongo What makes Ubuntu  a little different from other systems in how PHP extensions get loading when Apache/PHP starts. To make sure this extension gets loaded, we'll need to add a .ini file to "/etc/php5/conf.d". To do that, run the following command: $ sudo touch /etc/php5/conf.d/mongo.ini After creating the file, add this line of content: extension=mongo.so After you've saved your new .ini file, restart Apache and verify that the extension is loading with  phpinfo() .

How To Deploy an Advanced PHP Application Using Ansible on Ubuntu 14.04 ?

Introduction This tutorial is the second in a series about deploying PHP applications using Ansible on Ubuntu 14.04. The first tutorial  covers the basic steps for deploying an application, and is a starting point for the steps outlined in this tutorial. In this tutorial we will cover setting up SSH keys to support code deployment/publishing tools, configuring the system firewall, provisioning and configuring the database (including the password!), and setting up task schedulers (crons) and queue daemons. The goal at the end of this tutorial is for you to have a fully working PHP application server with the aforementioned advanced configuration. Like the last tutorial, we will be using the  Laravel framework  as our example PHP application. However, these instructions can be easily modified to support other frameworks and applications if you already have your own. Prerequisites This tutorial follows on directly from the end of  the first tutorial in the series , and all o