Question

I am hoping to find some more information about this PHP setting, I assume I need to change its value in the php.ini but I set the root the folder as /file/path/ or as http://www.domain.com/file/path?

Any advice would be great

Was it helpful?

Solution

safe_mode_exec_dir needs to be set to a filesystem path. It can also contain multiple paths separated by semicolon.

However, note that safe mode is deprecated and will be removed in PHP 6:

This feature has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.

if you need added security in your PHP environment, there are better approaches like the Hardened PHP project's Suhosin patch.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top