|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-23 09:06 UTC] jani@php.net
[2007-08-23 09:13 UTC] webmaster at lifedit dot com
[2007-08-23 11:41 UTC] webmaster at machostlink dot net
[2007-08-23 12:01 UTC] jani@php.net
[2007-08-23 12:25 UTC] webmaster at machostlink dot net
[2007-08-23 14:13 UTC] jani@php.net
[2007-08-23 15:35 UTC] webmaster at machostlink dot net
[2007-08-23 22:23 UTC] jani@php.net
[2007-08-23 22:25 UTC] jani@php.net
[2007-08-24 02:52 UTC] crrodriguez at suse dot de
[2007-08-24 02:54 UTC] crrodriguez at suse dot de
[2007-08-24 04:47 UTC] webmaster at machostlink dot net
[2007-08-24 15:16 UTC] webmaster at machostlink dot net
[2007-08-30 19:03 UTC] webmaster at machostlink dot net
[2007-09-03 10:53 UTC] jani@php.net
[2007-09-03 12:46 UTC] webmaster at machostlink dot net
[2007-09-03 14:00 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 19:00:01 2025 UTC |
Description: ------------ When using a simple upload form to submit a file, all php4-cgi & php5-cgi processes (parent & children) are killed and server throws "500 Internal Server Error" message. This happens ONLY when filesize is larger then 4KB. Apache error.log from vhost --------------------------- [warn] (35)Resource temporarily unavailable: mod_fcgid: write data to fastcgi server error Apache error.log from main/default server ----------------------------------------- mod_fcgid: process /Volumes/home/www/vhost1/public_html/test.php(2293) exit(communication error), terminated by calling exit(), return code: 0 I am not sure now, after reading other (older) bug reports regarding cgi problems, if this is not an older issue as well!? However, since I could not find many similarities to these posts I decided to file this one. I am running PHP 4.4.7 & PHP 5.2.3 as CGI using mod_fcgid 2.2 and Apache 2.2.4 Reproduce code: --------------- <?php $uploaddir = '/tmp/'; $uploadfile = $uploaddir . basename($_FILES['userfile']['name']); echo '<pre>'; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { echo "File is valid, and was successfully uploaded.\n"; } else { echo "Possible file upload attack!\n"; } echo 'Here is some more debugging info:'; print_r($_FILES); print "</pre>"; ?> <form enctype="multipart/form-data" action="<?=$_SERVER['PHP_SELF']?>" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="30000" /> Send this file: <input name="userfile" type="file" /> <input type="submit" value="Send File" /> </form> Expected result: ---------------- File is valid, and was successfully uploaded. Here is some more debugging info:Array ( [userfile] => Array ( [name] => test.jpg [type] => image/jpeg [tmp_name] => /Volumes/home/www/vhost1/tmp/phpcYOdvd [error] => 0 [size] => 24852930 ) ) Actual result: -------------- Error 500 Internal Server Error ...