RE: Mod_perl and includes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



use 'PerlRequire' to import a file in apache's startup time.

in this file you import the lib's path.ie,in httpd.conf:

PerlRequire  /opt/apache1.3/mylib/startup.pl

and in startup.pl:

use lib qw(/the/lib/path);

> Date: Tue, 16 Oct 2007 19:21:19 -0400
> From: trice@xxxxxxxxx
> To: users@xxxxxxxxxxxxxxxx
> Subject:  Mod_perl and includes
>
> I'm trying to bring up a server with mod_perl configuration original
> created for an Apache 2.0 server but on an Apache 1.3 server. The
> problem is that "PerlSwitches" isn't available on the mod_perl running
> on the 1.3 server. How can I get this library path included on a 1.3
> server?
>
>
>
> PerlSwitches -I /var/www/foo/bar/lib
> PerlModule BAR
>
> 
> SetHandler modperl
> PerlResponseHandler BAR
> 
>
> Thanks in advance,
> Tony
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See  for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>

_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux