Losing my mind here. I switched hosts, moving a WordPress blog from Rackspace Cloud to A Small Orange. My database is set up, the files are in place, and so on.
When I try to go to the admin panel, of course, WordPress wants to run upgrade.php and redirects to it. The problem is that rather than run it, my browser simply downloads upgrade.php directly to my computer. This happens in Safari, Chrome and Firefox — all of 'em.
I've tried tooling around with permissions but I can only even get that far at 755. 777 produces an error on the server that's like, "upgrade.php is writable by group" or what have you and thus I get a 500 error.
I have spent hours and hours Googling and searching the WordPress and Small Orange forums and have not found a single person with this same issue. Makes me think I'm just an idiot and it's such an easy fix no one else would encounter it. A Small Orange's FAQs swear up and down that the upgrade.php process should work perfectly — even has how-tos for running it, none of which mention this issue.
Does anyone know what's up? Any help would be really appreciated. I'm out of my element here, apparently. Thanks!
Note: The upgrade.php that downloads is not the full file as it's found on the FTP server. These are the contents:
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en-US">
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="http://www.theinteractive.com; charset=http://www.theinteractive.com" />
<title>WordPress › Update</title>
<link rel='stylesheet' id='install-css' href='http://www.theinteractive.com/wp-admin/css/install.css?ver=20111117' type='text/css' media='all' />
<!--[if lte IE 7]>
<link rel='stylesheet' id='ie-css' href='http://www.theinteractive.com/wp-admin/css/ie.css?ver=20111130' type='text/css' media='all' />
<h2>Database Update Required</h2>
<p>WordPress has been updated! Before we send you on your way, we have to update your database to the newest version.</p>
<p>The update process may take a little while, so please be patient.</p>
<p class="step">Update WordPress Database</p>