PDA

View Full Version : PHP.ini


express
Tue 23rd Oct '01, 8:17pm
Question about uploading attachments.
I am using linux 7.1 and php 4.05, I have setup the following variables in php.ini file on the server
MAX_FILE_SIZE 16 meg
memory_limit = 50M

I can successfully upload files attachments in vbulletin version 2.03 up to 6 meg's no problems.
Anything over that I get this error

The page cannot be displayed
The page you are looking for is currently unavailable. The Web site might be experiencing technical difficulties, or you may need to adjust your browser settings.

Cannot find server or DNS Error
Internet Explorer

Any Ideas how to correct this, I am needing to upload files in the 10 meg range from vbulletin

Using cable modem to upload.

Another note when uploading 6 meg files it crunch's the file takes about 4 to 5 minutes, when uploading anything above 6 meg;s it only crunch's for around 45 seconds and then gives the error above.

simonc
Tue 23rd Oct '01, 11:42pm
I am using the same environment as you.

I have successfully upload attachment file below 15MB has no error. you need to modify PHP and MySQL config. files.

I still founding what problem when I upload file over 15MB and the browser will show me an garbage and I still looking for method to solved this problem.

I hope next version of VB will save the attachment on directory not in SQL database because it caused problem and it make us hard to export and import data. Hope it can give you some hints to solve it temporary.


========================
PHP.ini

post_max_size=100M
upload_max_filesize=100M


========================
my.cnf

set-variable= max_allowed_packet=100M

========================

express
Wed 24th Oct '01, 3:40am
ok thx for the help 1/2 of the problem went away, I have 2 servers trying this own. Made the changes you recommended and one server works great. The other server when uploading crunch's the file but comes back with mysql error and has a page full of garage the file I suppose. Any other suggestions?

Get this stuff on second server

There seems to have been a slight problem with the database. Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.


Database error in vBulletin: Invalid SQL: INSERT INTO attachment (attachmentid,userid,dateline,filename,filedata,vi sible) VALUES (NULL,100,1003904917,'new.zip','PK\0\0\0\0OK+ KP\04,\0\0\0\0raq3.pdfܽٲZ.xOz)֊BFD @.QQ#W̋|Iǐp-3:7:|zZ*b
?_@뢞_ h=f18=#??/Dn??p/N\0_Fb0 E~A[ױ]r޵A=ho~C??T$~ |=*7kHwimiaɿ_Xwlw/7 w\\_Dž4xcF
뮹_X:KUe<Ǣ4Y~wfǙd\"L\\`FΘyp\'#om7*,{#x+jeq NrY*v ɹf)+f2R=\\\'1lf.y [/ iGꁺ-+u,LdM63
5(YXQwfy}- uJ%2bkD1ku,.BG.ܑw@Ht; .YS(vl{Byrm$q̎d8
a]4{>
e6t\0MPuֳMiK]5ta%m
mysql error: MySQL server has gone away
mysql error number: 2006
Date: Tuesday 23rd of October 2001 11:28:38 PM
Script: /vbulletin/newthread.php3
Referer: http://yourdomain.net/vbulletin/newthread.php3?s=&action=newthread&forumid=6

simonc
Mon 12th Nov '01, 2:27pm
Yes.. I got the same problem as you.. so I cannot upload tools which greater then 15MB....

Would any VB developer help us for it.. because file storage is my major function of my web site....

I remember when I use UBB which is no problem when you upload a large file... ( I think because they not store the file in MYSQL server.. ), would you consider to store the file in normal directory?? Thanks....