we are trying to setup apache (apache 2 in this case, although apache does the same thing) and html pages display just fine, however, any php pages linked into buttons on the front page are offered for download rather than being displayed.
Any ideas what we have missed? Its proving difficult to search on this in google as the terms are so heavily used elsewhere.
I know this is a bit general, but we have tried adding types to the to the apache.conf (or httpd.conf for apache1) are having no joy at all.
Thanks.
Peter.
You're missing a PHP script handler.
The configuration lines in Apache2 that you're missing look something like this:
With something like Apache on Linux, it's typically installed when you include the PHP packages into your distribution.
What OS are you running this on?
You could also try this
then restart apache2 with
on a suse style linux
I was looking on this question for a while finding a lot of Linux answers and not too many Windows answers.
Here was the solution for me:
If you already put the
AddType application/x-httpd-php .php
into thehttpd.conf
file for Apache, then you do not need it in your.htaccess
file on your webpage. I found deleting it from my.htaccess
made php render.