我已经安装好了nginx!php!php-fpm
但是在nginx/html里新建个index.php
内容:
<? echo "this is test"; ?>却不能再nginx上显示 this is test!!(就是不支持php语言!)他是全部显示出来的<? echo "this is test"; ?>谁能帮帮我!!如何配置nginx?
但是在nginx/html里新建个index.php
内容:
<? echo "this is test"; ?>却不能再nginx上显示 this is test!!(就是不支持php语言!)他是全部显示出来的<? echo "this is test"; ?>谁能帮帮我!!如何配置nginx?
http://www.jb51.net/article/20456.htm
<?php …… ?>
或
php.ini
short_open_tag = On
-----------------要配置php-fpm, 就是用fastCGI去调用php。
nginx ->fcgi-> php-fpm,中间用fcgi连接
nginx/html目录下是放静态文件的,你多研究以下nginx吧