I have a file in my web server's root dir named index.php and when I try to access it I get a blank page if the contents are
but if it is
the browser gives me an error:
I installed php5 from ports today and left the compile options on their defaults except for enabling PHP-FPM. I started FPM and can see from netstat that it is listening on 127.0.0.1:9000 like it should be (I left php-fpm.conf as it was). nginx is installed and is allowing me to view html files, the only change I made to its config is that I uncommented the lines regarding PHP-FPM
There is nothing in nginx or php-fpm's logs regarding this. Also, this might be important, when I run php -a it says
but then shows no prompt and lets me type forever without interpreting and commands I enter.
Code:
<?php phpinfo(); ?>
Code:
<? phpinfo(); ?>
Code:
The page you are looking for is temporarily unavailable
I installed php5 from ports today and left the compile options on their defaults except for enabling PHP-FPM. I started FPM and can see from netstat that it is listening on 127.0.0.1:9000 like it should be (I left php-fpm.conf as it was). nginx is installed and is allowing me to view html files, the only change I made to its config is that I uncommented the lines regarding PHP-FPM
Code:
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
There is nothing in nginx or php-fpm's logs regarding this. Also, this might be important, when I run php -a it says
Code:
interactive mode enabled