简体   繁体   English

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

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

I have a recent problem in Ampps Software on Windows 10, Apache stopping automatically if PHP version is 7.1 but if I change back PHP Version to 5.6 it's working fine 我在Windows 10上的Ampps软件中遇到一个最近的问题,如果PHP版本是7.1,Apache会自动停止,但是如果我将PHP版本改回5.6,它就可以正常工作

and here's the error log for Apache 这是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> 

I didn't change anything or install anything new, and I reinstalled it many times and tried XAMPP it's working fine 我没有进行任何更改或安装任何新东西,并且多次重新安装它并尝试使用XAMPP使其正常运行

Thank you. 谢谢。

通过为我禁用Ioncube loader扩展程序解决了该问题,感谢所有答复

Try changing the php version used by AMPPS by following their guide here -> http://www.ampps.com/wiki/How_to_change_php_version 请按照此处的指南更改AMPPS使用的php版本-> http://www.ampps.com/wiki/How_to_change_php_version

In the AMPPS control panel, select options and then select change php version. 在AMPPS控制面板中,选择选项,然后选择更改php版本。 The changed version should now be displayed in the control panel. 现在应该在控制面板中显示更改的版本。

I know this is 4 months old, but I have had significant problems with PHP on windows and today I got this problem fixed. 我知道这已经4个月大了,但是我在Windows上使用PHP遇到了重大问题,今天我已经解决了这个问题。

AMPPS - It won't run PHP 7.1 with out changing the executables to run as administrator mode. AMPPS-在不更改可执行文件以管理员模式运行的情况下,它将无法运行PHP 7.1。 Apache will terminate without an error. Apache将终止而不会出现错误。 I believe this is because even if AMPPS is running in admin priviledges these are not granted to the php.exe when it is run. 我相信这是因为即使AMPPS在管理员权限中运行,这些文件也不会在运行时授予php.exe。 Go to the file location of php.exe, right click and click on properties, click the compatibility tab and select the check box for 'run as administrator'. 转到php.exe的文件位置,右键单击并单击属性,单击兼容性选项卡,然后选中“以管理员身份运行”复选框。 Do the same for the httpd.exe under apache->bin->httpd.exe. 对apache-> bin-> httpd.exe下的httpd.exe执行相同的操作。 (Not sure if the httpd priviledge change matters but I did it and it worked.) (不知道httpd权限更改是否重要,但是我做到了,它确实起作用。)

Run AMPPS and hopefully like me, your php/apache problems are gone. 运行AMPPS,并希望像我一样,您的php / apache问题消失了。

i solved mine following steps below: 我按照以下步骤解决了我的问题:

i switched PHP version to 5.6 which everything works normally, then went to this URL: 我将PHP版本切换为5.6,一切正常,然后转到以下URL:

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

there i found some updates available notification on top of the page below url bar on the page if you see updates available for your php 7.0 7.1 ... 90% you will resolve this issue like mine i tried update all available updates 在那里,我在页面的URL栏下方的页面顶部找到了一些可用的更新通知,如果您看到可用于您的PHP 7.0 7.1的更新... 90%,您将像我一样解决此问题,我尝试更新所有可用的更新

then restart the ampps app now working with PHP 7.1 great. 然后重新启动现在可与PHP 7.1一起使用的ampps应用程序。

i hope it works for you as well. 我希望它也对您有用。

A bit late but since i've been using Ampps for 5 years , i provide similar solutions for my common errors maybe someone find it useful . 有点晚了,但是自从我使用Ampps已有5年了,我为我的常见错误提供了类似的解决方案,也许有人觉得有用。

  • If you changed Document Root path in "httpd.conf" , make sure that folder still exists. 如果您在“ httpd.conf”中更改了文档根目录路径,请确保该文件夹仍然存在。

  • If you see the logs about InnoDB files, follow the path and delete that dump files and logs. 如果您看到有关InnoDB文件的日志,请遵循路径并删除该转储文件和日志。

  • If you got this error "master_main: create child process failed" in log files : 如果在日志文件中出现此错误“ master_main:创建子进程失败”:

    Change PHP version to 7.1 and Try this: 将PHP版本更改为7.1,然后尝试以下操作:

    Open AMPPS panel --> PHP --> Configuration. 打开AMPPS面板-> PHP->配置。

    Search for the following line and comment it by adding ';' 搜索以下行并通过添加“;”对其进行评论 at the beginning of the line: zend_extension="{$path}\\php-7.1\\ioncube_loader_win_7.1.dll" 在该行的开头:zend_extension =“ {$ path} \\ php-7.1 \\ ioncube_loader_win_7.1.dll”

Try run httpd.exe with as administrator and it worked. 尝试以管理员身份运行httpd.exe ,它可以正常工作。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM