Chrome mistakenly downloads localhost/wordpress pages, but Firefox doesn't

Posted by Mr E on Ask Ubuntu See other posts from Ask Ubuntu or by Mr E
Published on 2011-01-05T18:09:36Z Indexed on 2011/01/05 19:00 UTC
Read the original article Hit count: 279

I have Wordpress installed at http://localhost/wordpress

When I try and view a page in Chrome, it downloads the PHP file rather than showing the page. When I view in Firefox, everything works fine.

when I create localhost/test.php containing simply <?php echo "hello world" ?> it displays in both browsers.

Any ideas on what might be wrong?

$ dpkg -l | grep apache outputs: apache2, apache2-mpm-prefork, apache2-utils, apache2.2-bin, apache2.2-common, libapache2-mod-php5

© Ask Ubuntu or respective owner

Related posts about apache

Related posts about google-chrome