PDA

View Full Version : Large Attachment problem



fredtp
Thu 20th Jul '06, 4:34pm
I've gone through posts and made all the php.ini changes to allow posting of large attachments including memory, max upload, etc...i'm able to upload files of up to about 8MB, bigger than that i get internal server error. other php scripts are able to upload larger files with no problem.
the file i was uploading was called test.zip

i'm receiving the following error messages:

in file error_log:
[20/Jul/2006:19:14:59 +0000] [error] [client 65.34.37.191] File does not exist: /usr/home/nsuasd/www/htdocs/forum/images/attach/ppt.gif
[20/Jul/2006:19:22:15 +0000] [error] [client 65.34.37.191] Premature end of script headers: /usr/local/apache/global-bin/php.cgi

in file script.error_log:
FATAL: emalloc(): Unable to allocate 13918229 bytes

here's what i have set in php.ini:
max_execution_time = 400
max_input_time = 600
memory_limit = 1024M
post_max_size = 240M
upload_max_filesize = 120M

mySql packet size is set to 240MB
attachment storage is in file system

I have no plugins installed and no modifications have been made to vbulletin code.

any help is appreciated, thanks
Fred

Steve Machol
Thu 20th Jul '06, 7:09pm
Are you running PHP as CGI? This is a CGI issue.

[20/Jul/2006:19:22:15 +0000] [error] [client 65.34.37.191] Premature end of script headers: /usr/local/apache/global-bin/php.cgi

fredtp
Thu 20th Jul '06, 7:28pm
how would i be able to tell whether it's run as cgi? i'm on shared hosting by verio. if this is the problem, can it be resolved?
thanks

Steve Machol
Thu 20th Jul '06, 7:30pm
You'll need to contact Verio about this. The problem appears to be in their script: php.cgi

fredtp
Fri 21st Jul '06, 3:10pm
if this is a problem with verio's script, wouldn't it affect any php script? this issue only occurs with vbulletin, not other scripts.

Steve Machol
Fri 21st Jul '06, 3:12pm
Since php.cgi is not a vB script or file, it seems to me that Verio would be in a better position to answer any questions related to it. :)

fredtp
Fri 21st Jul '06, 5:52pm
i wish verio was more forthcoming with tech support....would any of these mySql variables affect attachment uploading?

bdb cache size = 8388600
innodb buffer pool size = 8388608
these seem to be set to exactly the maximum file size i'm able to upload in bytes. i have access to mysql through phpmysql but i haven't been able to find the syntax to modify these.

thanks for your continued help,
Fred