Try switching to the webserver user on my system that is nobody then type cd it should take you to the root directory for that user then have a look at the login profile for that user.
i.e.
su nobody
cd
cat .bash_profile
it should list the path in the profile if the command that you want is in the path specified then it will work if not it doesnt know where to look. You could always edit the profile to include the run path of the executable.
Mark.