You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Tiller, Michiel" <Mi...@bmc.com> on 2002/07/26 14:44:24 UTC

RE: Trouble getting my scripts executed - solved

Hi,

Nevermind. I failed to see the obvious.

My test script was:
  print "Content-type: text/plain\n\n";
  print "mod_perl rules!\n";
when I changed that to:
  print "Content-type: text/html\n\n";
  print "mod_perl rules!\n";
it worked.

In short: mod_perl rules, and I should learn to ponder problems longer
before sending emails to mailing lists.

Cheers,
Michiel

-----Original Message-----
From: Tiller, Michiel [mailto:Michiel_Tiller@bmc.com]
Sent: Friday, July 26, 2002 12:43
To: 'modperl@perl.apache.org'
Subject: Trouble getting my scripts executed



Hi All,

Situation:
  Solaris 2.6
  apache httpd 1.3.26
  mod_perl 1.27

Have been running regular Perl CGI on Apache for a long time, decided to
check out mod_perl.
Made a clean download of the apache httpd and mod_perl sources, and followed
the install docs to the letter.

Started apache on port 8080, so it doesn't affect my existing installation
on 80, that's about all I changed in httpd.conf, except for adding the
following lines at the very end:

  Alias /perl/ /usr/local/apache/htdocs/perl/
  PerlModule Apache::Registry
  <Location /perl/>
    SetHandler perl-script
    PerlHandler Apache::Registry
    Options +ExecCGI
    PerlSendHeader On
    Allow from all
  </Location>

  <Location /perl-status>
    SetHandler perl-script
    PerlHandler Apache::Status
    Allow from all
    order deny,allow
  </Location>

I can see that my mod_perl is active, by the following lines in the
errorlog:
  [notice] Apache/1.3.26 (Unix) mod_perl/1.27 configured -- resuming normal
operations
and also the fact that going to /perl-status is giving me the mod_perl info.

But when I try to execute a very simple script test.pl that is located in
/perl, my browser opens a download session for the test.pl file. chmod is
755 on the /perl dir, and 755 on the test.pl file.

I'm stuck. Can't find any reason why it's not executing. Probably something
stupid which I'm overlooking.
Any help will be greatly appreciated.

Many thanks!
Michiel