Disable PHP Functions
Choose which PHP functions are blocked for each hosted website, to stop hacked or careless code from running commands on your server.
| Location | Home » Security » Disable PHP Functions |
| Category | Security |
| Required fields | None |
| Command line | /go/disablefunctions |
| Last updated | 2026-11-23 |
On this page: Overview · Quick start · Columns · Actions · Troubleshooting · Details · See also
Overview
Disable PHP Functions lists every website on your server with a text box holding its disable_functions value. This is a PHP setting that blocks the listed functions, so a site's code can't call them. Blocking functions that run system commands limits what an attacker can do if a site is hacked. In one page you can:
- see which functions are blocked for each website
- add or remove functions for one website
- search and sort the list
[!WARNING] Blocking a function that a website needs breaks that feature. Make small changes and test the website after each one.
Quick start
- Go to Security » Disable PHP Functions.
- Find the website. Use the search box if the list is long.
- Edit the Disable Functions box. Separate function names with commas and no spaces.
- Click outside the box, or press Tab, to save.
- Open the website and test it.
Columns
| Column | Sortable | Notes |
|---|---|---|
| Domain | Yes | The website's domain. Click it to open the site in a new tab. Click the heading to sort. |
| Disable Functions | Yes | A text box with a comma-separated list of blocked functions. Click the heading to sort. |
The footer shows Showing X of Y records.
Default list
Each website starts with the same list of blocked functions:
exec,mail,passthru,pcntl_exec,popen,proc_close,proc_get_status,proc_open,proc_terminate,shell_exec,system
| Function | What it does in PHP |
|---|---|
exec, passthru, shell_exec, system |
Run commands on the server. |
popen, proc_open, proc_close, proc_get_status, proc_terminate |
Start and control other programs. |
pcntl_exec |
Replace the PHP process with another program. |
mail |
Send email through the server's local mail program. |
Actions
| Action | Where | What it does |
|---|---|---|
| Search | Search box above the table | Filters the list as you type. Suggestions appear as you type. |
| Sort | Column headings | Click Domain or Disable Functions to sort. |
| Edit list | Disable Functions box | Change the list. It saves as soon as you leave the box. There is no Save button. |
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| A contact form or password reset email isn't sent | mail is in the blocked list, so the site can't use PHP's mail(). |
Configure the site to send through SMTP, or remove mail from the list for that website. |
| A script or plugin fails with "Call to undefined function" or "disabled for security reasons" | It uses a blocked function such as exec or shell_exec. |
Remove only that function from the list for that website, if you trust the code. |
| A change doesn't seem to apply | PHP is still running with the old settings. | Reload PHP-FPM with /go/fpm or from PHP-FPM, then test again. |
| The list contains spaces or odd characters | The list was typed with spaces or a bad separator. | Use commas only, with no spaces. |
| A website is missing from the list | The search box has text in it. | Clear the search box. |
Details
Change from the Command Line
Every admin action in GoAdmio is also available as a /go/... command. To show, set, or clear the disable_functions setting, use the disablefunctions command:
/go/disablefunctions
The command changes the setting in every php.ini file on the server, while this page changes it for one website at a time. For the full syntax, arguments, and examples, see the command reference: https://www.goadmio.com/commands/disablefunctions
Related PHP commands
| Command | Description |
|---|---|
/go/allowurlfopen |
Read or set PHP allow_url_fopen |
/go/allowurlinclude |
Read or set PHP allow_url_include |
/go/displayerrors |
Show or set PHP's display_errors |
See also
| Page | Description |
|---|---|
| Open Basedir Settings | Limit the folders PHP can access |
| PHP-FPM Manager | Manage PHP-FPM settings |
| PHP Configuration | Edit PHP settings |
| ClamAV Antivirus | Scan sites for malware |
| Email Rate Limits | Limit outgoing email |
| Spammers | Find accounts that send spam |