RCMD: Socket Permission Denied

Hi.. I'm held up with an issue in apache. I'm new to this so kindly bear me.. The issue which I'm facing is I have a cgI script which has rcp command.. So when I trigger the cgI from guI rcp is not working. error log says tat rcmd: socket permission denied.. but when I executed the cgI in terminal manually rcp works fine.. Thanks in advance..

I have a CGI script which has rcp command in it.. for testing I executed that cgi script from terminal and rcp works fine.. but CGI should be triggered by a GUI.. in that case rcp doesn't work.. Apache error log reports tat 'RCMD : SOCKET PERMISSION DENIED..'