For starters, I doubt this problem is really for this list. There are other mailing lists available for Perl / CGI / mod_perl queries.<br> <br> If you've installed the packages supplied in the Ubuntu distro, I might not be able to help you as I install all of mine from http://apache.org http://perl.apache.org<br> <br> To answer some of your questions, look in the httpd.conf file to see the user. it's usualyy 'nobody' <br> <br> To write output to your browser, in your example, you need to write sth like ...<br> <br> make sure the following exists in conf/httpd.conf<br>  <br>  <IfModule alias_module><br>  ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"<br>  </IfModule><br>  <br>  and make sure the following directive exists and has values set such as  ....<br>  <br>  <Directory "/usr/local/apache2/cgi-bin"><br>      SetHandler cgi-script<br>      AddHandler cgi-script .cgi<br>      AllowOverride None<br> 
     Options +ExecCGI<br>      Order allow,deny<br>      Allow from all<br>  </Directory><br> <br> Your scripts should look like ....<br> <br> #!/usr/bin/perl<br> use strict;<br> <br> print "Content-type: text/html\n\n";<br> print "Test\n";<br> <br> and be executable ..... chmod 755 test.cgi<br> <br> If you wanna use the CGI class, try<br> <br> #!/usr/bin/perl -w<br> <br> use strict;<br> use CGI;<br> <br> my $cgi = CGI->new();<br> print $cgi->header();<br> print 'Hello World!!';<br> <br> make it executable and run it.<br> <br> Make sure it's in your cgi-bin directory i.e. /usr/local/apache2/cgi-bin or /usr/apache2/cgi-bin<br> <br> anyway, run cgi-bin/printenv to see if things are up and running..<br> <br> <br> <br> <br><br><b><i>Emil Edeholt <emil@knmedical.se></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hi,<br><br>I can't get
 CGI Perl up and running and I don't have a clue what to do. <br>Apache 2 and PHP works fine. I've uncomment AddHandler cgi-script .cgi <br>and perl is installed. But I guess something more is needed?<br><br>Apache gives me an forbidden error when I try to run my example script. <br>I've tried to 777 the script but I still get the error. Any ideas?<br><br>And btw under what user is apache 2 running normally in ubuntu?<br><br>My test script looks like this, and it works fine to run it from the <br>terminal, so atleast perl is working:<br>#!/usr/bin/perl<br>use strict;<br>print "Test\n";<br><br>All ideas are welcome. Thanks!<br><br>Kind regards Emil<br><br>-- <br>ubuntu-users mailing list<br>ubuntu-users@lists.ubuntu.com<br>https://lists.ubuntu.com/mailman/listinfo/ubuntu-users<br></blockquote><br><p>
                <hr size=1> 
Try the <a href="http://us.rd.yahoo.com/mail/uk/taglines/default/nowyoucan/wall_st_2/*http://us.rd.yahoo.com/evt=40565/*http://uk.docs.yahoo.com/nowyoucan.html">all-new Yahoo! Mail</a> . "The New Version is radically easier to use" – The Wall Street Journal