如何在本地主机上只更新PHP版本而不更新xamp

如何在本地主机上只更新PHP版本而不更新xamp,php,xampp,Php,Xampp,我尝试下载最新的PHP版本(尝试将PHP从7.0.*更新到7.2.*),并在xamp中替换PHP文件夹并重新启动它。出现以下错误 Error: Apache shutdown unexpectedly. 7:14:41 AM [Apache] This may be due to a blocked port, missing dependencies, 7:14:41 AM [Apache] improper privileges, a crash, or a shutdow

我尝试下载最新的PHP版本(尝试将PHP从7.0.*更新到7.2.*),并在xamp中替换PHP文件夹并重新启动它。出现以下错误

Error: Apache shutdown unexpectedly.
7:14:41 AM  [Apache]    This may be due to a blocked port, missing dependencies, 
7:14:41 AM  [Apache]    improper privileges, a crash, or a shutdown by another method.
7:14:41 AM  [Apache]    Press the Logs button to view error logs and check
7:14:41 AM  [Apache]    the Windows Event Viewer for more clues
7:14:41 AM  [Apache]    If you need more help, copy and post this
7:14:41 AM  [Apache]    entire log window on the forums

如何仅更新PHP版本而不更新XAMP?有可能吗?

你为什么要这样做?只需复制您的htdocs文件夹和php.ini(如果您更改了),然后下载最新的xampp。xampp在哪个端口和操作系统上运行?