Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Sep 2010
    Posts
    15

    Wink Is possible to set individual PHP config for each Cpanel Linux user?

    Dear Sir,

    As subject, is possible to set individual PHP config for each Cpanel Linux user in a same linux server?

    Thank you.

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Is possible to set individual PHP config for each Cpanel Linux user?

    If you are using suPHP, then you can copy the existing php.ini in /usr/local/lib/php.ini to each user's account. You can also set up that php.ini to be used as a default that would copy to any new accounts if you place a copy of it in /root/cpanel3-skel/public_html location, since these files are copied into new accounts.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member JoshDylan's Avatar
    Join Date
    Apr 2011
    Location
    Michigan
    Posts
    163
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Is possible to set individual PHP config for each Cpanel Linux user?

    I also think there is a setting somewere, cant remember were off the top of my head, that allows the accounts owner to edit the php.ini. Its a check box to allow it or block it. Most block it as its a secuirty risk.
    ~ Joshua @JoshuaDubinsky
    Check out my site - JoshDylan.com

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Is possible to set individual PHP config for each Cpanel Linux user?

    I'm not aware of any setting that allows an individual php.ini to be edited or not edited by individual account owners. Since DSO doesn't allow individual php.ini files and handles the settings in .htaccess directives, and since CGI and FCGI have different methods to enable individual php.ini files, it would only work with suPHP to place a php.ini onto the account without further configuration required (such as CGI and FCGI need for individual php.ini to work).

    As such, it wouldn't be possible under 4 differing scenarios for how a php.ini can be handled based on the PHP handler to allow the file to be edited or not by individual account users, since in some instances editing it wouldn't do anything.

    Also, there is no setting to allow global editing of the php.ini file by non-root level WHM users. In WHM, there is a PHP Configuration Editor that edits the global php.ini file, but only the root user or any reseller with root WHM level access can edit it.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. php.ini end user config
    By gr8support in forum Feature Requests for cPanel/WHM
    Replies: 21
    Last Post: 05-15-2012, 01:36 AM
  2. How to set individual WHM SSL certs for resellers?
    By Mr. Bob in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-04-2010, 04:02 AM
  3. Replies: 6
    Last Post: 12-10-2009, 11:43 AM
  4. Replies: 6
    Last Post: 12-10-2009, 11:43 AM
  5. How to set cpanel and webalizer.conf for individual sites!
    By eva2000 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-16-2001, 10:25 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube