upgrade php to php 5, and upgrade configManager smartyWrapper and MemcacheWrapper