User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » File Upload Limit Problems Page [1]  
pureetofu
All American
2748 Posts
user info
edit post

I'm configuring a sever running Plesk 9 on CentOS 5 and can't get files to upload via a PHP script over 2 MB.

6/9/2009 3:39:40 PM

Ernie
All American
45943 Posts
user info
edit post

Edit your php.ini file

change upload_max_filesize to whatev.

6/9/2009 3:47:21 PM

pureetofu
All American
2748 Posts
user info
edit post

I changed it to 200M, however anything more than ~5M doesn't upload.

I think I'm hitting a stop with timeout for the upload, but can't figure it out.

6/9/2009 3:51:19 PM

OmarBadu
zidik
25073 Posts
user info
edit post

almost definitely a timeout issue

6/9/2009 3:52:54 PM

pureetofu
All American
2748 Posts
user info
edit post

Current PHP.INI configuration:

; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
;upload_tmp_dir =

; Maximum allowed size for uploaded files.
upload_max_filesize = 250M


Do you think I need to fiddle with Apache?
What's interesting is the PHP.ini file runs as if the file was uploaded, meaning, no timeout shows on my screen.

6/9/2009 3:57:41 PM

Ernie
All American
45943 Posts
user info
edit post

Try changing the value for max_execution_time

[Edited on June 9, 2009 at 3:59 PM. Reason : oh word]

6/9/2009 3:58:24 PM

pureetofu
All American
2748 Posts
user info
edit post

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 300 ; Maximum execution time of each script, in seconds
max_input_time = 600 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M


Maybe this will work.

6/9/2009 4:14:13 PM

pureetofu
All American
2748 Posts
user info
edit post

Okay, changed the limits to above and it STILL doesn't work. (rebooted of course)

Ideas?

6/11/2009 6:38:52 AM

bous
All American
11215 Posts
user info
edit post

tried both ie and firefox?

6/11/2009 9:38:21 AM

Ernie
All American
45943 Posts
user info
edit post

^ Do what?

^^ Can you post the script here? Can you try it on a different server?

6/11/2009 9:47:41 AM

bous
All American
11215 Posts
user info
edit post

have you tried to upload via a browser on the server and see if you get over 5M? i.e. making sure it's just a timeout issue?

have you timed it?

6/11/2009 11:10:41 AM

 Message Boards » Tech Talk » File Upload Limit Problems Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.