Page 1 of 1

Question re: Perl and Squirrelmail

Posted: Mon Apr 04, 2005 12:26 am
by voltrader
I seem to have the Perl module installed on my server, as well as IMAP.

I would like to install Squirrelmail, since it runs in www and Sendmail has been a *&*@& to get working.

1) config.pl needs to be run in order to initially configure Squirrelmail. I tried running this from the URL, but all I got was the code displayed as text. How do I run this Perl program?

2) I noticed that an option is to download an rpm of Squirrelmail, which is then installed below the var/www/ folder. If it's intended to run as a web script, why does this happen?

Thanks

Posted: Mon Apr 04, 2005 12:40 am
by infolock
linux or windows?

Posted: Mon Apr 04, 2005 1:05 am
by voltrader
Oh sorry... Linux (Fedora Core 2)

Posted: Mon Apr 04, 2005 1:43 am
by infolock
2) I noticed that an option is to download an rpm of Squirrelmail, which is then installed below the var/www/ folder. If it's intended to run as a web script, why does this happen?
that's something you are going to have to read up on squirrelmail's site, but if you are running a perl script, you should be running it from the cgi-bin dir?

Posted: Mon Apr 04, 2005 9:31 am
by Chris Corbyn
Some servers can run .pl files from any web folder... not only cgi-bin.

If it's just displaying as plain text then it's obviously:

a) Not in the correct location to execute
b) Got the wrong shebang code at the start (This should point to your perl installation)

Posted: Mon Apr 04, 2005 10:48 am
by voltrader
Thanks -- I'll try running it in cgi-bin :D

Posted: Mon Apr 04, 2005 2:51 pm
by infolock
d11wtq wrote:Some servers can run .pl files from any web folder... not only cgi-bin.
Only if they manually specify another location from which it can run i thought?

Posted: Mon Apr 04, 2005 5:31 pm
by timvw
http://httpd.apache.org/docs/howto/cgi.html :)

and with the which/whereis command you can find out where the perl executable lives.... ;)