test.php being downloaded instead of displayed

António P. P. Almeida appa at perusio.net
Sat Oct 2 06:30:57 MSD 2010


On 2 Out 2010 03h14 WEST, bthreesix at gmail.com wrote:

> I set up a simple test.php on my server with 
>
> <?php
> phpinfo();
> ?>
>
> but it seems like when i browse to the file its being downloaded
> instead of displayed in the browser window.  does anyone know how i
> can fix this?

Configure nginx to pass all requests for PHP files to the FastCGI
process. Check the wiki for configuration examples.

--- appa




More information about the nginx mailing list