Enable or Disable PHP Functions with CloudLinux's PHP Selector

Cloudlinux offers a convenient PHP Selector application that you can use to enable functions that are normally disabled by default for PHP. Alternatively you can also disable additional PHP functions if required.

These options can be accessed in both DirectAdmin or cPanel, under the "Select PHP Version" application. Below is a quick step-by-step guide on enabling or disabling PHP Functions in your control panel of choice.

Step 1: Accessing the "Select PHP Version" application

  1. Log in to your cPanel or DirectAdmin account.

    One-Click Login for Asura Hosting Customers

    We also allow one-click login through the Client Area 

     

  2. In your hosting accounts dashboard, navigate to the Select PHP Version application.

     In cPanel, this is found under the Software section.

     In DirectAdmin, this is found under the Extra Features section.

Step 2: Enabling or Disabling PHP Functions

  1. Once you have accessed the PHP Selector tool, Navigate to the Options Tab and you will notice a list of disabled PHP functions.

    Image title

  2. Under Disable Functions, simply remove the PHP functions you would like to enable from the list. Alternatively, if you would like to disable a PHP function simply add it to the list after a comma.

Any changes made to the disable_functions list will update your accounts PHP immediately, with nothing else being required to be done on your part.

By default, the following PHP functions are disabled and present within the disabled_functions list:

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
 
  • 0 Users Found This Useful
這篇文章有幫助嗎?

相關文章

Adding Domains and Sub-Domains in cPanel

In confusing fashion, cPanel has removed their old addon/sub-domains sections from the new cPanel...

Issuing a Free SSL Certificate in cPanel

Step 1: Access cPanel Log in to your cPanel account using your credentials. One-Click...

Installing WordPress with Softaculous

Step 1: Log in to your Hosting Account Open your web browser and go to your hosting...

Creating a PHP Info Page

A PHP info page provides detailed information about the PHP configuration and settings on your...