Jetserver – The Lazy Admin Blog
Home  /  CloudLinux • cPanel  /  CL PHPSelector – Allow per user php.ini changes

CL PHPSelector – Allow per user php.ini changes

elialum April 12, 2016 Leave a Comment

PHP Selector is a CloudLinux component integrated on top of CageFS.
It allows each user to select a unique PHP version and modules based the user’s needs. PHP Selector requires an active account and CageFS to be enabled.

A cPanel user is allowed to change php.ini settings from his cPanel GUI. However the changes are limited to what CloudLinux permits by default.

You can easily edit Cloudlinux’s settings file and add any needed settings.

Make sure that the user has a cagefs enabled cPanel account.
Login to the server via SSH as root user and edit the following file: “/etc/cl.selector/php.conf”

For this example we’ve added support to the “disable_functions” settings.
Copy & Paste these directives to the beginning / end of the file:

Directive = disable_functions
Default   = curl_multi_exec , dl , exec , passthru , pcntl_exec , popen , posix_kill , posix_mkfifo , posix_setuid , proc_close , proc_open , proc_terminate , shell_exec , system , ftp_exec , leak , posix_setpgid , posix_setsid , proc_get_status , proc_nice , show_source , escapeshellcmd , showsource, symlink, escapeshellarg, escapeshellcmd
Type      = value
Comment   = functions to disable/enable in php

In order to test your changes follow the next steps:

    • Login to the desired cPanel account
    • Select PHP Version
    • Select any PHP version which is not “native”
    • Click on “Switch to PHP Options” (top-right)

The “disable_functions” directive is added and editable..

Selection_113

Tags: cloudlinux, cPanel, php.ini, phpselector
Previous Article
Next Article

About Author

elialum

Related Posts

  • cPanel :: Safely restore an account after enabling NGiNX

    cPanel :: Safely restore an account after enabling NGiNX

    May 23, 2019
  • Jetbackup :: Better safe then sorry

    Jetbackup :: Better safe then sorry

    January 20, 2019
  • cPanel – Preventing users from downloading / restoring accounts

    cPanel – Preventing users from downloading / restoring accounts

    September 16, 2018

Leave a Reply

Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search Our Blog

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Filter by Categories
Apache
CentOS
CloudLinux
cPanel
ESXI
iSCSI
JetBackup
Litespeed
MySQL
NGINX
Reduxio
SSL
Uncategorized
VMware
Wordpress
XEN

Tags

apache aspx backup CentOS cloudlinux cPanel CXS freetds google htaccess iscsi JetBackup Libmodsecurity litespeed modsec modsecurity mssql MySQL netapp nginx odbc php php.ini phpselector VMFS WHM xenserver

Popular Posts

  • Allow a cPanel server to run a VHOST from multiple IP addresses April 3, 2018
  • How To Install & Configure a Galera Cluster with MySQL on Centos 7 February 6, 2018
  • Libmodsecurity installation April 14, 2016
  • JetBackup Cheat Sheet :: Automatically Acknowledge Alerts November 15, 2018

Recent Posts

  • Building your own private cloud April 20, 2021
  • Dealing with aggressive bot scanners September 14, 2020
  • Litespeed Geo Location Redirect September 14, 2020
  • JetBackup :: Restore on steroids ! August 21, 2020

Recent Comments

  • Khan on Allow a cPanel server to run a VHOST from multiple IP addresses
  • Khan on Allow a cPanel server to run a VHOST from multiple IP addresses
  • Oleg Drabkin on Allow a cPanel server to run a VHOST from multiple IP addresses
  • Khan on Allow a cPanel server to run a VHOST from multiple IP addresses
  • Daniel on How To Install & Configure a Galera Cluster with MySQL on Centos 7
אחסון אתרים | JetApps