如果我将 PHP 版本更改为 7.1,Softaculous Ampps 3.8 Apache 无法启动

Softaculous Ampps 3.8 Apache not starting if i change PHP version to 7.1

我最近在 Windows 10 上的 Ampps Software 中遇到一个问题,如果 PHP 版本是 7.1,Apache 会自动停止,但如果我将 PHP 版本改回 5.6,它工作正常

这是 Apache 的错误日志

<pre>

[Mon Oct 22 10:28:12.413768 2018] [mpm_winnt:notice] [pid 12484:tid 684] AH00455: Apache/2.4.27 (Win32) OpenSSL/1.1.0f PHP/5.6.31 configured -- resuming normal operations
[Mon Oct 22 10:28:12.413768 2018] [mpm_winnt:notice] [pid 12484:tid 684] AH00456: Apache Lounge VC15 Server built: Jul  7 2017 11:43:51
[Mon Oct 22 10:28:12.413768 2018] [core:notice] [pid 12484:tid 684] AH00094: Command line: 'apache\bin\httpd.exe -d D:/Ampps/apache'
[Mon Oct 22 10:28:12.417758 2018] [mpm_winnt:notice] [pid 12484:tid 684] AH00418: Parent: Created child process 5924
[Mon Oct 22 10:28:13.307885 2018] [mpm_winnt:notice] [pid 5924:tid 740] AH00354: Child: Starting 64 worker threads.
[Mon Oct 22 10:28:45.068164 2018] [mpm_winnt:notice] [pid 9816:tid 700] AH00455: Apache/2.4.27 (Win32) OpenSSL/1.1.0f PHP/7.1.8 configured -- resuming normal operations
[Mon Oct 22 10:28:45.068164 2018] [mpm_winnt:notice] [pid 9816:tid 700] AH00456: Apache Lounge VC15 Server built: Jul  7 2017 11:43:51
[Mon Oct 22 10:28:45.068164 2018] [core:notice] [pid 9816:tid 700] AH00094: Command line: 'apache\bin\httpd.exe -d D:/Ampps/apache'
[Mon Oct 22 10:28:45.070158 2018] [mpm_winnt:notice] [pid 9816:tid 700] AH00418: Parent: Created child process 15180
[Mon Oct 22 10:28:47.563384 2018] [mpm_winnt:crit] [pid 9816:tid 700] AH00419: master_main: create child process failed. Exiting.

</pre>

我没有更改任何东西或安装任何新东西,我重新安装了很多次并尝试了 XAMPP 它工作正常

谢谢。

按照此处的指南尝试更改 AMPPS 使用的 php 版本 -> http://www.ampps.com/wiki/How_to_change_php_version

在 AMPPS 控制面板中,select 选项然后 select 更改 php 版本。更改后的版本现在应该显示在控制面板中。

以管理员身份尝试运行httpd.exe,它成功了。

C:\Program Files (x86)\Ampps\apache\bin

它通过为我禁用 Ioncube 加载器扩展来解决,感谢所有回复

我知道这已经 4 个月大了,但我在 windows 上遇到了 PHP 的重大问题,今天我解决了这个问题。

AMPPS - 如果不将可执行文件更改为 运行 作为管理员模式,它不会 运行 PHP 7.1。 Apache 将终止而不会出现错误。我相信这是因为即使 AMPPS 在管理员权限中 运行ning,当它是 运行 时,这些也不会授予 php.exe。转到 php.exe 的文件位置,右键单击并单击属性,单击兼容性选项卡和 select 复选框“运行 作为管理员”。对 apache->bin->httpd.exe 下的 httpd.exe 做同样的事情。 (不确定 httpd 权限更改是否重要,但我做到了并且有效。)

运行 AMPPS,希望像我一样,您的 php/apache 问题已经解决。

我按照以下步骤解决了我的问题:

我将PHP版本切换到5.6,一切正常, 然后去了这个 URL:

http://localhost/ampps/index.php?

我发现了一些可用的更新 页面顶部的通知 url 页面栏下方 如果您看到 php 7.0 7.1 可用的更新... 90% 你会像我一样解决这个问题 我尝试更新所有可用的更新

然后重启ampps应用 现在使用 PHP 7.1 很棒。

我希望它也对你有用。

有点晚了,但由于我已经使用 Ampps 5 年了,我为我的常见错误提供了类似的解决方案,也许有人会觉得它有用。

  • 如果您在 "httpd.conf" 中更改了 Document Root 路径,请确保该文件夹仍然存在。

  • 如果您看到有关 InnoDB 文件的日志,请按照路径删除该转储文件和日志。

  • 如果您在日志文件中遇到此错误 "master_main: create child process failed":

    将 PHP 版本更改为 7.1 并试试这个:

    打开 AMPPS 面板 --> PHP --> 配置。

    搜索以下行并通过添加“;”对其进行注释在行首:zend_extension="{$path}\php-7.1\ioncube_loader_win_7.1.dll"