Hi,
here we are in 2011 (latest post here is from 2008) and I'm also having issues with the safe_mode (bummer).
1.What I gathered is that safe-mode disables the execution of sensitive command that could be called along exposed path(malicious queries) like in /volume1/web/myblog.com/comment
2.I gathered php.ini is the place where you can add/remove exceptions so that you can run your commands wherever you want anyway, still keeping the safe_mode anywhere else.
Using DSM 3.2, isn't this feature (adding exception paths) included in:
Control Panel > Web Services > Customize PHP open_basedir (where I just would have to drop the desired path)
or is this option modifying something else?
Let's say I'm rather unsure
Front end
I'm trouble shooting:
- Code: Select all
Warning: is_readable(): open_basedir restriction in effect. File(/usr/syno/php/lib/php/MDB2/Driver/mysqli.php) is not within the allowed path(s): (/etc.defaults:/usr/bin/php:/usr/syno/synoman:/etc:/var/run:/tmp:/var/spool/php:/volume1/@tmp/php:/var/services/web:/var/services/photo:/var/services/blog:/var/services/homes:/volume1/web/myblog.com/openflyers/pear) in /volume1/web/myblog.com/openflyers/MDB2.php on line 963
Where in line 963, the php file says:
- Code: Select all
if (is_readable($dir . DIRECTORY_SEPARATOR . $file)) {return true;}
although I know for a fact is_readable does NOT work with safe_mode.
Any knowledge sharing would be fine at this point
