MemcachePool::get() Server failed with: Network timeout – Possible Fixes

Tag: , — October 21, 2010 @ 6:40 pm

Migrated my busy PHP/Drupal website last night from one VPS hosting provider to another. In the process I am also upgrading the operating system from Debian 5 “Lenny” to Ubuntu 10.04 “Lucid Lynx”. A bad move especially when I have not tested the new platform thoroughly — with new stacks such as MySQL 5.1 (from […]

Keeping Your PHP/FastCGI Processes Alive

Tag: , , , — May 30, 2009 @ 4:10 am Comments 9

A few days ago I spotted this forum post on Linode Forum — someone’s Nginx to PHP FastCGI set up kept on throwing 502 Gateway Error after a few days. I have a mystery and I’m not sure how to solve it. My 360 Linode is running several WordPress-based sites using nginx. Everything is great, […]

Increasing PHP Application Performance with XCache

Tag: — May 29, 2008 @ 2:49 pm Comments 9

Most interpreted programming languages parse source files and translate/compile them into opcode/bytecode that are suitable to be executed in the virtual machine. Python for example, dumps the compiled opcode into the .pyc or .pyo files so when the same file is imported again in the future, no parsing and compilation needs to be done. On […]

Running PHP on Shared Hosting

Tag: , — April 12, 2007 @ 7:37 am Comments 12

Being able to run PHP scripts and applications is probably one of the most obvious feature in shared web hosting today, but the actual process to make it fast and secure at the same time might not be that trivial. I am actually writing this post in response to this thread at WHT, where web […]

Use spawn-fcgi for lighttpd + PHP-FastCGI

Tag: , , — May 20, 2006 @ 4:00 am Comments 4

I had a problem with Lighttpd and PHP on the default Gentoo install. The configuration that comes with Gentoo, and the “official recommendation” use bin-ath in the mod_fastcgi to point to PHP’s CGI executable.