Custom php.ini directives ignored with PHP-FPM

HowardE

Member
Aug 8, 2015
20
2
53
Florida
cPanel Access Level
Root Administrator
I have seen similar questions, but i'm not finding the answer for me.

I'm using EA4 with PHP-FPM

I have added some custom directives to the MultiPHP INI Editor in cPanel for the specified account.

Code:
upload_max_filesize = 30M
post_max_size = 30M
max_execution_time = 180
This gets added .user.ini, php.ini, and the same to .htaccess automatically as expected.

I've restarted apache and php-fpm but it doesn't effect the max file upload size (which is what I'm trying to change).

When i check the PHPINFO I don't see that it's parsing those files?

/opt/cpanel/ea-php56/root/etc/php.d/01-ioncube.ini, /opt/cpanel/ea-php56/root/etc/php.d/bcmath.ini, /opt/cpanel/ea-php56/root/etc/php.d/calendar.ini, /opt/cpanel/ea-php56/root/etc/php.d/ctype.ini, /opt/cpanel/ea-php56/root/etc/php.d/curl.ini, /opt/cpanel/ea-php56/root/etc/php.d/dom.ini, /opt/cpanel/ea-php56/root/etc/php.d/ftp.ini, /opt/cpanel/ea-php56/root/etc/php.d/gd.ini, /opt/cpanel/ea-php56/root/etc/php.d/iconv.ini, /opt/cpanel/ea-php56/root/etc/php.d/imap.ini, /opt/cpanel/ea-php56/root/etc/php.d/json.ini, /opt/cpanel/ea-php56/root/etc/php.d/local.ini, /opt/cpanel/ea-php56/root/etc/php.d/mbstring.ini, /opt/cpanel/ea-php56/root/etc/php.d/mcrypt.ini, /opt/cpanel/ea-php56/root/etc/php.d/mysqlnd.ini, /opt/cpanel/ea-php56/root/etc/php.d/mysqlnd_mysql.ini, /opt/cpanel/ea-php56/root/etc/php.d/mysqlnd_mysqli.ini, /opt/cpanel/ea-php56/root/etc/php.d/pdo.ini, /opt/cpanel/ea-php56/root/etc/php.d/pdo_mysqlnd.ini, /opt/cpanel/ea-php56/root/etc/php.d/pdo_sqlite.ini, /opt/cpanel/ea-php56/root/etc/php.d/phar.ini, /opt/cpanel/ea-php56/root/etc/php.d/posix.ini, /opt/cpanel/ea-php56/root/etc/php.d/simplexml.ini, /opt/cpanel/ea-php56/root/etc/php.d/soap.ini, /opt/cpanel/ea-php56/root/etc/php.d/sockets.ini, /opt/cpanel/ea-php56/root/etc/php.d/sqlite3.ini, /opt/cpanel/ea-php56/root/etc/php.d/tokenizer.ini, /opt/cpanel/ea-php56/root/etc/php.d/xml.ini, /opt/cpanel/ea-php56/root/etc/php.d/xml_wddx.ini, /opt/cpanel/ea-php56/root/etc/php.d/xmlreader.ini, /opt/cpanel/ea-php56/root/etc/php.d/xmlwriter.ini, /opt/cpanel/ea-php56/root/etc/php.d/xsl.ini, /opt/cpanel/ea-php56/root/etc/php.d/zip.ini
Any suggestions here on how to make it work?

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463

HowardE

Member
Aug 8, 2015
20
2
53
Florida
cPanel Access Level
Root Administrator
I also noticed in my phpinfo that it correctly shows the correct value in "Local" column - don't know if this helps.

Code:
upload_max_filesize 30M 8M
So this is an open issue with WHM (that PHP-FPM isn't accepting the local values)?

If this is the case... you can close this thread, and I'll follow the other one you refer to and await updates.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
Hello @HowardE,

Could you open a support ticket using the link in my signature so we can take a closer look at the affected system and verify if the issue is related to internal case CPANEL-11563? You can post the ticket number here so we can update this thread with the outcome.

Thank you.