Re: httpd not interpreting a php file
| From: | francis drake | Date: | Sat, 25 Oct 2014 05:18:05 +0000 |
| Subject: | Re: httpd not interpreting a php file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324000@lists.php.net to get a copy of this message | ||
On Friday, October 24, 2014 12:34 PM, Gergely Buday <gbuday@gmail.com> wrote:
Hi,
I did tests and my Apache does interpret simple php files.
I copied a directory structure from a working web server and my
login.php is not interpreted. Apache emits some source code from the
file.
What could cause this?
Hi Gergely,
There are a few things that could cause that.
For starters I don't know what O/S you're using and don't know what kind of
configuration you're using on apache but the tips below should apply regardless.
First on the list: is the php module installed? (on linux that's libphp5.so)
Two: make sure that apache knows how to interpret php files; somewhere in its configuration file(s)
should be a line like this:
AddType application/x-httpd-php .php
That should get you going.
Have fun,
Mike Wright
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php