PHP Modules change after Site Migration/Restore

3 posts / 0 new
Last post
#1 Wed, 10/28/2009 - 11:13
planetlogic

PHP Modules change after Site Migration/Restore

Having issues with Restore on site migrations. Specifically the PHP modules are loosing the MySQL mods. The backup files are coming off an CentOS 5.2 386 vmin 3.73 install. Going to a CentOS 5.3 64bit Vmin 3.74 install. PHP version is PHP version 5.1.6 on both machines.

Issue is that the PHP mdoules get disabled on import. Best I can tell is happen on the home direcorty restore. This happens on both if you manually setup domain or allow restore to build it. And the really weird part is that on original 3.73 install all modules are there.

Only guess is the MySQL version which are slightly different New: MySQL version 5.0.77 Old: MySQL version 5.0.45 But it really seems to be a PHP.ini issue

From within Virtualmin Select a site or a restored site->Server Configruration->Website Options->PHP Modules

Modules Before RESTORE

Modules for PHP 5

bz2 calendar ctype curl date dbase dom exif ftp gd gettext gmp hash iconv imap ldap libxml mbstring mcrypt mime_magic mysql mysqli odbc openssl pcntl pcre PDO pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql posix pspell Reflection session shmop SimpleXML snmp soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlrpc xmlwriter xsl zlib

Modules AFTER RESTORE

Modules for PHP 5 bz2 calendar ctype curl date exif ftp gettext gmp hash iconv libxml mime_magic openssl pcntl pcre posix pspell Reflection session shmop SimpleXML sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml zlib

Anyone have any insight here it would make life soo much easier as we are migrating 6 servers.

I f we manually create the site and then FTP all files and restore MySQL sites are fine, but very much time consuming.

Thanks.

Wed, 10/28/2009 - 11:23
andreychek

Is it possible that an invalid extension_dir setting is being brought in?

Verify in your $HOME/etc/php.ini file that there isn't an "extension_dir" being set to a directory that doesn't exist.

-Eric

Wed, 10/28/2009 - 12:02
planetlogic

Eric- Great call!

Was pointing here: /usr/lib/php/modules

Since the new servers are X64 needs to be this: /usr/lib64/php/modules

Thanks a bunch you just saved us a whole lot of time and energy!

Topic locked