Question re: Perl and Squirrelmail

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
voltrader
Forum Contributor
Posts: 223
Joined: Wed Jul 07, 2004 12:44 pm
Location: SF Bay Area

Question re: Perl and Squirrelmail

Post 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
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post by infolock »

linux or windows?
User avatar
voltrader
Forum Contributor
Posts: 223
Joined: Wed Jul 07, 2004 12:44 pm
Location: SF Bay Area

Post by voltrader »

Oh sorry... Linux (Fedora Core 2)
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post 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?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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)
User avatar
voltrader
Forum Contributor
Posts: 223
Joined: Wed Jul 07, 2004 12:44 pm
Location: SF Bay Area

Post by voltrader »

Thanks -- I'll try running it in cgi-bin :D
User avatar
infolock
DevNet Resident
Posts: 1708
Joined: Wed Sep 25, 2002 7:47 pm

Post 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?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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.... ;)
Post Reply