Thanks @hakre, you gave me the right direction!
I went to / usr / bin / to check the permission and saw the php5 command with the same permissions as php (php is a link to php5).
I donβt understand why, but when I replaced the command with php5, the previous error was replaced by: "There is no such file or directory", and when I gave the full path, it works fine:
exec="/usr/bin/php5"; args.clear(); args.push_back("php5");
user1812916
source share