[Xitami] Perl support ?
xitami@lists.xitami.org
xitami@lists.xitami.org
Fri, 24 Aug 2001 10:15:27 +0200
On 24 Aug 2001, at 9:06, Danny Van Neyghem wrote:
>
> > -----Oorspronkelijk bericht-----
> > Van: xitami-admin@lists.xitami.org
> > [mailto:xitami-admin@lists.xitami.org]Namens Owen Rudge
> > Verzonden: maandag 20 augustus 2001 14:32
> > Aan: xitami@lists.xitami.org
> > Onderwerp: Re: [Xitami] Perl support ?
> >
> >
> > > Is there something I sould be checking or configuring
> > > ?
> >
> > You need to install Perl on your system. For Windows, download ActivePerl
> > from www.activestate.com (I think that's the URL).
> >
> > Owen Rudge
> > http://www.owenrudge.co.uk/
> > http://www.gamearchive.uk.tt/
> >
> I have download ActivePerl en install in e:\webservers\Perl. Xitami and php
> are installed in e:\webservers\xitami and e:\webservers\php.
>
> How must I change the configuration of Xitami for Perl, so that i will work
> for all my virtual hosts.
>
> Second Question.
> I have a free perl script for forms, it make use of Sendmail. What must i
> install for this script to work local?
>
> Thanks in advanced
>
> --------------------
> Groetjes, greetings
>
> Danny Van Neyghem
> danny.vanneyghem@gooftroop.be
> http://www.gooftroop.be
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
Hello,
your PATH-Variable should reflect your Perl-Installation.
On my System this is:
F:\>path
PATH=D:\Programme\Apple\Developer\Executables\Utilities;D:\Pro
gramme\Apple\Devel
oper\Executables;D:\Programme\Apple\Local\Library\Executables;
D:\Programme\Apple
\Library\JDK\bin;D:\Programme\Apple\Library\Executables;D:\Progr
amme\Perl\bin\;D
:\Perl\5.6.0\bin\;C:\WINNT\system32;C:\WINNT;D:\Programme\cyg
win\bin;D:\Programm
e\cygwin\usr\bin;D:\Programme\cygwin\usr\local\bin;D:\Programme\
Python20\;D:\Pro
gramme\jdk1.2\bin;D:\gnu\usr\local\wbin;C:\Programme\texmf\mikte
x\bin;C:\Program
me\localtexmf;C:\Programme\Symantec\pcAnywhere\;D:\Programm
e\Komodo\python\;D:\P
rogramme\cygwin\bin;D:\Programme\ssl\bin;D:\Programme\gnu\usr\
local\wbin;D:\Prog
ramme\vunix
If you add #!/usr/bin/perl (the exact path to perl not neccesary) to
the first line of perl-scripts, xitami/perl should work with any
virualhost.
You don't need these free mailing scripts; better do your own:
#!/usr/bin/perl
use MIME::Lite;
$mailhost = "someMailAlias";
$From = 'someOne@somewhere.net';
$To = 'anotherOne@outside.net';
$Subject = 'mailing';
$text .= "$something\n";
MIME::Lite -> send('smtp', $mailhost, Timeout => 60);
$msg = MIME::Lite -> new(From => $From, To => $To, Subject
=> $Subject, Data => $text);
$msg -> send;
undef $msg;
So long,
Peter