Click to See Complete Forum and Search --> : Sambar


SlankenOgen
08-08-2003, 06:38 AM
Is anybody here familiar with the Sambar Server? I have downloaded it and when I try to run a Perl script on it a download dialogue appears on screen asking if I want to open or save the file. It's the standard dialogue for downloading. The script will not run at all.

thanks

goofball
08-08-2003, 07:35 AM
I have never heard of Sambar Server, but what you describe sounds alot like what happens on a regular Apache server when your Perl script is not in the script-alias directory and not set to executable. It definately sounds like a file persmissions issue ...

AdamGundry
08-08-2003, 09:14 AM
Are you talking about Samba (http://www.samba.org/), a software suite for Linux-Windows communication using Server Message Block protocol? If so, it is not a web server and therefore cannot be expected to run Perl scripts.

Adam

SlankenOgen
08-09-2003, 06:32 AM
goofball - how do I change the permissions? And what do I change them to? I know very little about local servers.

Adam - do you know of any reliable local servers apart from Sambar (no it's not samba) I can use? thanks

goofball
08-09-2003, 06:45 AM
Changing permissions can be a different procedure from server to server. Like I said, I never heard of Samba until you mentioned it, so I think the best info for you would be on their web site. (is it http://www.samba.org ?)

I recommend the Apache server software, available free at http://www.apache.org. Using that server, you have a cgi-bin directory (for default setups, anyway) where all your executable Perl scripts go. In the server configuration file (httpd.conf) you have to specify that cgi-bin as the "script-aliased" directory. Then when you move your Perl script under that directory, you change file permissions to tell the server it's OK to run that file as a program and not to just serve it to the web browser as a text file. This is done through telnet in my case. I find the file and type chmod 755 script.pl
at the command prompt.

Here's a good tutorial from Apache: http://httpd.apache.org/docs/howto/cgi.html

Cheers

SlankenOgen
08-09-2003, 09:49 AM
Thanks a million. I use Perl on Mac and it runs fine but I want to changs to pc. I'll check out Apache and see what happens. The Sambar site is www.sambar.com

SlankenOgen
08-11-2003, 06:27 AM
I found out what the problem was. The config. file was not set to run .pl .cgi

Thanks all for your help.