Dear Sir,
As subject, is possible to set individual PHP config for each Cpanel Linux user in a same linux server?
Thank you.![]()
Dear Sir,
As subject, is possible to set individual PHP config for each Cpanel Linux user in a same linux server?
Thank you.![]()
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
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.
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