If you have a site on your cPanel VPS that needs a custom php.ini file, you can set that up by following these steps:
- Copy /usr/local/lib/php.ini to the site's Web root folder (public_html). Via SSH:
Code:cp /usr/local/lib/php.ini /home/USERNAME/public_html- Make sure the file is owned by their cPanel user via SSH:
Code:chown USERNAME:USERNAME php.ini- Add the following to the site's ".htaccess" file:
Code:SetEnv PHPRC /home/USERNAME/public_html/php.ini
After you follow those steps, the custom php.ini file will take effect throughout the whole site.
NOTE: In the above examples, replace USERNAME with the actual cPanel username.