JayFromEpic

Well-Known Member
Apr 2, 2011
218
8
68
Scottsdale
cPanel Access Level
Root Administrator
Twitter
Well let me start off by saying, I have been using for Cpanel for years and have never ran into this issue untill now.

Well, on my site: jdxservices.com

I transferred it over from another server last night. All was well and it was all working. This morning when I tried to view the site, it promted me to download the page file instead of viewing it. It was telling me it could not recognize the MIME.

I am not sure what is causing this and am a bit stumped.

I just teminated the account and re-transferred it over and it works again now but I fear this is not the end. Does anyone have an idea what could be causing this and how I would fix it?
 

JayFromEpic

Well-Known Member
Apr 2, 2011
218
8
68
Scottsdale
cPanel Access Level
Root Administrator
Twitter
It was doiong this for the whole website. I have never ran into an issue like this before in the 4 years I have been using Cpanel. I think I might of mixed something up in the Service Config. The only issue is, im not sure what the mistake was!
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
For some reason, you do not have a PHP handler defined. Apache does not know what to do with the .php files, so it is sending them to your browser for download, instead of using a handler to parse them.

You select a PHP handler in Main >> Service Configuration >> Configure PHP and SuExec. What handler is currently selected? If none is selected, then you need to select one and save the change.

There are other issues that can cause this and make it impossible to select a handler, such as a broken PHP installation. It would probably be best if you can submit a ticket so that we can log into the server, investigate the problem directly, and fix it for you.
 

JayFromEpic

Well-Known Member
Apr 2, 2011
218
8
68
Scottsdale
cPanel Access Level
Root Administrator
Twitter
DSO is currently selected as it should be. Here is the direct ip to the site: http://74.117.158.48/

I am running updates to see if this may solve the issue. I have saved the php settings and now a fatal error is shown on the webpage:

Fatal error: Class 'PDO' not found in /*****/***/public_html/includes/database/database.inc on line 185

So any ideas.
 

JayFromEpic

Well-Known Member
Apr 2, 2011
218
8
68
Scottsdale
cPanel Access Level
Root Administrator
Twitter
Let me try with pdo. I just re-read the documentation for Drupal and it does say to use pdo however, I know numberous users who donot. Plus the pdo in WHM is provided by PECL if im not mistaken which may not be usable.