Uploading more than 30MB to Apache server

Hey experts,

  I am uploading a file to an Apache server; my file is more than 30 MB. I am using PHP's move_uploaded_file function to upload the file., but it's not working....any idea why and how can I solve it if possible??
LVL 3
mte01Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

caterham_wwwCommented:
Check the following php.ini settings:

post_max_size
upload_max_filesize
memory_limit

while post_max_size must be higher than upload_max_filesize and memory_limit must be higher than post_max_size.

For Apache, check if the directive LimitRequestBody is used in your httpd.conf (if not, the request body should be unlimited per default).
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mte01Author Commented:
sorry this didnt work... and i didnt find the variable LimitRequestBody in the httpd.conf file
any idea why??
0
rama_krishna580Commented:
Hi,

You have to put an .htaccess file in the same dir as my upload script and put in the line:
LimitRequestBody 367001600

i hope it may help you

R.K
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

periwinkleCommented:
Also check max_execution_time and max_input_time; see:

http://us2.php.net/manual/en/features.file-upload.common-pitfalls.php
0
periwinkleCommented:
Which version of Apache are you running?  Apparently, this might be in something like:

/etc/httpd/conf.d/php.conf

for certain Redhat versions.
0
ahoffmannCommented:
please check your erro_log and post relevant messages
0
gheistCommented:
any error from apache error log?
0
mte01Author Commented:
guys,...I'll be trying this tomorow, and I'll inform you of the results...
0
mte01Author Commented:
hi again, there is nothing at all in the log files.
LimitRequestBody 367001600 in the .htaccess didn't change anything

i am using windows server 2003 and wamp server 5,
thanks for the efforts.
Best,  
0
gheistCommented:
WAMP Version?
0
mte01Author Commented:
WAMP5
version: 1.4.5
Best
0
gheistCommented:
in php.ini change upload_max_filesize and post_max_size to your preference.
make sure post_max_size is smaller than memory_size.
0
mte01Author Commented:
Hi gheist
this was already proposed by caterham_www, dont know if you mean by memory_size the memory_limit for i didnt find the variable memory_size in the PHP.ini file
guys, do u think that the problem can be caused by a firewall or some settings in the computer's operating system? (win server 2003)

thanks
0
ahoffmannCommented:
> do u think that the problem can be caused by a firewall or some settings in the computer's operating system?
i.g. yes
as already suggested, I'd first check the web server configuration and the web server log files, then trace the problem down to the OS or up to the application (PHP)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.