How to Customise Your PHP Settings - allow_url_fopen, register_globals etc

Warning: The current PHP settings should only be altered if specifically required by your software!

Enabling these options can make it easier for a hacker to gain access to your files and possibly even your database if a security hole already exists within any PHP software installed on your account.

Even the latest PHP software is vulnerable to exploits. Altering the PHP settings from their current values can make any security holes easier for a hacker to exploit. 

How to change these and other PHP settings.

Login to cPanel, you can do this by going to 'My Services' -> 'View Details.

Once logged in to go 'Select PHP Version' under the 'Software' section, from this page click the 'Options' link towards the top of the page.

You can change many common PHP settings from here. Simply change the settings required and press Save.

If the setting you need to change isn't listed, then you will need to open a ticket and let us know what setting you wish to change - we can then add it to the list to allow you to alter the setting.

Notes: You cannot modify php settings using 'htaccess' or php.ini files due to security measures in place on the server. Trying to use these files will likely cause issues with your website.

Any changes made to the PHP settings take effect immediately and can be easily reverted.



Was this answer helpful?

Add to Favourites
Print this Article

Also Read
Official cPanel Manual (Views: 2475)
Official WHM Manual (Views: 2249)
PHP Time Zone Errors (Views: 666)