I have to run Nutch crawl commands using php exec but it shows
"0 Error: JAVA_HOME is not set"
The command works fine with terminal. I have tried the below code in crawl.php where apache-nutch-1.15 directory is placed.
exec('apache-nutch-1.15/bin/nutch inject crawl/crawldb urls',$output);
and this gives the above mentioned error.
Thank you in advance for any assistance you can provide.