Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I uploaded a magento under the public-html folder, when I visited it and wanted to make it connected to database, it did not work.

I cannot access the configuration page, only get the message

You have chosen to open

which is a: application/x-httpd-php5 from: XXXX

What should Firefox do with this file?

Can anyone help me? Thank you!

share

locked by HopelessN00b Dec 31 '14 at 9:56

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

closed as off-topic by HopelessN00b Dec 31 '14 at 9:56

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – HopelessN00b
If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

verify that your server supports php5 and apache has the mime handler application/x-httpd-php5 configured to execute php

share
1  
He'll probably need to re-build apache using a custom profile, as C-Panel's "PHP With E-Commerce" doesn't include a lot of things. –  Tim Post Dec 15 '10 at 11:38

Sounds like you had a different PHP configuration where the site previously was (CGI vs mod_PHP).

Make sure you comment/uncomment this line in your .htaccess file (as necessary)

#    AddHandler php5-cgi .php

Or just run the EasyApache tool in WHM to re-compile PHP with proper support for whichever wrapper you are using (suphp etc.)

share

Not the answer you're looking for? Browse other questions tagged or ask your own question.