The java virtual machine should be executable to the user that is running the apache daemon. Also your java program should be readable to the same user. Is that the case? What is the command that that you're executing from your CGI? By the way, what you're doing is not the best performance wise. It seems that every time someone executes the CGI the JVM is loaded. There must be better ways of doing what you want, but that's outside the scope of your question. Cheers, Andres -----Original Message----- From: Thom Hehl [mailto:thom@xxxxxxxxxxxxxxxx] Sent: Monday, July 18, 2005 7:32 PM To: users@xxxxxxxxxxxxxxxx Subject: Re: [users@httpd] CGI path problem OK. I figured out to place the path in /etc/init.d/httpd and now I can find the program. Now I'm getting the error: sh:/opt/java/bin/java: Permission denied The permissions on java are 755, which should allow execution. Is there something that prevents CGI scripts from calling other binaries? Thanks. Thom Hehl wrote: > I have a CGI program that calls a java program. I have placed the > java/bin directory into my PATH in /etc/bashrc (Redhat Linux) and can > run my CGI fine from the command prompt. When I execute it through the > web server, though, I get the following message in my error.log: > > "sh: java: command not found" > > I am reading this as Apache cannot find the java binary. Is there > something I'm missing? Maybe a path somewhere in httpd.conf? > > Thanks > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server > Project. > See <URL:http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx -- This message has been scanned for viruses and dangerous content by Ex Libris (USA), and is believed to be virus free. -- This message has been scanned for viruses and dangerous content by Ex Libris (USA), and is believed to be virus free. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx