Php upload_max_filesize per user override syntax?

Magistar

Verified User
Joined
May 31, 2014
Messages
105
Hi, I am running apache with php-fpm and for a user on 7.3 I need to change upload_max_filesize to 2000MB.

As far as I remember I can go to custom httpd and then change the php-fpm 7.3 |CUSTOM2| field to include:

Code:
upload_max_filesize = 2000M

So I am talking about https://directadminserver/CMD_CUSTOM_HTTPD?user=x&php-fpm=7.3

However when I do this the syntax fails. I tried a few different things includin php_value but it keeps failing. Can someone help me remember how to configure this?
 
php-fpm, please use ".user.ini" for change directive value


for customize from your mention, it must custom on "php-fpm" page, not on httpd.
 
Hi,

honestly I have never used .user.ini but I tried it and in public_html it seems to work :). This does create a consern though as this means that any user could set php memory to like 5000MB. Can this be prevented?
 
normally I hard set limit of "memory_limit" with template


like in file".custom2" with content
Code:
php_admin_value[memory_limit] = 128M

and disable this feature for prevent duplicate setting.

if you have Propack, just limit memory usage from package.

###UPDATE
I forgot to post relative link that I disabled feature.
 
Last edited:
The correct value should be added in the users global custom2 field and reload php afterwards

Code:
php_value[upload_max_filesize] = 2G
 
Back
Top