Page 1 of 1

[SOLVED] Problem switching hosts! Please help!

Posted: Sat Mar 23, 2013 4:42 pm
by michaywood
Hey CMSMSers,

So, I built a site on my host (Bluehost). The customer has now approved and wants the site live, so I am in the process of transferring it to his site (hosted on Lonex).

It took me a few minutes to figure out how to get the SQL database imported.

So I've got all the files transferred, SQL uploaded, and changed the config file to correctly connect to the database.

My problem, when you visit the site, it doesn't display anything, but simply downloads a file to your computer!

Any ideas??


Here is what's in the file that's downloaded:

Code: Select all

the index.php file

Re: Problem switching hosts! Please help!

Posted: Sat Mar 23, 2013 4:45 pm
by calguy1000
Your host is not properly configured to serve and execute PHP files.

Contact your host.... this isn't a CMSMS issue.

Re: Problem switching hosts! Please help!

Posted: Sat Mar 23, 2013 5:18 pm
by michaywood
Thanks! I contacted the host and they helped by saying " The server works properly. The issue came from the custom .htaccess set in the directory of your domain name. I have commented the AddHandler application/x-httpd-php5s .php line and your page loads with no issues. "

I don't remember adding that .htaccess so not sure if that was something my previous host did or not. either way, we're good to go!

Re: [SOLVED] Problem switching hosts! Please help!

Posted: Sat Mar 23, 2013 5:34 pm
by velden
You might want to change database password now.

A smart guy could also have looked inside the config.php and read the database connection info.