|
Posted by Andy Hassall on 02/16/06 23:04
On 15 Feb 2006 19:46:10 -0800, "lawrence k" <lkrubner@geocities.com> wrote:
>Andy Hassall wrote:
>> >Our Linux guy, Matt Clark, checked for errors. He said there were no
>> >errors in the PHP log.
>>
>> That's one log down, then. What about the others?
>>
>> Hint:
>>
>> >>>What reasons, other than the POST limit, would a large upload fail?
>> >>
>> >> Various. Almost all of which produce errors, either in the form of PHP errors,
>> >>Apache errors or the field in $_FILES.
>
>I don't suppose you'd know what these error files are typically called,
>do you? I asked our server guy to send me the PHP error logs and he
>said that PHP had only recently invented server logs, and that I
>probably wanted the syslogs instead. Then he send a whole bunch of
>files, with names like ssl_error_log.1 and suexec_log and error_log.2.
>These have line after line that look like this:
>
>[Mon Jan 09 11:18:38 2006] [error] [client 212.126.96.21] File does not
>exist: /home/httpd/vhosts/default/htdocs/phpMyAdmin-2.6.0-pl1
[snip]
>I don't see anything in here that might tell me why large files are
>failing to upload.
So, do the timestamps in the logfile correspond to times you tried to upload
files?
error_log is the main Apache error log file (by default anyway) and is the
most likely one to contain the answer.
error.log.2 would be an old log file, as further indicated by the timestamps
on the errors you posted being several weeks ago.
Upload a file. Check the end of error_log for new messages.
>I have been able to upload a file of less than 1
>meg, but anything larger than that seems to fail. In FireFox I get a
>"Connection reset by the server" message.
What I'm trying to steer you towards is the Apache error log (which you seem
to have found now, or at least are close), because I bet you have an error in
there similar to:
[Wed Jan 25 23:14:11 2006] [error] [client 192.168.1.14] Requested
content-length of 3191154 is larger than the configured limit of 3000000,
referer: http://server.localhost/~andyh/file_upload.php
This is the most likely cause of the problem I can think of that matches the
symptoms you describe.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|