After Upgrading to PHP Version 7 i get XAMPP Apache Server Error

独自空忆成欢 提交于 2019-12-12 14:40:55

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!