adamszki wrote:According to my php.ini in /usr/syno/etc the safe mode is off but whatever php script tries to use the shell_exec() command gets a result saying that shell_exec() is not available in safe mode. Does somebody have an idea where the error might be?
Thanx.
I have got the exact same problem here. I have the old DS-101 (no letters

) but the software is upgraded to the latest release for the DS-101 (PHP 5.1.2, MySQL 4.1.15, Apache 1.3.33).
I get this error:
- Code: Select all
Warning: shell_exec() [function.shell-exec]: Cannot execute using backquotes in Safe Mode in /volume1/web/util/test.php on line 2
When I open a php page with this code:
- Code: Select all
<?php
print `ls -la /volume1/web`;
?>
And yes, I have also checked, checked again and then triple checked that Safe Mode is off. I have even tried adding the full path to the directory containing my script to safe_mode_include_dir and safe_mode_exec_dir but that did not work for me either. I would also be very interested in a solution as this is a feature I use very much - and without it - well then - I do not have much use for Apache, PHP and MySQL in my NAS
