How to Enable Disabled PHP Functions in Hostinger

Enabling PHP functions, which are disabled by default: system, exec, shell_exec, and others

Updated 2 weeks ago

Some PHP functions on our Web and Cloud hosting plans are disabled by default in concern of your website security. However, some of them can be enabled manually:

system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, escapeshellcmd, apache_child_terminate, virtual, mb_send_mail 

To enable any of these functions, go to Websites Manage, search for PHP Configuration on the sidebar and click on it:

Hostinger hPanel Advanced menu with PHP Configuration highlighted

Open the PHP options tab, and scroll to the disableFunctions section:

Hostinger PHP options with disableFunctions field highlighted

All you need to do is remove the needed function from the list and save changes. Your PHP function will start working after this 😊