Chat /

Possible problems on website after account migration from other control panels to cPanel

Here I try to explain possible problems and solutions on website after migration to cPanel server.

1. PHP shows wrong time or timezone missing / differs from MySQL’i timezone
2. Website shows old/wrong info

1. PHP shows wrong time or timezone missing / differs from MySQL’i timezone

Other control panels may have their own Timezone in place. cPanel has default timezone as UTC.
If Your website shows error as:

Warning: strtotime() [function.strtotime]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.

Or Your website/php script gives wrong time or timezone, You should manually change timezone:
1. Via cPanel -> SOFTWARE -> “MultiPHP INI Editor” per domain manually:

date.timezone = Europe/Tallinn

2. In index, autoload, bootstrap or config PHP script, after php tag:

ini_set('date.timezone', 'Europe/Tallinn');

2. Website shows old/wrong info

1. Upon HTTPS – did You move Your websites files prior migration from under private_html/www/… folder to public_html?
(cPaneli does not have sepperate folders for websites WWW or HTTPS – everything is shown from under public_html folder!)
2. “Blank page” or WSOD (“White screen of Death”)
– activate error_reporting via MultiPHP INI editor, refresh Your webpage and check for any errors/error_log files
– Check You PHP version via cPanel -> MultiPHP Manager – if there is a wrong version there, You can change it.
3. 503 error on webpage – if prior migration Your webpage worked, there may be either problem with account limits or You are using wrong PHP version. Try to activate error_reporting and check for any logs!

Comments are currently closed.

This website utilizes cookies and similar technologies for functionality and other purposes. Your use of this website constitutes your acceptance of cookies.
Ok, got it.