命令行 php --version你是安装php webserver 环境还是只安装php如果是php webserver 在 webserver 根目录下简历 php 文件 查看信息,如果显示php相关信息则成功。