idea中的PHP Built-in Web Server和PHP Web Page有什么区别?idea中的PHP Built-in Web Server和PHP Web Page如何正确配置?
PHP Built-in Web Server:字面意思是php内置的服务器,如果需要用内置服务器,需要正确配置才行。
第一步:File->Settings-> Build,Execution,Deployment->Deployment
设置Connection和Mappings


默认的调试端口是63342,如果需要修改调试端口,比如可以修改为63343
File->Settings-> Build,Execution,Deployment->Debugger
Built in server这一项下面的Port:63342 修改成63343就可以了。

第二步:File->Settings->Languages & Frameworks->PHP->Servers
配置Host、Name、Port

第三步:
Run -> Edit Configurations或者右上角Edit Configurations

进入Run/Debug Configurations,单击左侧加号,添加一个PHP Built-in Web Server内置服务器,如果添加过直接设置相关参数,主要是Host,Port,Document root几个参数。

第四步:建立server后需要run启动,然后右上角单击框框里面的浏览器,正常访问页面即可。
PHP Web Page:字面意思是php页面,默认端口是80。
第一步:如果需要正常打开php网页,就必须先启动php服务器,比如phpstudy,wampserver,xampp等集成环境。
第二步:File->Settings->Languages & Frameworks->PHP->Servers
配置Host、Name、Port

第三步:Run -> Edit Configurations或者右上角Edit Configurations

进入Run/Debug Configurations,单击左侧的+加号,添加PHP Web Page,如果已经添加过可以直接设置相关参数,主要是Server,Start URL,Browser等几个参数。

第四步:右上角单击Run或者Debug,正常访问页面即可。