Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configuring Mason ?

Status
Not open for further replies.

Wolfie7873

Technical User
Jan 15, 2004
94
US
I can't seem to get Mason to operate correctly. When I do exactly what's in the documentation:

PerlModule HTML::Mason::ApacheHandler

<Location />
SetHandler perl-script
PerlHandler HTML::Mason::ApacheHandler
</Location>

Nothing happens. If I put a particular directory in the Location tag, I get a 500 error. Has this happened to anyone else?
 
Code:
<VirtualHost [i][b]ip address[/b]:80[/i]>
    ServerAdmin e-mail@domain.com
    DocumentRoot /path/to/htdocs/domain
    ServerName domain.com
    ServerAlias [URL unfurl="true"]www.domain.com[/URL]

    PerlModule HTML::Mason::ApacheHandler

    <Directory /path/to/htdocs/domain>
        <Files *.pl>
            SetHandler perl-script
            PerlHandler HTML::Mason::ApacheHandler
            PerlSendHeader On
            Options ExecCGI
        </Files>
    </Directory>
</VirtualHost>

M. Brooks
 
I tried ^ - and it didn't work either. I don't have a dedicated server box or anything. I'm just trying to get a development environment up and running so I can try my hand at a few things. What I want is to be able to test things through the localhost domain, not a solid IP address. My IP address isn't static so I wouldn't know how to define it. Any more suggestions?
 
Yup - it sure was. I have tested modperl, and it works. Did the whole "modperl rocks" script straight out of the documentation.
 
It's the default configuration as provided during install with the following lines added to the bottom:

Code:
LoadModule perl_module modules/mod_perl.so

Alias /perl/ /home/httpd/httpd-2.0/perl/
  <Location /perl/>
      SetHandler perl-script
      PerlResponseHandler ModPerl::Registry
      PerlOptions +ParseHeaders
      Options +ExecCGI
      Order allow,deny
      Allow from all 
  </Location>

PerlModule HTML::Mason::ApacheHandler

  <Location />
      SetHandler perl-script
      PerlHandler HTML::Mason::ApacheHandler
  </Location>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top