please help... mod_ssl seems to overwrite mod_perl and mod_perl s

please help... mod_ssl seems to overwrite mod_perl and mod_perl s

am 15.11.2002 22:33:07 von mitchelj

Hi all,

How do I get BOTH mod_perl and mod_ssl built into and working in Apache?

I had mod_perl successfully built into my apache to use Authentication hook.

Then I added mod_ssl in and I started to get errors from my .htaccess file

Error:
[Fri Nov 15 14:39:03 2002] [alert] [client 135.2.60.152] /web/content/askLucent/password-reset/cgi-bin/.htaccess: Invalid command 'PerlSetVar', perhaps mis-spelled or defined by a module not included in the server configuration


Contents of .htaccess

AuthName "NT Domain\Login and Password"
AuthType Basic
#PerlSetVar NT_Controllers 'na02il0015dc00:na02il0015dc01'
PerlSetVar NT_Controllers 'na02il0015dc04:na02il0015dc01:NA02IL0015DC02'
PerlAuthenHandler Apache::AuthenN2
require valid-user


so i rebuilt mod_perl back into apache and now I get errors of directives from mod_ssl in my httpd.conf file

Error:
5e-cts root: /web/server/apache/1.3.22/bin/apachectl stop ; /web/server/apache/1.3.22/bin/apachectl start
/web/server/apache/1.3.22/bin/apachectl stop: httpd (no pid file) not running
Syntax error on line 1008 of /web/server/apache/1.3.22/conf/httpd.conf:
Invalid command 'SSLRandomSeed', perhaps mis-spelled or defined by a module not included in the server configuration
/web/server/apache/1.3.22/bin/apachectl start: httpd could not be started


Lines from httpd.conf:

SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLRandomSeed startup file:/dev/random 512
SSLRandomSeed connect file:/dev/random 512

I need to use both mod_perl and mod_ssl and it seems like keeps overwriting the other. How do I change this so I can get them built in together?

Thank you
Jem

Namespace problem

am 15.11.2002 22:53:13 von Thomas Hilbig

I am having a namespace problem that is a slight twist
to that described in the 1.0 docs
http://perl.apache.org/docs/1.0/guide/porting.html#Name_coll isions_with_Modules_and_libs

My problem is even simpler, but worse. If I have two
CGI programs using the same required script.
Initially one works without any problems. Then if I
call up the other script, each time I get an error
saying the subroutine cannot be found. Refresh the
browser and it works, but then the first one starts to
give an error;

Error message:
Undefined subroutine
&ModPerl::ROOT::ModPerl::Registry::home_httpd_qx_2dbin_gdtes t1::goodDay

called at /home/httpd/qx-bin/gdtest1 line 7.

This has to be something simple because I don't get
the error with normal Library components. What am I
missing here??

Here is the package, and both CGI scripts that use it.
Thanks for any help,
Tom

------ commontest.pl ----------
#!/usr/local/bin/perl
# Common Functions that will be 'required' by Perl CGI
scripts

CONFIG: {
package commontest ;
}

sub goodDay {
package commontest ;
print "

Good Day Billy

\n" ;
}

1;

------ gdtest1 (First CGI script that uses the
package----------------
#!/usr/local/bin/perl

require "/usr/lib/perl5/site_perl/commontest.pl" ;
print "Content-Type: text/html;
charset=ISO-8859-1\n\n" ;
print "Test<br /> 1

Test 1

\n" ;

&goodDay ;

print "\n" ;
exit ;

------ gdtest2 (Second CGI script that uses the
package----------------
#!/usr/local/bin/perl

require "/usr/lib/perl5/site_perl/commontest.pl" ;
print "Content-Type: text/html;
charset=ISO-8859-1\n\n" ;
print "Test<br /> 2

Test 2

\n" ;

&goodDay ;

print "\n" ;
exit ;


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

Re: please help... mod_ssl seems to overwrite mod_perl and mod_perls eems to overwrite mod_ssl

am 15.11.2002 23:01:28 von Danny Rathjens

I followed the instructions in INSTALL.simple.mod_ssl and did:

setenv SSL_BASE SYSTEM
setenv EAPI_MM SYSTEM
cd mod_ssl-2.8.10-1.3.26
../configure --with-apache=../apache_1.3.26/
cd ../mod_perl
perl Makefile.PL DO_HTTPD=1 APACHE_PREFIX=/usr/local/apache APACHE_SRC=../apache-1.3.26/src USE_APACI=1 EVERYTHING=1 APACI_ARGS='--enable-module=ssl'
make

.../apache-1.3.26/src/httpd -l
should list both mod_ssl.c and mod_perl.c

Mitchel, Jennifer (Jem) wrote:
> Hi all,
>
> How do I get BOTH mod_perl and mod_ssl built into and working in Apache?
>
> I had mod_perl successfully built into my apache to use Authentication hook.
>
> Then I added mod_ssl in and I started to get errors from my .htaccess file
>
> Error:
> [Fri Nov 15 14:39:03 2002] [alert] [client 135.2.60.152] /web/content/askLucent/password-reset/cgi-bin/.htaccess: Invalid command 'PerlSetVar', perhaps mis-spelled or defined by a module not included in the server configuration
>
>
> Contents of .htaccess
>
> AuthName "NT Domain\Login and Password"
> AuthType Basic
> #PerlSetVar NT_Controllers 'na02il0015dc00:na02il0015dc01'
> PerlSetVar NT_Controllers 'na02il0015dc04:na02il0015dc01:NA02IL0015DC02'
> PerlAuthenHandler Apache::AuthenN2
> require valid-user
>

>
> so i rebuilt mod_perl back into apache and now I get errors of directives from mod_ssl in my httpd.conf file
>
> Error:
> 5e-cts root: /web/server/apache/1.3.22/bin/apachectl stop ; /web/server/apache/1.3.22/bin/apachectl start
> /web/server/apache/1.3.22/bin/apachectl stop: httpd (no pid file) not running
> Syntax error on line 1008 of /web/server/apache/1.3.22/conf/httpd.conf:
> Invalid command 'SSLRandomSeed', perhaps mis-spelled or defined by a module not included in the server configuration
> /web/server/apache/1.3.22/bin/apachectl start: httpd could not be started
>
>
> Lines from httpd.conf:
>
> SSLRandomSeed startup builtin
> SSLRandomSeed connect builtin
> SSLRandomSeed startup file:/dev/random 512
> SSLRandomSeed connect file:/dev/random 512
>
> I need to use both mod_perl and mod_ssl and it seems like keeps overwriting the other. How do I change this so I can get them built in together?
>
> Thank you
> Jem
>

--
_.,-*~`^'~*-,._ Danny Rathjens _.,-*~`^'~*-,._
FireCast: Rock solid kiosk software: http://wirespring.com

Re: Namespace problem

am 16.11.2002 09:29:17 von Stas Bekman

Thomas Hilbig wrote:
> I am having a namespace problem that is a slight twist
> to that described in the 1.0 docs
> http://perl.apache.org/docs/1.0/guide/porting.html#Name_coll isions_with_Modules_and_libs
>
> My problem is even simpler, but worse. If I have two
> CGI programs using the same required script.
> Initially one works without any problems. Then if I
> call up the other script, each time I get an error
> saying the subroutine cannot be found. Refresh the
> browser and it works, but then the first one starts to
> give an error;
>
> Error message:
> Undefined subroutine
> &ModPerl::ROOT::ModPerl::Registry::home_httpd_qx_2dbin_gdtes t1::goodDay
>
> called at /home/httpd/qx-bin/gdtest1 line 7.

It's not any different, please read that section again. You must be
hitting different children hence you see the problem with the first script.


--


____________________________________________________________ _________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/