Plesk override PHP-FPM settings

In the case where your server uses the Plesk control panel and your domain in question executes PHP as FPM and you need to override one of Plesk's default settings, i.e.:

  • Login via SSH as root
  • Create the following file:
    /var/www/vhosts/system/[example.com]/conf/php.ini​
    with the following syntax:
    [php-fpm-pool-settings]
    //your custom FPM directives here​
    for example:
    [php-fpm-pool-settings]
    pm.max_children = 25​
    Then run the following command:
    /usr/local/psa/bin/php_settings -u​
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Recursively delete old files in Windows

The following command will recursively delete files older than X number of days: forfiles -p...

FileZilla FTP server recommended settings

Edit -> Settings*Note: settings not explictly mentioned can generally be left as defaults...

MySQL scheduled backups on Linux via CRON

The following commands can be added via crontab.  As-is, they will dump all MySQL databases to a...

Import MS SQL T-SQL script

A MS SQL T-SQL script can be imported via the following command-line: sqlcmd -U db_user -P...

Windows 2003 IIS will not start

Problem: IIS is stopped and trying to start it returns an "IIS admin service not started"...