skip to Main Content
+971 55 881 1725 hmimthiaz @ imthi.com

WHM / cPanel – Compile PHP 5.3 to work with PHP 5.2

This is one of major issue lot of web masters face now. As PHP 5.2 has reached end of life we are forced to seek options to migrate and test PHP applications in PHP 5.2 and 5.3. Raj COO from WebHostRepo.com has posted a nice blog post on how to achieve this.

Running PHP 5.3 along with PHP 5.2.x in cPanel servers.webhostrepo

I did all the steps as mentioned on the blog post except for one, I had a lengthier configure statement 😉

Install ZendGuardLoader

Edit /usr/local/php53/lib/php.ini and add these lines to end

Happy migration 😉

Compile PHP 5.3.19 on CentOS 6.3 with Curl 7.28

new-php-logo

For this installation I choose CentOS 6.3 minimal version. You can download the ISO from the mirrors or direct download it from SYNc yourself. Once the CentOS installation is completed make sure you are connected to Internet to update the latest libraries.

 

Note: These steps are done assuming you are logged in as root user

1. Please update the available updates for the OS and restart

2. Install EPEL (Extra Packages for Enterprise Linux) so that you can get all the needed libraries for compiling PHP

3. Install Development Tools – Detailed User Guide

4. Install MySQL Database client

5. Install the following libraries which are required for different modules in PHP. Please make sure all the dependencies are met before installation

6. For this installation I planned to use the latest version of curl so I had to my custom curl compilation

7. Download and compile PHP 5.3.19

8. Copy php.ini

9. Edit Apache conf check if “LoadModule” is present else add it.

LoadModule php5_module /usr/lib64/httpd/modules/libphp5.so

10. Set handler for Apache to handle PHP files

11. If you are not planning to install ZendGuardLoader skip to step 13 else make sure you have disabled SElinux. Detailed instructions

12. Install ZendGuardLoader

Edit /usr/local/php-5.3.19/lib/php.ini and add these lines to end

13. Restart you apache and you are set

It took a great deal of time to make this work and with lot of trial and errors. If anyone finds a better way to compile please do share it with me. All the best 😉

Raspberry Pi a credit-card sized computer

Today I got the Raspberry Pi which I ordered last week. I was really exciting to start exploring the possibilities of this new toy.

What is Raspberry Pi?

The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video.

Raspberry Pi

Raspberry Pi Model B 512MB RAM

  • SoC Broadcom BCM2835 (CPU, GPU, DSP, and SDRAM)
  • CPU: 700 MHz ARM1176JZF-S core (ARM11 family)
  • GPU: Broadcom VideoCore IV, OpenGL ES 2.0, 1080p30 h.264/MPEG-4 AVC high-profile decoder
  • Memory (SDRAM): 512 Megabytes (MiB)
  • Video outputs: Composite RCA, HDMI
  • Audio outputs: 3.5 mm jack, HDMI
  • Onboard storage: SD, MMC, SDIO card slot
  • 10/100 Ethernet RJ45 onboard network
  • Storage via SD/ MMC/ SDIO card slot

Raspberry Pi Enclosed in a Box

I  took around 2 hours to figure out how to get started, once I had finished the basic setup I created a simple video and I hope you can understand what this small monster is capable of.

Hope you enjoyed it 😉

Back To Top