Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Patrick F. Ducharme on August 14, 2002, 03:11:12 AM
-
Hi all,
I'm trying to install a CGI script (It's a script to access a pop server with the web http://www.nullLogic.com/webmail) - into a Ibays call "private". This ibays is configured with the admin panel to "enable Script" to Yes. I try to copy the CGI to the cgi-bin folder in the Ibays. Look the error message ...
Here is a part of the http/error_log :
[Tue Aug 13 17:56:21 2002] [error] (13)Permission denied: exec of /home/e-smith/files/ibays/private/cgi-bin/index.cgi failed
[Tue Aug 13 17:56:21 2002] [error] [client 192.168.1.4] Premature end of script headers: /home/e-smith/files/ibays/private/cgi-bin/index.cgi
[Tue Aug 13 17:56:27 2002] [error] [client 192.168.1.4] Options ExecCGI is off in this directory: /home/e-smith/files/ibays/private/html/index.cgi
[Tue Aug 13 17:56:33 2002] [error] [client 192.168.1.4] File does not exist: /home/e-smith/files/ibays/private/html/index.html
[Tue Aug 13 17:59:25 2002] [error] (13)Permission denied: exec of /home/e-smith/files/ibays/private/cgi-bin/index.cgi failed
[Tue Aug 13 17:59:25 2002] [error] [client 192.168.1.4] Premature end of script headers: /home/e-smith/files/ibays/private/cgi-bin/index.cgi
[Tue Aug 13 18:04:33 2002] [error] [client 192.168.1.4] Options ExecCGI is off in this directory: /home/e-smith/files/ibays/private/html/index.cgi
[Tue Aug 13 18:04:43 2002] [error] (13)Permission denied: exec of /home/e-smith/files/ibays/private/cgi-bin/index.cgi failed
[Tue Aug 13 18:04:43 2002] [error] [client 192.168.1.4] Premature end of script headers: /home/e-smith/files/ibays/private/cgi-bin/index.cgi
-
Patrick,
What version of server are using.
I have just tried installing the nullLogic webmail.cgi in a cgi-bin folder in an ibay and it works perfectly. This is on 5.5.
Jon
-
I'm on 5.1.2. Maybe I need to do a chmod ? What's the Permission on your file ?
-
Permissions on CGI script often depend on how you are accessing them. If you are submitting something to the scripti.e., not accessing the directly), you can usually get away with 750 (best case) or 770 (worse case). If you need to access the script directly from a browser, you may need to set the permissions to 751 or 771. In no event should you ever set the permission to 777.
Greg
-
Patrick,
webmail.cgi is chmod 775
The only change I made was to conf.h, and that was to add the url to the /webmail directory which I placed in the html directory of the ibay. I then ran make and copied webmail.cgi to the cgi-bin of the ibay and copied /webmail to the html directory.
It worked just fine.
Jon
-
For the URL of the webmail directory, have you put /home/e-smith/files/ibays/ibaysName/html/webmail or only /ibaysName/html/webmail ??
Thank you