已采纳回答 / 书旅
1、apache是服务器基础,php和mysql都需要他来协调工作2、php是脚本解释,如果不用php那么apache出来的东西就只是静态的,而不能在服务器实现功能3、mysql是数据库,完全可以单独使用,但是和另外两个一起,则是由php代码调用mysql接口,而apache就负责解释php代码,让他能真正地实现对mysql的调用这三个放在这里,大概可以这样讲
2016-12-25
fastcgi_aplit_path_info ^(.+\.php)(/.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
2016-12-23
location ~ \.php {
fastcgi_pass 127.0.0.1:9000;
fastcgi_idnex /index.php;
include /usr/local/nginx/conf/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_idnex /index.php;
include /usr/local/nginx/conf/fastcgi_params;
2016-12-23