Can I use a php.ini file from another server?

newlinuxnewbie

Verified User
Joined
Oct 28, 2005
Messages
5
I have a customized php.ini file from another server and I want to use it on the DirectAdmin server, is it compatible? Both servers are running the same versions of Apache, MySQL, and PHP.

I plan on just replacing the existing php.ini file. After I do that, do I have to restart apache, mysql, or both? If apache only, would a graceful restart make the changes take effect immediately?
 
It shouldn't be a problem at all if you aren't loading any custom extensions. If you are loading any extensions (Zend, eaccelerator,...), then they must be in the same exact location on the new server as well.
 
Back
Top