使用 laragon 切換到 php-5.5.17 時發生錯誤

使用 laragon 切換到 php-5.5.17 時發生錯誤

我正在嘗試配置從下載的 php-5.5.17https://www.php.net/distributions/php-5.5.17.tar.bz2

解壓縮到 laragon/bin/php 並從 laragon 選單切換到 php-5.5.17。

出現此錯誤:

Service Apache can not start. Reason: 
----------------------------------------
AH00526: Syntax error on line 24 of C:/laragon/etc/apache2/fcgid.conf:
Wrapper C:/laragon/bin/php/php-5.5.17/php-cgi.exe cannot be accessed: (720002)The system cannot find the file specified. 

資料夾結構: 在此輸入影像描述

答案1

解決方案:對於我的 php 版本:php-5.5.17-Win32-VC11-x64我試圖找到並下載:httpd-2.4.38-win64-VC11解決apachelounge.com/download/VC11/#google_vignettez了問題。

注意:PHP 需要以二進位形式下載,而不是原始碼。從:https://windows.php.net/downloads/releases/archives/

Visual C++ Redistributable for Visual Studio 2012 Update 4另外,如果需要,請按照您的電腦中的相容安裝。

相關內容