Skip to main content

How to restrict all accounts to the global php.ini file.

Comments

4 comments

  • 24x7server
    Hi, If you are using handler as SuPHP on your EA4 PHP, then you can do this the same way, only the suPHP location is changed. You can find it in /etc instead of /opt..
    0
  • sodapopinski
    Ah..thank you very much for the info @24x7server . I will try it. Thank you.
    0
  • cPWilliamL
    Just to follow up on this thread, the path is below:
    # tail -13 /etc/suphp.conf ;Uncommenting these will force all requests to that handler to use the php.ini ;in the specified directory regardless of suPHP_ConfigPath settings. ;[phprc_paths], like suPHP_ConfigPath, is subject to php's PHPRC behavior. ;Before using this mechanism make sure to fully understand the implications ; of doing so: ; https://go.cpanel.net/EA4PHPHandlers#PHPHandlers-Thesuphp.conffile ; https://go.cpanel.net/PHPRC#ThecPanelPHPRCPHPPatchforEasyApache4-SuPHP ;application/x-httpd-ea-php54=/opt/cpanel/ea-php54/root/etc ;application/x-httpd-ea-php55=/opt/cpanel/ea-php55/root/etc ;application/x-httpd-ea-php56=/opt/cpanel/ea-php56/root/etc ;application/x-httpd-ea-php70=/opt/cpanel/ea-php70/root/etc ;application/x-httpd-ea-php71=/opt/cpanel/ea-php71/root/etc
    0
  • sodapopinski
    I got this fixed and understood how does new easyapache4 works ;p Long time never touch cpanel server configuration. Easyapache4 really new than easyapache3. You can mark this tread as solved now. Thank you.
    0

Please sign in to leave a comment.