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?
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?
What is your nginx configuration?
what do u mean? sry im still new
No problem… we were all new one time, I’m still learning.
How are you planning on serving php?
Nginx by itself does not process scripts, simply passes the requests to
a
backend.
Google: php-fpm (see php-fpm.org) or apache mod_php for example.
Your nginx configuration file is called “nginx.conf” in it you specify
how
you want php to be served.
On 2 Out 2010 03h14 WEST, [email protected] 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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs