Installing Eaccelerator
PHP is an interpreted language. This means that each time a PHP generated page is requested, the server must read in the various files needed and "compile" them into something the machine can understand (opcode).
Opcode cache mechanisms preserve this generated code in cache so that it only needs to be generated a single time to serve hundreds or millions of subsequent requests.
Enabling opcode cache will reduce the time it takes to generate a page by up to 90%. After enabling opcode cache on my own server, I saw page loads drop from about 1.5 seconds to as low as 300ms.
Opcode Cache Solutions
After a bit of research and a lot of asking around, I concluded that Eaccelerator was the best choice for me. It's compatible with PHP5, is arguably the most popular of its kind, and is successfully used on sites getting far more traffic than you or I are ever likely to see. Also its worth noting that Eaccelerator works wonderfull with Zend Framework.
Implementing eAccelerator
Implementing opcode cache is far easier than you might imagine. The only thing you'll need is admin (root) access to your server. If you're in a shared hosting environment, ask your service provider about implementing this feature if it is not in place already. These instructions apply to *nix environments only.
Installation Steps:
- Step 1. Compiling Eaccelerator
Go to the source directory were eAccelerator is located, and in the parent folder run the following commands:
phpize ./configure make
- Step 2. Installing
Now for the installation process run the following command:
make install
- Step 3. Configuration
For configuring your recent install of eAccelerator access your php.ini configuration file, at the end add the following lines:
extension="eaccelerator.so" eaccelerator.shm_size="16" eaccelerator.cache_dir="/tmp/eaccelerator" eaccelerator.enable="1" eaccelerator.optimizer="1" eaccelerator.check_mtime="1" eaccelerator.debug="0" eaccelerator.filter="" eaccelerator.shm_max="0" eaccelerator.shm_ttl="0" eaccelerator.shm_prune_period="0" eaccelerator.shm_only="0" eaccelerator.compress="1" eaccelerator.compress_level="9"
- Step 4. Create Cache Directory
Last but not least all you have to do is create a cache directory, if we follow the above example the cache directory should be created using the following commands:
mkdir /tmp/eaccelerator chmod 0777 /tmp/eaccelerator
Well their you have it that all you need to start serving blazing fast PHP pages. If you want to
configure the admin panel for eAccelerator all you have to do is copy the "control.php" file located inside
eAccelerators source folder into a web enabled folder which you could access via a web browser.
After copying the file edit the "control.php" file and add a username and password.
Example from Control.php file:
/*** CONFIG ***/
$auth = true; // Set to false to disable authentication
$user = "username";
$pw = "password";
piz
ompiling eAccelerator
Turning Off Gmail Buzz
First off am a Twitter fan and have been very unhappy this past week with the launch of Googles Buzz and its current privacy settings. ( along with almost 90% of its users ). So if you read any tech news lately you should know all the heavy debate and heat that Google Buzz has been receiving.
Without going into much detail into the why Google Buzz privacy setting are so awfully bad, am just going to share with everyone this link which shows users how to turn Buzz off.
If you want to know more about this matter and get properly informed on exactly how much private information your handing out while using Buzz ad how intrusive it really is, just read the following articles .
Getting Dropbox
The other day I was talking with some fellow co-workers about file sharing and syncing between devices, etc... So I so bluntly told them why didn't they just use Dropbox. And to my surprise none of them knew what it was. Shortly after they had all installed it, created an account and started fooling around with the features. Amazed at what a powerful app Dropbox was.
Having noted that not many people have heard about Dropboxs magic I decided to dedicate this post to all who haven't had the chance to try it out.
Dropbox is easy to install and totally cross platform. (PC, Mac and Linux).
Main features would be:
- Enable file syncing among various computers and mobile devices.
- File Sharing among friends, co-workers and Dropbox users.
- Online backup.
- Web access to all your Dropbox files.
- Mobile Device access
- And last but not least excellent Security & Privacy settings.
Dropbox will replace and simplify the following common daily tasks:
- Emailing file attachments to yourself and other people.
- Using USB drives to move files between computers.
- Renaming files to keep a history of previous versions.
- Complicated backup software and hardware.
Here is the Url where you can watch a quick video tour of Dropbox features and download the installer.
Hope you enjoy it as much as me and my friends and spread the word.
bye