Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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!


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.

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

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.)


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