Custom PHP Settings Plesk

#1
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:

NiteWave

Administrator
#4
not sure PP_CUSTOM_PHP_INI is a right solution for you.

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