Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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|improve this 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|improve this answer
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|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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