Re: httpd not interpreting a php file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 







On Friday, October 24, 2014 12:34 PM, Gergely Buday <gbuday@xxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux