We are running Drupal 5.1, MySql 4.1.22, PHP 5.2.3 on RHEL 5 and through a fresh cpanel/whm setup. We had some of the oft mentioned login problems so had to comment out the section below to get logins to work. So far so good but now the site banner and images dont show up and if you right-click where they are supposed to be, you can see parts of the url duplicated. I have also set the base_url but this did not seem to have an impact. We also just rebuilt apache with that version of PHP and this image problem seemed to occur after that. Not sure where to look for the cause.

Site:
http://www.businesssquamish.com

What shows if you right click to show banner image:
http://www.businesssquamish.com/sites/all/themes/ssc//sites/all/themes/s...

What it should be:
http://www.businesssquamish.com/sites/all/themes/ssc/images/headers/home...

base_url setting:
$base_url = 'http://www.businesssquamish.com'; // NO trailing slash! */

What was commented out to fix login problem:

/** if (isset($_SERVER['HTTP_HOST'])) {
$domain = '.'. preg_replace('`^www.`', '', $_SERVER['HTTP_HOST']);
// Per RFC 2109, cookie domains must contain at least one dot other than the
// first. For hosts such as 'localhost', we don't set a cookie domain.
if (count(explode('.', $domain)) > 2) {
ini_set('session.cookie_domain', $domain);
}
}
*/