今日分享 · 浏览器打开.php条件:本地开启了网站服务(如Apache等)本文以xampp面板为例     →安装参考请点击←首先在xampp控制面板开启Apache服务然后将.php文件拷贝到站点目录(\xampp\htdocs)最后在浏览器访问“http://localhost/[php文件名]”常见报错处理:[Apache] Attempting to start Apache app...[Apache] Status change detected: running[Apache] Status change detected: stopped[Apache] Error: Apache shutdown unexpectedly.[Apache] This may be due to a blocked port, missing dependencies, [Apache] improper privileges, a crash, or a shutdown by another method.[Apache] Press the Logs button to view error logs and check[Apache] the Windows Event Viewer for more clues[Apache] If you need more help, copy and post this[Apache]   entire log window on the forumscmd运行\xampp\apache\bin\httpd.exe查看被占用的端口,注意跳转路径在xampp可以快速查看端口进程列表(我这里是443端口被VM占用了)结束进程或修改端口。在xampp可以快速打开配置文件进行端口修改:“80”端口在“httpd.conf”,“433”端口在“httpd-ssl.conf”,关键词是“Listen”