custom php.ini in EA4/Apache 2.4
Hi
I'm trying to get custom php.ini to work using .htaccess and read various threads in the form but couldnt get it to work
I use EA4/Apache 2.4/PHP56
in .htaccess I added:
------------
suPHP_ConfigPath /home/user/public_html
order allow,deny
deny from all
SetEnv PHPRC /home/user/php.ini
--------------
result of /usr/local/cpanel/bin/rebuild_phpconf --current:
DEFAULT PHP: ea-php56
ea-php56 SAPI: suphp
Thanks.
-
Hello @webnix The following documentation may be useful for you: PHP Handlers - EasyApache 4 - cPanel Documentation The cPanel PHPRC PHP Patch for EasyApache 4 - EasyApache 4 - cPanel Documentation 0 -
Thank you. checked it but really still lost, things with EA3 were very easy, but will keep trying. Regards. 0 -
Hi @webnix The biggest difference for EA3/EA4 is EA4 suPHP config path needs to point to a FULL php.ini are you doing that? 0 -
yes.. my .htaccess is as you see above.. but it didnt work Thank you. 0 -
Hello @webnix I think maybe there's a misunderstanding. I can see that the suPHP config path points to a php.ini what I'm trying to explain is that the php.ini it points to needs to be a full and complete php.ini. Before EA4 you could just add directives that were different from the global into the local php.ini 0
Please sign in to leave a comment.
Comments
5 comments