Knowledgebase: Technical Issues > Scripts
PHP security settings tightening
Posted by Yuri, Last modified by on 18 January 2011 04:21 AM

Recently, we've tightened up PHP security settings. This article discusses them in details and applies only to PHP scripts.

Specifically, we now disallow the following PHP functions:


In case your scripts need to execute some or all of them or you are getting such kind of errors: you are permitted to override the restrictions and specify list of disallowed functions manually, or disable the restriction at all.

Warning: exec() has been disabled for security reasons in /home/username/public_html/script.php on line 5

Here is how you do it:
* Go to domain's document root directory. This is usually the place you've uploaded your files to. In our case, it's /home/username/public_html.
* Find the file named php.ini. Open it up for editing.
* Look for disabled_functions line. Edit it as needed (recommended) or comment the whole line out (only as last resort), placing comment sign ";" before it.
* Save the file and test your PHP script.

(287 vote(s))
Not helpful

Comments (0)