If I run some utilities from PHP scripts, for example 'host', but they failed to execute with maximum file descriptors reached error.

Article ID: 1416 
Last Review: Oct,6 2008
Author:
Last updated by: system APPLIES TO:
  • Plesk for Linux/Unix

Resolution

For example if you execute 'host' command from a PHP script (even if you already recompiled PHP and Apache) you get:

host: isc_socket_create: not enough free resources
socket.c:2117: REQUIRE(maxfd <= (int)1024) failed.

The reason of the error is that 'bind-utils' (and another software) are also affected by FD_SETSIZE problem and even if it is not directly related to Apache or PHP they should be recompiled too if some PHP scripts use them. See for more details the article 260.



Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields