Remembering PHP

In the past weeks, I have been back in code mode working on a project, and I am glad to report it is all coming back to me; well, more or less.

I wouldn’t say it has been like getting back on a bike again, but it has been relatively close. Thankfully Google has been there to help refresh my memory on how to do X or Y.

Read More

Slackbot on hold…

I missed a day of posting for the challenge but was all for a good reason. I have scrapped the idea of creating the Slackbot, at least for now. I decided to go back and revisit the real needs and requirements of the project and am going with the KISS principle for the first release. … Read More

Building a Slackbot in PHP

Slackbot Image

Its been a while since I have taken on a coding project. The last one I can think of was when I was working at Envato and built off of a script that Aaron Rutley had created to help me perform quality assurance tests on ThemeForest themes before they were added to the now-defunct hosting platform.

Read More

Installing HipHop Virtual Machine

HipHop Virtual Machine

I recently read an article about how you can install HipHp Virtual Machine (HHVM) for a 2x+ speed boost on your site.  The newest version of WordPress works 100% with HHVM, but unfortunately some of the plugins out there don’t. I decided the pros out weighed the cons and decided to install HHVM on my development server.  Outlined below are the steps for installing it on your own.

wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
echo deb http://dl.hhvm.com/ubuntu saucy main | sudo tee /etc/apt/sources.list.d/hhvm.list
sudo apt-get update
sudo apt-get install hhvm
sudo /usr/share/hhvm/install_fastcgi.sh
sudo update-rc.d hhvm defaults
sudo /etc/init.d/hhvm restart
sudo /usr/bin/update-alternatives --install /usr/bin/php php /usr/bin/hhvm 60

Read More

APC on a WHM/CPanel Server

One of my clients needed APC installed for their application, so I initially tried to install it via WHM module installer …. this failed.   Here are the steps that I took to get it working via CLI
First download the newest stable release of APC and then run the following commands.

wget http://pecl.php.net/get/APC-3.1.6.tgz
tar -xzf APC-3.1.6.tgz
cd APC-3.1.6
which php
phpize

If you do not have pcre installed the make install will fail.  So make sure to run the following yum command to install it with the development packages for safe measure.

Read More