----- Original Message ----- From: "sfantar" <[EMAIL PROTECTED]> To: <beginners-cgi@perl.org> Sent: Tuesday, June 06, 2006 1:21 PM Subject: Problems with CGI and mod_perl
> Hello everyone > > I have started since today learning how to write cgi in Perl with this > doc : http://users.easystreet.com/ovid/cgi_course/lessons/lesson_one.html > > I am running ubuntu on my pc and I installed the package mod_perl made > by ubuntu a few days ago and I was able to run Perl scripts from the > Apache. I read this doc to do it : > http://perl.apache.org/docs/2.0/user/intro/start_fast.html > > But while keeping on reading docs about Perl programming, I discovered > that it is possible to install modules directly from the command line > 'perl -MCPAN -e shell'. > > After installing some modules I didn't find in Ubuntu packages, the path > to per changed from originally /usr/bin/perl to /usr/local/bin/perl . > > As a consequence,on my server where the perl scripts, I changed the path > to the Perl interpreter from /usr/bin/perl to /usr/local/bin/perl. > > I have also reinstalled the Ubuntu mod_perl package but no change. > Finally, each time I want to run a simple Perl script on my server, my > browser asks me to download it. > > I don't know what to do. > Thanks you very much for your help. > > Sami > I don't know why paths would change after installing modules with CPAN but /usr/bin/perl is typically a symbolic link to /usr/local/bin/perl. ln -s /usr/local/bin/perl /usr/bin/perl JM -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>