The Lazy Admin Blog

Home  /  CloudLinux • cPanel  /  CL PHPSelector – Allow per user php.ini changes

CL PHPSelector – Allow per user php.ini changes

April 12, 2016 CloudLinux, cPanel 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

Related Posts

  • Convert JetBackup to cPanel structure

    Convert JetBackup to cPanel structure

    October 6, 2022
  • Enable TLS 1.1/1.0 on cPanel servers

    Enable TLS 1.1/1.0 on cPanel servers

    September 30, 2022
  • cPanel :: Safely restore an account after enabling NGiNX

    cPanel :: Safely restore an account after enabling NGiNX

    May 23, 2019

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
Emails
ESXI
iSCSI
JetBackup
Linux
Litespeed
MySQL
NGINX
Oracle
Reduxio
Security
SSL
Uncategorized
VMware
Wordpress
XEN

Tags

apache aspx backup bash CentOS cloudlinux cPanel CXS Emails freetds google htaccess IMAP InnoDB iscsi JetBackup Libmodsecurity litespeed modsec modsecurity mssql MySQL netapp nginx odbc Oracle php php.ini phpselector rsync ssh ssmtp systemd threads VMFS WHM Wordpress xenserver

Popular Posts

  • Convert JetBackup to cPanel structure October 6, 2022
  • How To Install & Configure a Galera Cluster with MariaDB on Centos 7 February 6, 2018
  • Allow a cPanel server to run a VHOST from multiple IP addresses April 3, 2018
  • rsync without prompting for password October 10, 2022

Recent Posts

  • Understanding Why More Threads Can Sometimes Slow Down Performance October 9, 2024
  • Set up a new systemd service May 18, 2024
  • Bash Arrays November 7, 2023
  • rsync without prompting for password October 10, 2022

Recent Comments

  • Sven on rsync without prompting for password
  • TheLazyAdmin on rsync without prompting for password
  • Sven on rsync without prompting for password
  • TheLazyAdmin on Convert JetBackup to cPanel structure
  • Chris on Convert JetBackup to cPanel structure
Privacy Policy • Contact