问题
I have latest Xampp installed and i want to upgrade PHP version to PHP 7.
so i downloaded PHP 7 from..
http://windows.php.net/download#php-7.0
VC14 x86 Thread Safe Zip file
After downloading i extracted zip to custom file and replace full php file and folder to
xampp/php with new php file
for php 7 i changed
xamp\apache\conf\extra\httpd-xampp.conf
so my new httpd-xampp.conf is
LoadFile "E:/xamp/php/php7ts.dll"
LoadFile "E:/xamp/php/libpq.dll"
LoadModule php7_module "E:/xamp/php/php7apache2_4.dll"
Now When i start Xampp Server its give me Error..
Error:
Apache shutdown unexpectedly. This may be due to a blocked port, missing dependencies, improper privileges, a crash, or a shutdown by another method. Press the Logs button to view error logs and check the Windows Event Viewer for more clues If you need more help, copy and post this entire log window on the forums
回答1:
My system type was x64-based PC, but the PHP that was installed along with XAMPP was x86 (identified from phpinfo() result). Just by verifying my system type, I was trying to download thread-safe version of x64 and XAMPP failed with same error. Then after downloading x86 thread-safe version, XAMPP server restarted without any issue. Hope this helps someone.
回答2:
check spelling in pathing: xamp > xampp check pathings are correct. xampp assume it is located in the root.
After installing the new version with php 7, I had to manually go through all conf. files and correct the pathings.
Still loading those files.
Also the my.ini from mysql.
回答3:
From here you can download the XAMPP with PHP 7 https://www.apachefriends.org/download.html
回答4:
I had the error in LoadModule php7_module "D:/xampp/php/php7apache2_4.dll"
line. make sure it is php7_module
来源:https://stackoverflow.com/questions/37182297/after-upgrading-to-php-version-7-i-get-xampp-apache-server-error