How to include php.ini in .htaccess file?

Hi, 


I want to write a custom php.ini file in WordPress, but not sure how to include a custom php.ini in WordPress. Can someone help me to explain, how we can use a custom php.ini file?

Thanks

Asked 19 Jun, 17 at 04:17 AM

Tim Martin
Php Wordpress

Answer

Hi, 


I was also working on the same issue some time ago and I found the following solution for for this problem. Hope it will work to you too.
Add the following code to you .htaccess file after the Wordpress default .htaccess code:

<IfModule mod_suphp.c>
suPHP_ConfigPath %{DOCUMENT_ROOT}/public_html
</IfModule>

Thanks..

like