Edit the alt_php.ini file for user
cagefsctl -e USERWhen inside CageFS for the user then run the following:
nano /opt/alt/phpXX/link/conf/alt_php.iniAdd the following to this file:
max_execution_time=300
memory_limit=512M
post_max_size=256M
upload_max_filesize=256MThe above can be pasted between the following two lines:
;>=== Start of PHP Selector Custom Options ===
;<=== End of PHP Selector Custom Options =====Next, exit CageFS for the user:
exitEdit the alt_phpxx.cfg
nano /home/USER/.cl.selector/alt_phpxx.cfgThis is necessary to ensure it has the same limits as the alt_php.ini otherwise the alt_php.ini of the user inside CageFS will be overwritten
Rebuild alt-php-ini
cagefsctl --rebuild-alt-php-iniTo enable higher post_max_size for the whole server, simply add more sizes under post_max_size here:
nano /etc/cl.selector/php.conf