+2  A: 

Directories under /home/ are usually well protected against others, check the permissions to make sure that the absolute path reference can indeed navigate all the way to nutch.

Don
A: 

There are several problems here.

  1. When executing from a script, it's hard to predict what the current working directory will be, so it's best to use the full path.

  2. Remember that the PHP script is being run by the user that Apache runs under, not by you. So make sure that the Apache user (which may have a different name depending on the distro and the Apache version) has permission to run the Nutch script, and to read/write all the Nutch data files.

  3. 'all' isn't a valid option for the nutch command, so I'm not sure what it is you're trying to do.

Mike Baranczak