警告:exec():无法在PHP中fork [英] Warning: exec(): Unable to fork in PHP

查看:175
本文介绍了警告:exec():无法在PHP中fork的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在windows server 2008上使用php 5 apache,我已禁用IIS。

I'm using php 5 apache on windows server 2008, I have disabled IIS.

我使用exec命令在我的PHP脚本,它是工作罚款
但今天我得到一个错误:

I m using exec command in my PHP script and it was working fine but today I got an error:

Warning: exec(): Unable to fork 

我在 C中授予 cmd.exe 的权限:\Windows \System32 文件夹
,但这没有解决问题。

I gave permissions to cmd.exe in C:\Windows\System32 folder but this did not fix the problem.

推荐答案

p>在64位窗口(例如server 2008)中,一个名为c:\windows \syswow64的文件夹包含32位应用程序所需的所有可执行文件/ dll。安装在64位机器上。
确保您需要的32位.exe / dll等放置在该文件夹中。
如果你不能找到它,你将不得不把一个32位版本的所需的.exe / dll
there.So这可以使用yopur app / process。

In 64-bit windows (e.g server 2008), theres a folder named c:\windows\syswow64, that contains all executables/dll, that are required by a 32 bit app. installed on your 64-bit machine. Make sure your required 32-bit .exe/dll etc is placed in that folder. if you cant find it there you will have to put a 32-bit version of the required .exe/dll there.So this can used by yopur app/process.

现在,当您的32位应用程序/进程执行时,Windows将自动重定向您的进程以在syswow64文件夹中执行所需的应用程序。

Now when your 32-bit application/process executes, windows will automatically redirect your process to execute required app in syswow64 folder.

希望应解决您的兼容性问题。

Hopefully that should resolve your compatibility issue.

这篇关于警告:exec():无法在PHP中fork的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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