InMotion Hosting Support Center

subdomain php not working


InMotionFans
n/a Points
Asked:
2014-08-29 3:50 pm EST

Hits: 1,173
I had wiki.zymerinc.com working fine then I switched PHP version with 5.4 from PHP Configuration in the cPanel then some of the php pages were not working and instead, we were getting the download pop up window of the php codes...

I was in the middle of installing phpldapadmin on the demo.zymerinc.com/phpldapadmin...

I switched the PHP version back to 5.3 from cPanel and restarted apache but still the same problem.

I want all of the subdomains under zymerinc.com to be able to run .php.

Please help.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

scott
Staff
43,761 Points
2014-08-29 4:14 pm EST
Hello,

I see the code in the .htaccess file reads as follows:
AddHandler application/x-httpd-php53 .php


Try changing it to simply:
AddHandler application/x-httpd-php5 .php


Kindest Regards,
Scott M

You must login before you can post a comment about this answer.

Wouldn't that just cause for the handler to handle the PHP 5.0 directive only?
His original Handler was okay, but did he have AllowOverride set in .htaccess
Terrabyte
73 Points
2014-08-29 4:56 pm EST
0

scott
Staff
43,761 Points
2014-08-29 9:44 pm EST
Hello Terrabyte,

No, the handler 'AddHandler application/x-httpd-php5 .php' for his server will cause it to go to the default 5.x on the server, which in this case is 5.3. It was just the way it was set up and seems a bit counter-intuitive, but it is a format left over from when the servers only had one version on them.

Kindest Regards,
Scott M

You must login before you can post a comment about this answer.

what strange formatting, but hey you learn something new everyday.
Terrabyte
73 Points
2014-08-30 12:59 am EST
Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!