On Fri, 11 May 2007, Nishant Chandra wrote:
> Hi,
> I am new to using mason. I am trying to run mason in the following
> environment:
> Apache2.2.4/mod_perl 2.0.3/Perl 5.8.8(on WinXP)
>
> Reading the installation manual, I added the following lines to the
> httpd.conf file:
>
> PerlModule HTML::Mason::ApacheHandler
> <Location />
> SetHandler perl-script
> PerlHandler HTML::Mason::ApacheHandler
> </Location>
>
> The server doesnt start after this. Log file says:
> [Fri May 11 14:04:57 2007] [error] Can't load Perl module
> HTML::Mason::ApacheHandler for server localhost:80, exiting...
>
> Can someone help me with this? Do I need to add something more to the .conf
> file?
I'll assume you're familiar with the following concepts:
- Environment variable
- Use of the PATH environment variable (used on both Windows and Unix)
See: http://en.wikipedia.org/wiki/Environment_variable
It so happens that Perl has a special path for searching for library
files. There is a library file called (on Windows):
.....\HTML\Mason\ApacheHandler.pm
Once you find this file, and figure out what the ..... bit is, you
know what you need to add to your path.
On a Unix machine, I did something like this in my Apache config:
PerlSwitches -I/home/wayland/public_html/path/to/file
You'll need to do something similar. But remember, only put in the
...... part, not the \HTML\Mason part.
Hope this helps,
---------------------------------------------------------------------
| Name: Tim Nelson | Because the Creator is, |
| E-mail: [EMAIL PROTECTED] | I am |
---------------------------------------------------------------------
----BEGIN GEEK CODE BLOCK----
Version 3.12
GCS d+++ s+: a- C++$ U+++$ P+++$ L+++ E- W+ N+ w--- V-
PE(+) Y+>++ PGP->+++ R(+) !tv b++ DI++++ D G+ e++>++++ h! y-
-----END GEEK CODE BLOCK-----
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users