Custom PHP Settings Plesk

Discussion in 'PHP' started by Wolf B, Mar 26, 2017.

  1. Wolf B

    Wolf B New Member

    I have the following PHP settings set in Plesk:
    upload_max_filesize = 2048M
    max_file_uploads = 50
    post_max_size -2048M
    max_input_vars = 10000
    max_input_time = 60
    memory_limit = 512M

    But they do not appear to be working. For example, upload_max_filesize is set to 2048M, but in my WordPress sites, max upload size is still the default 2M.

    I just set up Litespeed tonight. Previously I was using Apache and these settings worked fine. They only stopped working after installing Litespeed using the Plesk Litespeed extension.

    PHP Version: 5.6.30
    Handler: FastCGI
    Plesk Version: 17.0.17
    OS: Ubuntu 16.04
    Dedicated Server config:
    Main Hard Drive 120GB SSD
    2nd Hard Drive 250GB SATA
    RAM 16GB RAM
    Dual Intel Xeon 5150

    I did find that I can add the following limes to to the "Additional Apache Directives" under Apache and Nginx Settings:
    php_value upload_max_filesize 2048M
    php_value post_max_size 2048M

    And get the desired result there. And I know I cam place most php directives in a similar fashion. But I prefer to do things the RIGHT way and add them to the PHP settings directly.

    Any help would be much appreciated.
    Oh, and the PHP info page also does not reflect the custom settings.
    Last edited: Mar 26, 2017
  2. NiteWave

    NiteWave Administrator

  3. Wolf B

    Wolf B New Member

    Yes i already read that. It talks about php versions but does not discuss php settings. Not really helpful.
  4. NiteWave

    NiteWave Administrator

    not sure PP_CUSTOM_PHP_INI is a right solution for you.

    I copied from an internal wiki FYI:
    vi /var/www/vhosts/system/, add
    <IfModule Litespeed>
    SetEnv PP_CUSTOM_PHP_INI /usr/local/lsws/lsphp5/lib/php.ini
  5. JonhWick

    JonhWick New Member

    I also get this error, but I temporarily do not use LiteSpeed
  6. Jon K

    Jon K Administrator Staff Member

    Hi Wolf, Where do you set these settings inside of your Plesk?

Share This Page