升级到PHP版本7后,我得到XAMPP Apache Server错误 [英] After Upgrading to PHP Version 7 i get XAMPP Apache Server Error

查看:238
本文介绍了升级到PHP版本7后,我得到XAMPP Apache Server错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了最新的Xampp,并且想将PHP版本升级到PHP 7. 所以我从..下载了PHP7.
http://windows.php.net/download#php-7.0
VC14 x86线程安全Zip文件
下载后,我将zip解压到自定义文件,并将完整的php文件和文件夹替换为
xampp/php和新的php文件
对于php 7,我更改了
xamp \ apache \ conf \ extra \ httpd-xampp.conf
所以我的新httpd-xampp.conf是

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"

现在,当我启动Xampp Server时,它给我错误..

Now When i start Xampp Server its give me Error..

错误:

Apache意外关闭. 这可能是由于端口受阻,缺少依赖项, 特权不当,崩溃或通过其他方法关闭. 按日志"按钮查看错误日志并检查 Windows事件查看器以获取更多线索 如果您需要更多帮助,请复制并发布此内容 论坛上的整个日志窗口

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

推荐答案

我的系统类型是基于x64的PC,但是与XAMPP一起安装的PHP是x86(由phpinfo()结果确定).仅通过验证我的系统类型,我试图下载x64的线程安全版本,而XAMPP失败并出现相同的错误.然后,在下载x86线程安全版本后,XAMPP服务器重新启动而没有任何问题.希望这对某人有帮助.

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.

这篇关于升级到PHP版本7后,我得到XAMPP Apache Server错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆