Search Our Database

How to Disable Global Variable Registration in DirectAdmin (Evolution Skin)

Last updated on |
by

Introduction

PHP register globals is a deprecated and dangerous feature that automatically creates global variables from external input, and ensuring this setting remains disabled is essential for maintaining secure PHP applications. Disabling register globals prevents security vulnerabilities where attackers can manipulate script variables through URL parameters or form data, protecting your applications from variable injection attacks. DirectAdmin’s PHP Settings interface provides a straightforward method for explicitly disabling register globals through custom PHP overrides. This guide explains how to disable register globals using the Account Manager > PHP Settings section in DirectAdmin, ensuring your PHP environment maintains modern security standards by requiring proper variable access through superglobals.

Prerequisites

  • Access to DirectAdmin control panel with the necessary permissions.

 

Step-by-step Guide

Step 1: Access DirectAdmin

Log in to your DirectAdmin control panel.

 

Step 2: Access PHP Settings

Go to the Account Manager section and click on PHP Settings.

 

Step 3: Disable Global Variable Registration

Scroll down to the Add New Override section. From the Setting drop-down menu, select register_globals. From the Value drop-down menu, select Off. Then, click Add on the bottom right.

Important note: Keep this “Off.” Turning this on is a major security risk that allows hackers to easily overwrite internal script variables via a simple URL.

 

Step 4: Verify the changes

You may confirm the new override settings in the updated PHP Settings table. Variables now must be accessed properly through superglobals.

 

Conclusion

Disabling PHP register globals through DirectAdmin’s PHP Settings interface is a simple process that maintains critical security protections for your applications. Keeping this setting “Off” prevents dangerous variable injection vulnerabilities and ensures your code follows secure variable handling practices by requiring proper access through PHP superglobal arrays.

Should you have any inquiries about the guidelines, please feel free to open a ticket through your portal account or contact us at support@ipserverone.com. We’ll be happy to assist you further.