1.找到php.ini
$ php -i | grep "Loaded Configuration File" Loaded Configuration File => /usr/local/php/etc/php.ini $ vim /usr/local/php/etc/php.ini
2.修改 expose_php 将 On 改成 Off
3.重启php
4.打开浏览器检测,顺便用lynx在命令行中看下
$ lynx -head -mime_header http://localhost 或者 $ lynx -head -mime_header http://server-address