Tuesday, January 18, 2011

Improving PHP Installation

PHP is an example of a good open source project. It has been widely used and known by many developers. It has a vast of libraries and extensions that ease the work of developers because they don't have to invent everything from scratch. Instead, they can use all the available libraries for free. It also has a big collections of classes in PEAR and PECL repository.

Even with all those advantages, PHP is also known to have some security problems. That's why, i added Suhosin patch into my virtual server to enhance it's security protection. Adding suhosin is an easy task, since it has been described in detail in their documentation page. I can manage to install Suhosin in less than 2 minutes.

For those who seeks for performance improvement, i would suggest you to try eAccelerator and APC. It's also easy to install and configure. I'm able to finish the installation and configuration process in less than 5 minutes.

Just make sure to verify that it has been activated by creating a file with phpinfo() inside of it and ran the file in browser or just use terminal and issue php -v and this is the results:

PHP 5.3.5 (cli) (built: Jan 11 2011 21:51:47)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH

No comments:

Post a Comment