You may wish to modify your helpdesk's PHP configuration to increase your helpdesk's maximum upload size, or increase the memory limit for a custom app. This is possible to do within your OPC webgui within your Web configuration.
Deskpro uses PHP-FPM, so there are 2 configurations, one for the PHP-FPM pools, and another for PHP itself.
Via the Webgui
Within your Instance page, select Web within the Services section.

This page will list your current PHP and PHP-FPM configuration, and at the top of the page you have the option to modify these configurations.

For the PHP Custom Configuration, you can just list the changes you would like to make using the php.ini format.

For the PHP-FPM Custom Configuration, you first need to specify the PHP-FPM pool in square brackets []
, then specify the PHP-FPM directives you wish to change under those.

When you click Save at the bottom of these pages, your helpdesk will restart to apply your modified configuration
If you specify an invalid configuration, this may cause your helpdesk to stop responding.
If your helpdesk stops responding after modifying these files, we recommend removing any modifications you have made to the file and saving again to restart your instance.
Recomendations
As well as increasing the size of the max attachment in PHP, you also need to update your webserver to accept larger file attachments. This will need to go into the Nginx.conf file. client_max_body_size 0
Via the CLI
You can create files with your custom PHP and PHP-FPM configurations in the following locations:
PHP
/opt/deskpro/data/instances/{helpdeskID}/services/deskpro/config/php.d/zz_opc_custom.ini copy
PHP-FPM
/opt/deskpro/data/instances/{helpdeskID}/services/deskpro/config/php-fpm.d/zz_opc_custom.conf copy
Once you have created the files, you can apply them by restarting the instance
systemctl restart deskpro@{helpdeskID} copy
You must replace {helpdeskID}
with the ID of your helpdesk in all commands above.
Please log in or register to submit a comment.