Mysql – Migrating Pure PHP Site with Associated Database To New Server

migrationMySQLPHP

First, let me say I'm not a DBA or network admin, but have moved large scale CMS websites from host to host. But, I have never moved a pure PHP-coded database driven website from one host to another.

What I have done is moved the entire site including the level above 'html' with the include folder with config.php, database.php, main.php etc. I have imported database(s) and have proper credentials for access.

But, when I try to load a file from the site (ex. accounts/index.html) I just get partial code returned with no css styles or anything that controls the site.

Page Output

Could someone point me in a direction to be able to start to sync this site back? Like I said, getting raw output with viewing files and can't even get CSS to load site colours and styles.

I'm a newb when it comes to this aspect of things and appreciate any guidance.

Best Answer

PHP is not running on your new server. Set it up correctly and be sure the database has been migrated and is working.

Try adding a simple page with:

<?php
phpinfo();
?>

To your webserver root folder and open it. If you do not get proper info but the script on the page the PHP scripts are not being processed.