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

To subscribe or unsubscribe via the World Wide Web, visit
        https://osl.uoregon.edu/mailman/listinfo/netdot-users
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-users digest..."


Today's Topics:

   1. @INC Netdot::Mason error when changing from HTTP to       HTTPS
      (SLES11 SP3) (Nico)
   2. Re: @INC Netdot::Mason error when changing from HTTP to HTTPS
      (SLES11 SP3) (Stefan Deling)
   3. Re: @INC Netdot::Mason error when changing from HTTP to HTTPS
      (SLES11 SP3) (Nico)
   4. Re: @INC Netdot::Mason error when changing from HTTP to HTTPS
      (SLES11 SP3) (Nico)


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

Message: 1
Date: Wed, 11 May 2016 13:02:53 +0200
From: Nico <[email protected]>
Subject: [Netdot-users] @INC Netdot::Mason error when changing from
        HTTP to HTTPS (SLES11 SP3)
To: "[email protected]" <[email protected]>
Message-ID:
        <CAKXQfmtydA6FA51gQEj=N9NOX06sjyNjX2DYr=ho-ryymur...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello,

I'm using Apache/2.2.12 on SLES11 SP3.
I'm trying to change the apache configuration to serve Netdot using HTTPS
instead of HTTP (and also to be in the root of the webserver instead of the
/netdot directory and to use LDAP authentication but one step at a time).

When I start the ssl vhost including the netdot_apache2_local.conf file I
get the "Can't locate Netdot/Mason.pm in @INC" error.

The line PerlSwitches -I/opt/netdot/netdot/prod/netdot-1.0.7/lib is there
in the config file, and using the same configuration file including it
directly in /etc/httpd.conf on the non-ssl server it works ok.

I tried to change the loading of apache modules so mod_perl loads before
mod_ssl to no avail (it's done in /etc/sysconfig/apache2 in SLES11SP3) .

Any help appreciated. Thanks.


-- 
Nico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://osl.uoregon.edu/pipermail/netdot-users/attachments/20160511/90e8f6b4/attachment-0001.html
 

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

Message: 2
Date: Wed, 11 May 2016 15:53:55 +0200
From: Stefan Deling <[email protected]>
Subject: Re: [Netdot-users] @INC Netdot::Mason error when changing
        from HTTP to HTTPS (SLES11 SP3)
To: Nico <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID:
        <CAMwdW7FVGUSPCM3AMBo83UMEd-OLmpLF+yO=8znzwdhjest...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Nico,

are you able to serve HTTPS pages with this webserver? I mean, is the
apache configuration correct and working?

I suggest to test the setup with a simple index.html demo web page prior to
netdot (just to verify that https works).


regards

Stefan

2016-05-11 13:02 GMT+02:00 Nico <[email protected]>:

> Hello,
>
> I'm using Apache/2.2.12 on SLES11 SP3.
> I'm trying to change the apache configuration to serve Netdot using HTTPS
> instead of HTTP (and also to be in the root of the webserver instead of the
> /netdot directory and to use LDAP authentication but one step at a time).
>
> When I start the ssl vhost including the netdot_apache2_local.conf file I
> get the "Can't locate Netdot/Mason.pm in @INC" error.
>
> The line PerlSwitches -I/opt/netdot/netdot/prod/netdot-1.0.7/lib is there
> in the config file, and using the same configuration file including it
> directly in /etc/httpd.conf on the non-ssl server it works ok.
>
> I tried to change the loading of apache modules so mod_perl loads before
> mod_ssl to no avail (it's done in /etc/sysconfig/apache2 in SLES11SP3) .
>
> Any help appreciated. Thanks.
>
>
> --
> Nico
>
> _______________________________________________
> Netdot-users mailing list
> [email protected]
> https://osl.uoregon.edu/mailman/listinfo/netdot-users
>
>


-- 

Stefan Deling

Senior Consultant

[email protected] <[email protected]>

+49 172 656 90 42

eksp? GmbH

Hahnstr. 70
60528 Frankfurt am Main
Tel: 069/770 19031
Fax: 069/962 444 82
[email protected]
www.ekspe.de
------------
HRB Frankfurt am Main 98158
Gesch?ftsf?hrer: Markus Mengelkamp
Gerichtsstand: Frankfurt am Main
USt-Nr. DE285782197
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://osl.uoregon.edu/pipermail/netdot-users/attachments/20160511/fdfe5fb7/attachment-0001.html
 

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

Message: 3
Date: Wed, 11 May 2016 16:53:48 +0200
From: Nico <[email protected]>
Subject: Re: [Netdot-users] @INC Netdot::Mason error when changing
        from HTTP to HTTPS (SLES11 SP3)
To: Stefan Deling <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID:
        <CAKXQfmu+0AVbQkv7GQsZw-Ef+JRCFSzo++DbUPHhi2C=ktp...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello Stefan,

I test with a html page in a different directory. And publishing netdot
files in /htdocs and both work.

        DocumentRoot "/opt/netdot/netdot/prod/netdot-1.0.7/htdocs"
        #<Directory /srv/www/htdocs>
        <Directory "/opt/netdot/netdot/prod/netdot-1.0.7/htdocs" >
               Order Deny,Allow
               Allow from all
        </Directory>
        #Include
/opt/netdot/netdot/prod/netdot-1.0.7/etc/netdot_apache2_local.conf

Accesing https://maqueta-netdot/index.html shows:

<%doc> Netdot homepage <%args> $title => undef $user =>
$ui->get_current_user($r) <%init> my $default_page; if (
$user->getAttribute('USER_TYPE') eq 'Admin' ||
$user->getAttribute('USER_TYPE') eq 'Operator') { $default_page =
$r->dir_config('NetdotPath') . "management/"; }elsif (
$user->getAttribute('USER_TYPE') eq 'User' ){ $default_page =
$r->dir_config('NetdotPath') . "user_management/"; } %
$m->redirect($default_page);

Which looks right.

I wonder why apache ignores the
PerlSwitches -I/opt/netdot/netdot/prod/netdot-1.0.7/lib
line when included from a ssl vhost.

Also tried to add "use lib
qw(/opt/netdot/netdot/prod/netdot-1.0.7/htdocs);" in /etc/apache2/
mod_perl-startup.pl just in case, but same result:

syntax error on line 32 of
/opt/netdot/netdot/prod/netdot-1.0.7/etc/netdot_apache2_local.conf:
Can't locate Netdot/Mason.pm in @INC (@INC contains:
/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0
/usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl . /srv/www) at
/opt/netdot/netdot/prod/netdot-1.0.7/etc/netdot_apache2_local.conf line
33.\nBEGIN failed--compilation aborted\t(in cleanup) Can't locate
Netdot/Mason.pm in @INC (@INC contains:
/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi /usr/lib/perl5/5.10.0
/usr/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl . /srv/www) at
/opt/netdot/netdot/prod/netdot-1.0.7/etc/netdot_apache2_local.conf line
33.\nBEGIN failed--compilation aborted at
/opt/netdot/netdot/prod/netdot-1.0.7/etc/netdot_apache2_local.conf line
33.\n

If i cp -R netdot-1.0.7/lib/* to /srv/www/ which is the @INC (SLES knows
why, in mod_perl-startup.pl there is a use line for /srv/www/perl-lib but
not /srv/www) it works. But it seems a bit dirty.

Thanks


2016-05-11 15:53 GMT+02:00 Stefan Deling <[email protected]>:

> Hi Nico,
>
> are you able to serve HTTPS pages with this webserver? I mean, is the
> apache configuration correct and working?
>
> I suggest to test the setup with a simple index.html demo web page prior
> to netdot (just to verify that https works).
>
>
> regards
>
> Stefan
>
> 2016-05-11 13:02 GMT+02:00 Nico <[email protected]>:
>
>> Hello,
>>
>> I'm using Apache/2.2.12 on SLES11 SP3.
>> I'm trying to change the apache configuration to serve Netdot using HTTPS
>> instead of HTTP (and also to be in the root of the webserver instead of the
>> /netdot directory and to use LDAP authentication but one step at a time).
>>
>> When I start the ssl vhost including the netdot_apache2_local.conf file I
>> get the "Can't locate Netdot/Mason.pm in @INC" error.
>>
>> The line PerlSwitches -I/opt/netdot/netdot/prod/netdot-1.0.7/lib is there
>> in the config file, and using the same configuration file including it
>> directly in /etc/httpd.conf on the non-ssl server it works ok.
>>
>> I tried to change the loading of apache modules so mod_perl loads before
>> mod_ssl to no avail (it's done in /etc/sysconfig/apache2 in SLES11SP3) .
>>
>> Any help appreciated. Thanks.
>>
>>
>> --
>> Nico
>>
>> _______________________________________________
>> Netdot-users mailing list
>> [email protected]
>> https://osl.uoregon.edu/mailman/listinfo/netdot-users
>>
>>
>
>
> --
>
> Stefan Deling
>
> Senior Consultant
>
> [email protected] <[email protected]>
>
> +49 172 656 90 42
>
> eksp? GmbH
>
> Hahnstr. 70
> 60528 Frankfurt am Main
> Tel: 069/770 19031
> Fax: 069/962 444 82
> [email protected]
> www.ekspe.de
> ------------
> HRB Frankfurt am Main 98158
> Gesch?ftsf?hrer: Markus Mengelkamp
> Gerichtsstand: Frankfurt am Main
> USt-Nr. DE285782197
>



-- 
Nico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://osl.uoregon.edu/pipermail/netdot-users/attachments/20160511/0cb108a1/attachment-0001.html
 

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

Message: 4
Date: Wed, 11 May 2016 18:27:35 +0200
From: Nico <[email protected]>
Subject: Re: [Netdot-users] @INC Netdot::Mason error when changing
        from HTTP to HTTPS (SLES11 SP3)
To: Stefan Deling <[email protected]>
Cc: "[email protected]" <[email protected]>
Message-ID:
        <CAKXQfmsbaAvKAGS-pvF6SWey3G1qTD=unccvvvju+mrlhd3...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hello,
It seems that moving the line:
PerlSwitches -I/opt/netdot/netdot/prod/netdot-1.0.7/lib
from netdot_apache2_local.conf
to /etc/apache2/httpd.conf (right before Include
/etc/apache2/vhosts.d/*.conf)
solved the issue.

Greetings,

-- 
Nico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://osl.uoregon.edu/pipermail/netdot-users/attachments/20160511/b80feaa8/attachment.html
 

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

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


End of Netdot-users Digest, Vol 86, Issue 5
*******************************************

Reply via email to