I want to upload files through a web application and it works as long as the files are under 8 mb. But anything greater gives the following error in the Apache error log:
POST Content-Length of 8593520 bytes exceeds the limit of 8388608 bytes

In php.ini I have:
file_uploads = On
upload_max_size = 20M
memory_limit = 128M
post_max_size = 25M

And in httpd.conf:
LimitRequestBody 20971520

Where and what do I have to change to get this working?

consult ur sever!may be they are not allowing more 8mb.

There are a number of specialist websites that will cope with more than 8mb but I believe mrniceguy is correct in that most ISP's will not pass more than 8mb.
The specialist sites require both end of the line sender and receiver to connect (not simultaneously!) to pass the data through.
M

The server (Apache 2.2.8) is managed by me.

Changed max_execution_time and max_input_time (both in php.ini) to 300. Then I did stop the server, waited for a minute or so (cheked to see it is really gone), and started the server again. (instead of httpd restart).

Now it is working.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.