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

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

    Enable TLS 1.1/1.0 on cPanel servers

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

    cPanel :: Safely restore an account after enabling NGiNX

    23rd May 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 6th October 2022
  • How To Install & Configure a Galera Cluster with MariaDB on Centos 7 6th February 2018
  • Allow a cPanel server to run a VHOST from multiple IP addresses 3rd April 2018
  • rsync without prompting for password 10th October 2022

Recent Posts

  • Understanding Why More Threads Can Sometimes Slow Down Performance 9th October 2024
  • Set up a new systemd service 18th May 2024
  • Bash Arrays 7th November 2023
  • rsync without prompting for password 10th October 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