Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am fairly new to php server administration, and I am performing a LAMP server migration. I installed php 5.3.3 using YUM on the new CentOS 6.3 server, but I copied the contents of php.ini and the php.d dir from the old server which had php 5.1.6. everything is working pretty well actually, but I wanted to know what would be best practice here. Should I update the modules in /usr/lib64/php/modules and if so, how should I do it?

Furthermore, if you are using mod_php how are the modules handled? Do they still get loaded the same as if you are using php standalone? Does apache just read in the php.ini and load the php modules from php.d?

share|improve this question
    
Unless I'm severely mistaken, the versions of the modules you installed (if you installed them with YUM) should be the same version as your install of PHP.. that's the whole idea of package managers. –  NickW Feb 27 '13 at 16:03
    
I had a duh moment.. I only copied the config files which reference the modules, but the actual modules were installed with YUM, you are correct. –  user160910 Feb 27 '13 at 16:22
    
Yeah, I was starting to wonder if you'd copied over the .so files :) –  NickW Feb 27 '13 at 16:27
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.