Added backwards compatibility for PHP5.0. Added MySQL cases for reinstallation.
Merge branch 'backwards_compatibility/php5'