Search Engine: Elastic

Article ID: 111127, created on Apr 14, 2011, last review on Apr 25, 2014

  • Applies to:
  • Pro Control Panel Linux


I have migrated sites from i386 server to x64 server. What additional changes should I do?


Change extension _dir value in php.ini files for every site to correspond the current location of php modules.

For example, the old location could be:

extension_dir = /usr/lib/php/modules

and the new one is:

extension_dir = /usr/lib64/php/modules

You can use this script to update all sites at once:

sed -i "s|extension_dir = /usr/lib/php/modules|extension_dir = /usr/lib64/php/modules|" /home/virtual/*/etc/php.ini

NOTE: Use this script at your own risk. Make sure it corresponds your situation before running it.

4cc899da08664637a8bc437308d3ddd7 3ccb419cf98083f3bb45808fba8dbc7c 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF