Send Netdot-devel mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-devel
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Netdot-devel digest..."


Today's Topics:

   1. [Netdot - Bug #1654] (New) Cannot use "use lib" in        Apache
      configuration ([email protected])


----------------------------------------------------------------------

Message: 1
Date: Mon, 9 Jul 2012 07:39:53 -0700
From: [email protected]
Subject: [Netdot-devel] [Netdot - Bug #1654] (New) Cannot use "use
        lib" in Apache configuration
To: [email protected], [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8


Issue #1654 has been reported by Matej Vadnjal.

----------------------------------------
Bug #1654: Cannot use "use lib" in Apache configuration
https://osl.uoregon.edu/redmine/issues/1654

Author: Matej Vadnjal
Status: New
Priority: Normal
Assignee: 
Category: 
Target version: 1.0.1-RC2
Resolution: 


netdot_apache2_*.conf files contain "use lib" to setup path to Netdot Perl 
modules, but this does not work for me. When visiting <server>/netdot/ in 
browser, Apache returns 403 code and writes this to error_log:

<pre>
[Mon Jul 09 13:22:33 2012] [error] [client ::1] failed to resolve handler 
`Netdot::Mason': Can't locate 
Netdot/Mason.pm in @INC (@INC contains: /usr/local/lib64/perl5 
/usr/local/share/perl5 
/usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 
/usr/share/perl5 . /etc/httpd) 
at (eval 61) line 3.\n
</pre>

(Notice absence of any netdot dirs in @INC)

I'm using stock netdot_apache2_local.conf which contains:

<pre>
<Perl>
  use lib qw( /usr/local/netdot/lib );
  use Netdot::Mason;
...
</Perl>
</pre>


According to this post [http://stackoverflow.com/a/2664454] "use lib" does not 
work in Apache configuration and PerlSwitches should be used. Relevant mod_perl 
documentation:
http://perl.apache.org/docs/2.0/user/config/config.html#Adjusting_C__INC_

I added:

<pre>
PerlSwitches -I/usr/local/netdot/lib
</pre>

to the top of my configuration file and removed "use lib". After Apache 
restart, netdot web interface works!

Apache/2.2.15
mod_perl/2.0.4
Perl/v5.10.1
CentOS 6.2
Netdot 1.0.1 RC2



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://osl.uoregon.edu/redmine/my/account


------------------------------

_______________________________________________
Netdot-devel mailing list
[email protected]
https://osl.uoregon.edu/mailman/listinfo/netdot-devel


End of Netdot-devel Digest, Vol 64, Issue 5
*******************************************

Reply via email to