Have you checked that

includes/configure.php and,

admin/includes/configure.php have all the correct settings?