Site behaves strange after move to cPanel

InteractM

Well-Known Member
Apr 2, 2013
135
1
18
cPanel Access Level
Root Administrator
I have moved a site to the server running cPanel (from PLESK). Site is running on Wordpress 3.5.2 with WP e-Commerce Gold plugin (version 3.8.11.1) and for some kind of a reason product images are loading or not randomly for product categories or featured products. It looks like code for image resizing is not generating proper image and it looks like

<img src="http://www.[Removed].com/index.php?wpsc_action=scale_image&attachment_id=1075&width=150&height=150" alt="Boston RedSox Vintage Baseball Hat" />

An example here: /http://www.[Removed].com/products-page/hats-2/ and featured products example (bottom of the page): /http://www.[Removed].com/products-page/featured-football-shirts/new-york-green-football-animals-t-shirt-large-logo/

Any thoughts?

Thanks

PS

After further testing it looks like some kind of issue with connections to the DB - Wordpress is sending queries but not retrieving any data.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,201
363
Hello :)

Are you using the same versions of PHP and MySQL on the cPanel server that you used on the Plesk server? It's possible there are some differences in how PHP is handling the images. It may be a good idea to consult with the WordPress community directly to see if anyone else has experienced the same issue.

Thank you.
 

InteractM

Well-Known Member
Apr 2, 2013
135
1
18
cPanel Access Level
Root Administrator
Wordpress community pointed to the server issues because site works on PLESK but has issues on cPanel, that's why I have posted my question here.

cPanel: PHP 5.2.17 and MySQL 5.5.32
PLESK: PHP 5.3.3 and MySQL 5.1.69
 

kdean

Well-Known Member
Oct 19, 2012
365
56
78
Orlando, FL
cPanel Access Level
Root Administrator
First thing I'd do if you don't have a bunch of other accounts relying on PHP 5.2 is to use EasyApache to update PHP to 5.3 to better match the Plesk servers config.

Are you seeing any error_log files in the site's folders?

You may need to bump up the memory_limit in the PHP Configuration Editor in WHM.
 

InteractM

Well-Known Member
Apr 2, 2013
135
1
18
cPanel Access Level
Root Administrator
I have just tested site connecting to the DB on PLESK and it looks like it is not related to MySQL version. As well I have tested site from PLESK connected to the DB from cPanel - no issue. About PHP I need to keep 5.2.x because few websites uses ZEND encoder which crashes after updating to 5.3.x. I will follow up with the PHP memroy_limit

PS.
increasing memory_limit to 256M didn't help at that case
 
Last edited:

Tom Risager

Well-Known Member
Jul 10, 2012
116
6
18
Copenhagen, Denmark
cPanel Access Level
Root Administrator
Are there any error_log files with relevant entries in your WordPress root folder, plugin or theme folders?

The different PHP versions on the two servers seem the most likely explanation why your site works on one but not the other.