Move to New Host - Home Page Doesn't Show - Downloads a File

Permalink
Hi,

Just took a site from development environment to a new host for launch and I am having some issues. Followed all the steps that have worked before. Rather than the website home page showing, it wants to download a file (filename = download) and the contents of this file are:

<?php

require 'concrete/dispatcher.php';

According to host's cPanel, PHP is running (Edge 7.1). Any help would be appreciated.
http://www.pishonparts.com

Environment:
# concrete5 Version
Core Version - 8.2.1
Version Installed - 8.2.1
Database Version - 20170802000000

# concrete5 Packages
Colorpicker Attribute (0.4)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

Host information: This is being hosted at GoDaddy (client forced this decision).
Thanks!

2 Attachments

darrellgw
 
mnakalay replied on at Permalink Reply
mnakalay
That's a windows server you have and it looks like it was not configured properly to execute PHP files so it downloads them. Having PHP installed is not enough you need to have defined a handler to execute the files.

I'm sorry my experience with Windows server is extremely limited but this is really something that GoDaddy should help you with.
darrellgw replied on at Permalink Reply 1 Attachment
darrellgw
Thanks for the quick reply. However, this is not Windows hosting, but rather Linux... Screenshot attached. Any other ideas on what may be the problem?
mnakalay replied on at Permalink Reply
mnakalay
This is very strange. Your first screenshot very clearly shows an option for ASP language and Windows-specific paths.
darrellgw replied on at Permalink Reply
darrellgw
That was just an option to allow ASP type tagging. It is turned off.
mnakalay replied on at Permalink Reply
mnakalay
ok. nevertheless, my first comment stands: it looks like your server is not configured to execute PHP files so it treats them as just normal files. That's a server setting that's why I suggested asking your host.
darrellgw replied on at Permalink Best Answer Reply
darrellgw
Thank you. Just so happens, I am on an online chat with GoDaddy at this very moment. Hope to get to the bottom of it.

UPDATE -> Something so simple can cause hours of frustration. It turned out to be the .htaccess file. The only thing in the file was telling the system to use PHP Edge 7.1. And in GoDaddy's case that is their default, so it essence it was "confusing" the PHP engine and it wouldn't render the pages. For anyone else who may be experiencing something similar, simply change the name of the root .htaccess file to something like htaccess.bak and see if anything changes. That worked for me.