Sun

How to enable PHP ‘disabled_functions’ on cPanel

  1. Home
  2. Knowledge Base
  3. Hosting
  4. cPanel
  5. Web Hosting
  6. How to enable PHP ‘disabled_functions’ on cPanel

In some cases, websites, plugins, or their modules might need something like ‘symlink’ or a ‘proc_open’, ‘proc_close’ function. By default, shared hosting has some of these PHP functions disabled for security purposes. Leaving them enabled by default is considered vulnerable. You can enable them manually following the tutorial:

Connect to your cPanel and find the ‘Select PHP Version’ menu.

On PHP Selector menu, choose ‘Options’.

Now, in order to Enable these functions or one of them, you need to remove it from this list. It could be done as simply as deleting the function from it.

Example. If I need to enable the ‘symlink’ function, I simply remove it and the list would look like this:

You can see the ‘symlink’ is no longer on the list ‘disable_functions’ – this means the function is enabled from now on.

Note. The list of these functions you can enable is below:

link;
symlink;
exec;
passthru;
proc_close;
proc_get_status;
proc_open;
shell_exec;
system;
popen;
pclose

Was this article helpful?

Related Articles