In the fast-cgi configuration, we can create the custom php.ini as per script requirement, so need to enable the specific php function server wide. To enable the custom php.ini for single hosting account refer to the following steps.
1) Copy server mains php.ini under the respective domain cgi-bin directory.
2) Under the cgi-bin directory, create php.fcgi file and insert the following lines.
#!/bin/sh
export PHP_FCGI_CHILDREN=1
export PHP_FCGI_MAX_REQUESTS=10
exec /usr/local/cpanel/cgi-sys/php5
3) Now change the permission for the php.fcgi file.
chmod 755 php.fcgi
4) Create the .htaccess under public_html directory and insert the following code
AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php.fcgi
Now try to change the php values as per your requirement, it will work as per your requirement.