Moving Wordpress/Joomla web sites to Virtualmin PRO issue

Hello I have start moving Wordpress/Joomla websites to my fresh configured Virtualmin (CentOS 6.8) installation, so so far - more trubles. Old websites hosted on Sentora panel / CentOS 6.8 Moving from Sentora panel to Virtualmin PRO Joomla example - if deleted .htaccess file - Joomla first page working, but nothing else working more, little help with how to configure .htaccess for Joomla 3.5.1 / PHP 5.3.3 in Virtualmin PRO ( can't find any documentation, that why asking for you help) Moving Wordpress - process like always- http://codex.wordpress.org/Moving_WordPress - , Sentora panel / CentOS 6.8 / PHP 5.3.3 cli, configuring same PHP version for the domain in Virtualmin, moving to public_html, import DB to new host with PHPMYADMIN (installed local in /usr/share/phpmyadmin/ - configured for global access) and I get blank/white page, but installing WordPress from script installer works fine, also I have another scripts to move to Virtualmin, this is VAcation Rental Listings: https://www.phpjabbers.com/vacation-rental-script/ I even don't want to try, because I already truing 5 days and no result. Little help please

Status: 
Active

Comments

Update: Also I have this "Warning code" in "php_scripts_error_log" ...

PHP Warning: PHP Startup: mysql: Unable to initialize module Module compiled with module API=20090626 PHP compiled with module API=20100525 These options need to match in Unknown on line 0

Howdy -- the easiest way to move a domain from one server to another, would be to generate a backup of that domain in Virtualmin, copy that backup to the new server, then restore that backup.

However, it sounds like you're seeing some PHP module related errors. It sounds like the error you mentioned is due to PHP trying to load a module that was compiled for another PHP version.

What is the output of this command:

rpm -qa | grep php

Hi I not sure about module, installed mod_secure, mod_easive, but anyway, how I can figure out, what module is not compatible? Thanks in advance This is my output: php55-php-cli-5.5.21-4.el6.x86_64 php-tidy-5.3.3-46.el6_6.x86_64 php-xmlrpc-5.3.3-46.el6_6.x86_64 php54-php-pdo-5.4.16-22.el6.centos.alt.x86_64 php55-php-pecl-jsonc-1.3.5-1.el6.x86_64 php-ldap-5.3.3-46.el6_6.x86_64 php-pear-1.9.4-4.el6.noarch php-xml-5.3.3-46.el6_6.x86_64 php54-php-common-5.4.16-22.el6.centos.alt.x86_64 php54-php-process-5.4.16-22.el6.centos.alt.x86_64 php54-1.1-5.el6.centos.alt.x86_64 php-mcrypt-5.3.3-1.el6.x86_64 php55-php-process-5.5.21-4.el6.x86_64 php55-2.0-1.el6.x86_64 php-5.3.3-46.el6_6.x86_64 php-pgsql-5.3.3-46.el6_6.x86_64 php-gd-5.3.3-46.el6_6.x86_64 wbm-php-pear-1.5-1.noarch php54-php-cli-5.4.16-22.el6.centos.alt.x86_64 php54-php-pear-1.9.4-10.el6.centos.alt.noarch php54-php-mysqlnd-5.4.16-22.el6.centos.alt.x86_64 php-pecl-memcache-3.0.5-4.el6.x86_64 php-intl-5.3.3-46.el6_6.x86_64 php55-runtime-2.0-1.el6.x86_64 php55-php-pear-1.9.4-10.el6.noarch php-common-5.3.3-46.el6_6.x86_64 php-cli-5.3.3-46.el6_6.x86_64 php-snmp-5.3.3-46.el6_6.x86_64 php-mysql-5.3.3-46.el6_6.x86_64 php-soap-5.3.3-46.el6_6.x86_64 php54-php-xml-5.4.16-22.el6.centos.alt.x86_64 php-pecl-apc-3.1.9-2.el6.x86_64 php55-php-common-5.5.21-4.el6.x86_64 php-devel-5.3.3-46.el6_6.x86_64 php-odbc-5.3.3-46.el6_6.x86_64 php-mbstring-5.3.3-46.el6_6.x86_64 php54-runtime-1.1-5.el6.centos.alt.x86_64 php54-php-gd-5.4.16-22.el6.centos.alt.x86_64 rhscl-php55-epel-6-x86_64-1-2.noarch php55-php-xml-5.5.21-4.el6.x86_64 php-pdo-5.3.3-46.el6_6.x86_64 php-imap-5.3.3-46.el6_6.x86_64

Yes, that´s what I do, backup on old server, restore on new server with Virtualmin PRO, but Joomla working only without .htaccess file, Wordpress - blank/white page, installed Wordpress from script installer works fine, when I import DB from old website to new DB - then blank/white page, so with Joomla 3.5.1 I think I can find solution, but Wordpress .... ;);)

If moving WordPress or Joomla from one server to another, and the paths and URL aren't changing -- it should be fairly straight forward. You shouldn't have to change anything within the WordPress or Joomla config.

It sounds like you're saying you'd like to go over WordPress at the moment.

When you get that blank white page, white shows up in the Apache error log for that domain, located in $HOME/logs/error_log?

Also, what distro/version was on your old server?

I think I have found, what is about loaded not compatible module, this was mysql.so, this ext. was not installed with default installation from here: https://www.virtualmin.com/documentation/web/multiplephp

Both servers are: CentOS release 6.7 (Final)

domain log for "that" moment ---> ] mod_fcgid: stderr: PHP Warning: require(/home/slavabrand/public_html/wp-includes/load.php): failed to open stream: No such file or directory in /home/slavabrand/public_html/wp-settings.php on line 21, referer: http://slavabrand.com/ mod_fcgid: stderr: PHP Warning: require(/home/slavabrand/public_html/wp-includes/load.php): failed to open stream: No such file or directory in /home/slavabrand/public_html/wp-settings.php on line 21, referer: http://slavabrand.com/ mod_fcgid: stderr: PHP Fatal error: require(): Failed opening required '/home/slavabrand/public_html/wp-includes/load.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/slavabrand/public_html/wp-settings.php on line 21

Hmm, what is the output of this command:

ls -l /home/slavabrand/public_html/wp-includes/load.php

Yes, i was "hmm" too ;))

-rwxr-x--- 1 slavabrand slavabrand 24585 Oct 24 11:58 /home/slavabrand/public_html/wp-includes/load.php

What I have found out right now, is another website have Default HTML directory PHP 5.5.21 and I forgot to set PHP 5.3.3 for default version, because on old server there is same website on PHP 5.3.3 But now this website is perfectly working on PHP version 5.5.21 ???? What I have missed ??? From beginning I set Default Apache for "Highest", then I have changed it to default PHP 5.3.3

Question is, this can be issue ??? Why ??? Thanks in advance

default PHP 5.3.3 for Server

I'm not sure if I followed all that... just to verify, are you saying that WordPress works properly on your new server using PHP 5.5.21, but it does not work using PHP 5.3.3?

well, yes ... On old server Wordpress/PHP 5.3.3 & working fine, here is the link to old server: http://slavabrand.com On new server for the same website I change for PHP 5.3.3 in Virtualmin from 5.5.21 & I have white/blank page,, another website: http://lexbfbgroup.com I have moved to new server & I forgot to chenge to PHP 5.3.3 so website with PHP 5.5.21(because in Apache defaults was "Higher version") & working perfect, I am a bit "stuck" with Virtualmin PRO Maybe some problems with permissions in CGI, maybe some problem or bug in Virtualmin, this what I trying to descover now

Note that PHP works the same in Virtualmin Pro as it does in GPL. Virtualmin just uses the PHP version available on your distibution.

By default, CentOS 6 comes with PHP 5.3.3. It sounds like in this particular case, an additional PHP version was installed as well, PHP 5.2.21.

Both should work though.

Some third party PHP versions can cause problems with the PHP setup, but it looks like that version was installed from the CentOS SCL repository, which should work very well.

Looking at your WordPress problem --

It's unusual that you'd receive a permissions problem on PHP 5.5.21, but not on 5.3.3.

There's a few commands we can run though, just to make sure there isn't a permission problem within the directory tree somewhere.

What is the output of the following commands:

ls -ld /home/slavabrand
ls -ld /home/slavabrand/public_html
ls -ld /home/slavabrand/public_html/wp-includes

Also, when your domain is configured to use PHP 5.3.3, can you add a PHP script into public_html named "test.php", and give it the following contents:

<?php
 phpinfo();
?>

And then, could you share with us a link to that URL? That may offer some additional insight. Thanks!

There is no error for any of version of PHP, all version works fine starting from 5.3.3 / 5.4.16 / 5.5.21 All websites are working fine, only this one makes me "not calm" ))))) What I done now, I have delete domain & all for this account (DB, mail etc), I have add again this domain, tomorrow will try to install this website again, now even Joomla 3.5.1 working perfect ... Will try again myself first & then will give you result & what was causing this problem. Will share links and info about this

Okay, sounds good! Let us know how your testing goes and if you have any questions.

Hello So here have the links to "php info" files for some domains, first 3 is white / blank page for Wordpress: http://slavabrand.com/info.php http://ru.slavabrand.com/info.php http://en.slavabrand.com/info.php http://store.slavabrand.com/info.php - this one is working some how, also same Wordpress version on same server with same PHP version and working: http://lexbfbgroup.com/info.php

Also here have Joomla 3.5.1 perfectly working on PHP 5.3.3 on the same server with Virtualmin PRO: http://iuahost.com/info.php

error_log is empty for this domain,

ls -ld /home/andriy

drwxr-x--- 15 andriy andriy 4096 Oct 25 15:15 /home/andriy

ls -ld /home/andriy/public_html

drwxr-x--- 7 andriy andriy 4096 Oct 26 19:57 /home/andriy/public_html

ls -la /home/andriy

total 80 drwxr-x--- 15 andriy andriy 4096 Oct 25 15:15 . drwxr-xr-x. 12 root root 4096 Oct 25 15:07 .. drwxr-xr-x 2 andriy andriy 4096 Oct 26 20:01 awstats -rw-r--r-- 1 andriy andriy 21 Oct 25 15:07 .awstats-htpasswd -rw-r--r-- 1 andriy andriy 18 Oct 25 15:07 .bash_logout -rw-r--r-- 1 andriy andriy 176 Oct 25 15:07 .bash_profile -rw-r--r-- 1 andriy andriy 124 Oct 25 15:07 .bashrc drwxr-x--- 2 andriy andriy 4096 Oct 25 15:07 cgi-bin drwxr-xr-x 5 andriy andriy 4096 Oct 25 15:12 domains drwxr-xr-x 5 andriy andriy 4096 Oct 26 20:03 etc drwxr-xr-x 2 andriy andriy 4096 Oct 26 20:03 fcgi-bin drwxr-xr-x 2 andriy andriy 4096 Oct 25 15:07 .gnome2 drwxr-xr-x 4 andriy andriy 4096 Oct 26 16:26 homes drwxr-x--- 2 andriy andriy 4096 Oct 25 15:07 logs drwx------ 8 andriy andriy 4096 Oct 25 15:07 Maildir drwxr-xr-x 4 andriy andriy 4096 Oct 25 15:07 .mozilla drwxr-x--- 7 andriy andriy 4096 Oct 26 19:57 public_html drwx------ 2 andriy andriy 4096 Oct 25 15:15 .spamassassin -rw-r--r-- 1 andriy andriy 21 Oct 25 15:07 .stats-htpasswd drwxr-x--- 2 andriy andriy 4096 Oct 26 20:10 tmp

ls -la /home/andriy/public_html

total 204 drwxr-x--- 7 andriy andriy 4096 Oct 26 19:57 . drwxr-x--- 15 andriy andriy 4096 Oct 25 15:15 .. lrwxrwxrwx 1 andriy andriy 4 Oct 25 15:07 awstats-icon -> icon lrwxrwxrwx 1 andriy andriy 4 Oct 25 15:07 awstatsicons -> icon -rw-r--r-- 1 andriy andriy 301 Oct 26 12:56 .htaccess drwxr-xr-x 9 andriy andriy 4096 Oct 13 17:19 icon -rw-r--r-- 1 andriy andriy 418 Oct 26 12:56 index.php -rw-r--r-- 1 root root 171 Oct 13 20:29 info.php -rw-r--r-- 1 andriy andriy 19930 Oct 26 12:56 license.txt -rw-r--r-- 1 andriy andriy 7360 Oct 26 12:56 readme.html drwxr-xr-x 2 andriy andriy 4096 Oct 26 03:36 stats -rw-r--r-- 1 andriy andriy 4951 Oct 26 12:56 wp-activate.php drwxr-xr-x 9 andriy andriy 4096 Oct 26 12:56 wp-admin -rw-r--r-- 1 andriy andriy 271 Oct 26 12:56 wp-blog-header.php -rw-r--r-- 1 andriy andriy 5007 Oct 26 12:56 wp-comments-post.php -rw-r--r-- 1 andriy andriy 3026 Oct 26 15:02 wp-config.php -rw-r--r-- 1 andriy andriy 2764 Oct 26 12:56 wp-config-sample.php drwxr-xr-x 7 andriy andriy 4096 Oct 26 12:56 wp-content -rw-r--r-- 1 andriy andriy 3286 Oct 26 12:56 wp-cron.php drwxr-xr-x 12 andriy andriy 4096 Oct 26 12:58 wp-includes -rw-r--r-- 1 andriy andriy 2380 Oct 26 12:56 wp-links-opml.php -rw-r--r-- 1 andriy andriy 3123 Oct 26 12:56 wp-load.php -rw-r--r-- 1 andriy andriy 34669 Oct 26 12:56 wp-login.php -rw-r--r-- 1 andriy andriy 8252 Oct 26 12:56 wp-mail.php -rw-r--r-- 1 andriy andriy 11062 Oct 26 12:56 wp-settings.php -rw-r--r-- 1 andriy andriy 25124 Oct 26 12:56 wp-signup.php -rw-r--r-- 1 andriy andriy 4035 Oct 26 12:56 wp-trackback.php -rw-r--r-- 1 andriy andriy 3055 Oct 26 12:56 xmlrpc.php

this domain is Voodoo something .... ))))

Also this domain using WHMCS & running PHP 5.3.3 perfectly: http://iua.domains/info.php

Just to verify -- it sounds like you are saying that for the domains you shared the info.php file for, that you're experiencing the white screen issue in WordPress?

It looks like the 2nd and 3rd domains are using PHP 5.5.21, while the first domain is using PHP 5.3.3, is that correct?

Earlier, you mentioned seeing a permissions error when looking in the Apache error log for one of the domains.

When looking at the Apache error log for each of those domains you mentioned above that's experiencing the WordPress issue, do you see the same permissions issue for each one?

Or are you seeing different errors for each domain?

Hi After I have deleted and added again this domain & subdomains, have no errors in domain log, have access log, but error log is empty, what I think about all this, possible client installed some Wordpress plugin or component or something from this stuff , what conflicts with Virtualmin, because when I ask this client, how he build it, he answer - from domain he build subdomains, but last subdomain store.slavabrand.com is working, this site was builded separated from clean Wordpress installation.

Just to verify, when you re-added the domains, are you still experiencing the white screen problem?

If so -- it is possible that there's a plugin causing a problem.

PHP itself does appear to be working properly, it looks like just WordPress is having a problem. That means it may just be a matter of figuring out what in WordPress is causing the issue.

One example possibility is that on the previous server, a dependency for a particular plugin was installed that it's not installed on this new server.

But there's plenty of other possible causes as well.

Try going into Server Configuration -> Website Options for one of the domains that has this issue, and there, set the PHP Execution Mode to "CGI".

CGI generates much better error messages than the default FCGID does, and may help us sort out what the problem is.

After re-accessing the website, what error(s) do you see in the domain's Apache error log?

Hello So looks like server start to generate errors for this websites, most of them is like this:

PHP Warning: PHP Startup: mysql: Unable to initialize module Module compiled with module API=20090626 PHP compiled with module API=20121212 These options need to match in Unknown on line 0

well, this can be closed, all "love" was because of design of this website was builded on PHP 5.2.x or 5.3.1 maybe some where around and some how working on Sentora panel with PHP 5.3.3 (cli) On Virtualmin this version with the same PHP 5.3.3 (cli) don't works.

Resolved Thanks for me ))))))

I actually think you're experiencing a PHP module version mismatch.

According to the error, it looks like the websites are trying to load a PHP MySQL module that isn't compatible with the PHP version being used.

It sounds like there's a version of the PHP MySQL module installed on this server that isn't compatible with the PHP version shipped with CentOS.

And the websites are loading it, rather than the standard MySQL module.

Virtualmin wouldn't be causing a compatibility issue though, as it's just the control panel running on your server. It's not involved in processing website requests.

The issue would be with the PHP configuration for those domains.

If you wanted to troubleshoot it more, we'd be happy to take a look at the php.ini file for one of the domains experiencing the problem. That may show us why it's trying to load the wrong MySQL module version.

You could attach the php.ini file to this request, or email it to me at eric@virtualmin.com. The php.ini file for a domain is located in $HOME/etc/php5/php.ini.

Ah, that does indeed work for me now!

If it works after disabling a slider, then it's not likely related to the MySQL module. That may just be a "red herring", as they say... possibly an error that occurred previously, and just happens to still be in the logs.

Which WordPress slider module is being used there?

I'll review the module and see if I can determine what might cause that issue.

I think, its not important now people are happy with that ;) Thank you ;)