Custom php.ini can be added for making custom changes in memory limits and all for a particular domain

copy php.ini

cp -pr /usr/local/lib/php.ini to /home/user/public_html

now make the custom changes

now php.ini and .htaccess are inside public_html

now edit .htaccess

suPHP_ConfigPath /home/user

Also create an info.php

<?phpinfo();?>

then domain.com/info.php can show the changes

In Litespeed there is difference in setting up custom php.ini values.

Custom Values should be added in .htaccess in a format as shown in example below

php_value memory_limit 128M

php_value max_execution_time 3600

php_value post_max_size 5M

php_value upload_max_filesize 5M