title: Upgrade PHP to 5.2.12 on CentOS using yum
body: <p>I tried to find a simple way to upgrade PHP on my CentOS5 machine using <code>yum</code> instead of downloading the source and compiling it again myself (I did it last time, but it's really difficult to get all the compile configurations same as CentOS's default). Anyway, I finally use the methods listed here:
  <a href="http://www.atomicorp.com/wiki/index.php/PHP" rel="nofollow noreferrer">http://www.atomicorp.com/wiki/index.php/PHP</a></p>
  
  <p>Now, the command <code>php -v</code> shows the version is already 5.2.11 (which I needed) , but it always contains many warnings like:</p>
  
  <pre><code>PHP Warning:  PHP Startup: fileinfo: Unable to initialize   module
  Module compiled with module API=20050922, debug=0, thread-safety=0
  PHP    compiled with module API=20060613, debug=0, thread-safety=0
  These options need to match
  in Unknown on line 0
  
  PHP Warning:  PHP Startup: mcrypt: Unable to initialize module
  Module compiled with module API=20050922, debug=0, thread-safety=0
  PHP    compiled with module API=20060613, debug=0, thread-safety=0
  These options need to match
  in Unknown on line 0
  
  PHP Warning:  PHP Startup: memcache: Unable to initialize module
  Module compiled with module API=20050922, debug=0, thread-safety=0
  PHP    compiled with module API=20060613, debug=0, thread-safety=0
  These options need to match
  in Unknown on line 0
  
  PHP Warning:  PHP Startup: mssql: Unable to initialize module
  Module compiled with module API=20050922, debug=0, thread-safety=0
  PHP    compiled with module API=20060613, debug=0, thread-safety=0
  These options need to match
  in Unknown on line 0
  </code></pre>
  
  <p>I think it basically means that I need to recompile these four modules, how could I do that? Any suggestions are appreciated.</p>