Ganesh Mulay
Ganesh Mulay

Reputation: 171

How to increase max_upload_size on apache server

In my application, I want to upload a file more than 500 MB, but it's giving me an error as the file is too big to upload.

I tried different ways to increase max_upload_size in php.ini and through .htacccess

but its increased till 128MB not more than that.

is there any way to increase it more than 500MB

Thanks in advance

Upvotes: 0

Views: 2203

Answers (2)

Mohamed Youssry
Mohamed Youssry

Reputation: 19

I had the same issue before

I tried this plugin to increase it https://wordpress.org/plugins/upload-max-file-size/

and enter image description here

if it's not working you can edit in the htaccess file in WordPress directory and edit the file replacing xx with your preferred value

php_value upload_max_filesize xxM

Upvotes: 0

NikolayNedelchev
NikolayNedelchev

Reputation: 156

To upload large files, post_max_size value must be larger than upload_max_filesize.

memory_limit should be larger than post_max_size

memory_limit > post_max_size > upload_max_filesize

PHP Default: 128M > 8M > 2M

So you can try to increase memory_limit as well if you've increased post_max_size and upload_max_filesize

Upvotes: 2

Related Questions