WebFaction
Community site: login faq

I recently upgraded to CentOS7 and my magento applications are not longer working. I installed the applications using the script provided by webfaction here https://wiki.webfaction.com/wiki/Magento-1.9.2.1Install. Whenever I try to navigate to the website, the index.php is downloaded. It seems that php is not running. I found this answer http://stackoverflow.com/questions/18422140/apache-is-downloading-php-files-instead-of-displaying-them but I cant find the httpd.conf anywhere in the magento application.

I appreciate any help!

asked 19 Jan '16, 16:05

caroso1222
1114
accept rate: 0%


It sounds to me like you have an invalid PHP handler.

Try adding the following to your app's .htaccess:

<FilesMatch \.php$>
    SetHandler php56-cgi
</FilesMatch>

Or, if you already have a handler in .htaccess, edit it so that it matches the above.

permanent link

answered 19 Jan '16, 20:10

seanf
12.2k41836
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×262
×225
×17

question asked: 19 Jan '16, 16:05

question was seen: 3,065 times

last updated: 19 Jan '16, 20:10

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM