Max Upload limit increase for particular Domain

allisonjclark

Verified User
Joined
Jun 24, 2020
Messages
10
Hello,

I have installed a file sharing script in a website,
In script I am getting message like-

"Important
Maximum upload size on your server currently is set to 100M."

I don't want to change global upload limit, and don't want to increase limit for all users,
But for a particular domain, I want to increase it to about 2GB or above.

I have created a .user.ini in public_html of that domain with following codes -

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

; Maximum size of POST data that PHP will accept.
post_max_size = 2048M

But it's not taking effect, now getting this meesage on website-


Important
Maximum upload size on your server currently is set to 128M.

I tried to increase the limit for than 2GB but it increased to 128M

Kindly let me know correct way to increase upload limit for a particular domain without changing global settings.
Also let me know if I am doing anything wrong.
 
Back
Top