Skip to main content

How to enable disabled PHP functions in Hostinger

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

Updated yesterday

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:

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

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

Did this answer your question?