Skip to main content

Modifying PHP configuration

in Host Configuration
Authors list
Published: Jun 22, 2023|Last updated: Oct 6, 2023

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 Copy link to Via the Webgui to clipboard

Within your Instance page, select Web within the Services section.

image.png

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.

image.png

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

image.png

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.

image.png

When you click Save at the bottom of these pages, your helpdesk will restart to apply your modified configuration

Warning

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 Copy link to Recomendations to clipboard

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 Copy link to Via the CLI to clipboard

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.

HelpfulUnhelpful
next pageUpgrading OPC and instance to a specific version using CLI
previous pageSetting OPC access via a domain

Please log in or register to submit a comment.