Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Enable PHP extensions per domain/account?

Discussion in 'General Discussion' started by Virtus Opstrup, May 31, 2018.

  1. Virtus Opstrup

    Virtus Opstrup Registered

    Joined:
    May 31, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Denmark
    cPanel Access Level:
    DataCenter Provider
    Hi,

    How can I enable a PHP extension like XDebug on a single cPanel account, so it doesn't affect everyone else on the server?

    Right now I can only enable it globally, but then every website takes ~30 seconds to load.

    Any help is greatly appreciated.
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Virtus Opstrup,

    There isn't a supported method of enabling a PECL module on a per-account basis, but you could enable it on a specific PHP version (say PHP version 7.2), and then ensure the account you want it enabled on is the only account using that version of PHP.

    Or, if you are open to using CloudLinux, it offers this feature as part of PHP Selector:

    CloudLinux Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Virtus Opstrup

    Virtus Opstrup Registered

    Joined:
    May 31, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Denmark
    cPanel Access Level:
    DataCenter Provider
    Hi,

    The server is currently running CentOS 7, would I be able to CloudLinux on this server?

    It seems very easy according to this video: [removed]

    Thanks
     
    #3 Virtus Opstrup, Jun 4, 2018
    Last edited by a moderator: Jun 4, 2018
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Yes, you should be able to convert that server to CloudLinux:

    CloudLinux - Supported systems and devices

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice