Question
How do you add the post_max_size and upload_max_filesize options seen in cPanel when using PHP Selector options?
Answer
- Log in to the server via SSH as the 'root' user
- Open
/etc/cl.selector/php.confin your preferred text editor Search for post_max_size and change the default if desired, and add the desired values to the RANGE line, for example, change:
CONFIG_TEXT: Range = 2M,4M,8M,16M,32M,64M,128M
and add 1G:
CONFIG_TEXT: Range = 2M,4M,8M,16M,32M,64M,128M,1G
Note: The same can be done for upload_max_filesize and memory_limit as well
After saving the file with the desired changes, run the following command to force update CageFS:
# /usr/sbin/cagefsctl --force-update
- The adjustment should now be seen in cPanel under PHP Selector
Comments
0 comments
Article is closed for comments.