PDA

View Full Version : Can I use a php.ini file from another server?



newlinuxnewbie
10-28-2005, 06:13 AM
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?

toml
10-28-2005, 10:34 AM
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.