Importing Database To Localhost: 500 Error Then Downloading php File Instead Of Executing

by Jake   Last Updated October 19, 2017 23:08 PM

A fat hug to anyone willing to help me on this. I'm using MAMP Pro and I'm downloading a live WP site to my localhost to work on it. After importing database & performing MySQL query Instead of executing the programThe program versions are slightly dated.

WP version = 4.4.1 Apache= 2.2.34

PHP= 5.6.31 (I have also experimented w/ 7.8.1, but 5.6.31 is what it was using on the live host)

MySQL= 5.6.32-78.1

Upon importing the database I got a 500 timeout, but then when I cleared the cache & tried to access the localhost I'm given the option to download the php text file below;

/* vim: set expandtab sw=4 ts=4 sts=4: */
 * Main loader script
 * @package PhpMyAdmin
use PMA\libraries\Message;
use PMA\libraries\Response;
use PMA\libraries\RecentFavoriteTable;
use PMA\libraries\URL;
use PMA\libraries\Sanitize;
use PMA\libraries\Charsets;
use PMA\libraries\ThemeManager;
use PMA\libraries\LanguageManager;

 * Gets some core libraries and displays a top message if required
require_once 'libraries/';

 * display Git revision if requested
require_once 'libraries/display_git_revision.lib.php';

After this there's another couple hundred lines.

I've put

AddType application/x-httpd-php .php

AddHandler application/x-httpd-php .php 

into the "Additional parameters for VirtualHost" in MAMP's Apache options which puts those into the httpd.conf.

This error is in the MYSQL error log

2017-10-19 18:25:11 14004 [Warning] InnoDB: Cannot open table . 
mysql/slave_master_info from the internal data dictionary of InnoDB though the 
.frm file for the table exists. See for how 
you can resolve the problem.

I have not been able to find a resolution for it online.

Could it be a conflict between Apache & php? Could it be that these program versions are very old? I'm still new to this stuff and lost.

Thanks for reading, I appreciate your help.

Related Questions

What is Wordpress dependency on MYSQL version?

Updated September 28, 2016 09:03 AM

error importing localhost export file to server

Updated December 21, 2016 08:03 AM

Search and Replace in Windows XAMPP site

Updated December 27, 2017 16:08 PM