[eluser]jedd[/eluser]
[quote author="Guntars" date="1245193782"]When I copy to this directory it works[/quote]
Is that a confirmation or a follow-up question?
Quote:, you recomend me leave as it is, and just, which functions need to execute copy here, or change the directory?
You have a range of options. Modify the PHP setting to allow you to run binaries from anywhere, or maintain a set of binaries (or symlinks to same) in that directory.
On my own system I use the former, though a) I don't use exec calls very often, b) I'm very cautious. It's probably one of those 'if you have to ask how this works, then choose the safer option'. My gut feel here is that you should proceed with maintaining the directory's contents with binaries that you trust, and (obviously) retain the safe exec setting as it is.