You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Gary Nielson <ga...@garynielson.com> on 2002/10/11 16:09:12 UTC

Getting embperl to work with mod_perl

Hi,

I just rebuilt my apache installation to have the latest version of httpd
1.3.7 under Linux. I built it with Apachetoolbox. Mod_perl is 1.27. I have
1.3b3 installed on my system without mod_perl, but went into CPAN to get
the latest version and run it under mod_perl. But the make test didn't
work and I am wondering what I need to do to fix it, or if following the
directions at perl.apache.org/embperl for running under mod_perl will work
even with this make test error in CPAN.

Finally, are there older versions of Embperl I can still get hands on,
such as 1.3.4? I want to run ewok, which I downloaded from freshmeat, and
they say they run under 1.3.4 with mod_perl.

Here is the log of my cpan session:


loading...                    ok

Testing offline mode...

#0 ascii...                   ok
#1 pure.htm...                ok
#2 nooutput.htm...            ok
#3 nooutput.htm...            ok
#4 plain.htm...               ok
#5 plain.htm...               ok
#6 plain.htm...               ok
#7 plainblock.htm...          ok
#8 plainblock.htm...          ok
#12 error.htm...              ok
#13 error.htm...              ok
#14 error.htm...              ok
#15 errormismatch.htm...      ok
#16 errormismatchcmd.htm...   ok
#17 unclosed.htm...           ok
#18 notfound.htm...           ok
#19 notallow.xhtm...          ok
#25 rawinput/rawinput.htm...  ok
#26 var.htm...                ok
#27 varerr.htm...             ok
#35 escape.htm...             ok
#36 escape.htm...             ok
#39 tagscan.htm...            ok
#40 tagscan.htm-d 1 ...       ok
#42 if.htm...                 ok
#43 ifperl.htm...             ok
#44 loop.htm...               ok
#45 loopperl.htm...           ok
#46 table.htm...              ok
#47 table.htm-d 1 ...         ok
#49 lists.htm...              ok
#50 mix.htm...                ok
#54 object.htm...             ok
#56 input.htm...              ok
#57 hidden.htm...             ok
#58 java.htm...               ok
#59 inputjava.htm...          ok
#60 inputjs2.htm...           ok
#61 heredoc.htm...            ok
#66 keepreq.htm...            ok
#67 keepreq.htm...            ok
#73 rawinput/include.htm...   ok
#74 rawinput/include.htm...   ok
#75 execnotfound.htm...       ok
#76 includeerr1.htm...        ok
#77 includeerr1.htm...        ok
#81 includeerrbt.htm...       ok
#82 incif.htm...              ok
#87 callsub.htm...            ok
#88 callsub.htm...            ok
#89 executesub.htm...         ok
#90 executesub.htm...         ok
#91 execfirst.htm...          ok
#92 execsecond.htm...         ok
#93 execprint.htm...          ok
#94 execviamod.htm...         ok
#95 importsub.htm...          ok
#96 importsub.htm...          ok
#97 importsub2.htm...         ok
#98 subtextarea.htm...        ok
#99 subtextarea.htm...        ok
#101 nph/div.htm...           ok
#103 nph/nphinc.htm...        ok
#104 sub.htm...               ok
#105 sub.htm...               ok
#106 subtab.htm...            ok
#107 exit.htm...              ok
#108 exit2.htm...             ok
#110 exitreq.htm...           ok
#111 exitcomp.htm...          ok
#112 chdir.htm...             ok
#113 chdir.htm...             ok
#114 allform/allform.htm...   ok
#116 nochdir/nochdir.htm...   ok
#120 div.htm...               ok
#121 div.htm...               ok
#123 ofunc/div.htm...         ok
#181 SSI/ssibasic.htm...      ok
#182 SSIEP/ssiep.htm...       ok
#183 inctext.htm...           ok
#184 incperl.htm...           ok
#185 asp.htm...               ok
#186 syntax.htm...            ok
#187 syntax.htm...            ok
#188 changeattr.htm...        ok             
#189 changeattr.htm...        ok
#190 tagintag.htm...          ok
#191 rtf/rtfbasic.asc...      ok
#192 rtf/rtffull.asc...       ok
#193 rtf/rtfadv.asc...        ok
#194 rtf/rtfloop.asc...       ok
#195 rtf/rtfmeta.asc...       ok
#197 pod/pod.asc...           ok
#219 app/i18n.htm...          ok

Testing Execute function...

div.htm from file...          ok
div.htm from memory...        ok
div.htm to memory...          ok
div.htm to tied handle...     ok
div.htm from/to memory...     ok
error.htm to memory...        ok
EmbperlObject/epopage1.htm ...ok
EmbperlObject/sub/epopage2.htm ...ok
EmbperlObject/obj/epoobj3.htm ...ok
EmbperlObject/sub/epobless.htm ...ok
EmbperlObject/sub/epobless.htm ...ok

Testing Ouput Caching...

No cache 1...                 ok
No cache 2...                 ok
Expires in 1 sec...           ok
Expires in 1 sec (cached)...  ok
Wait for expire...            ok
Expires in 1 sec (reexec)...  ok
Expires function...           ok
Expires function (cached)...  ok
Expires function (reexec)...  ok
Expires string function (cached)...ok
Expires string function (reexec)...ok
Expires named function (cached)...ok
Expires named function (reexec)...ok
Change query_info...          ok
Change query_info (cached)... ok                           
Expires named function (cached)...ok
Change query_info (reexec)... ok
Expires named function (cached)...ok
Change query_info (cached)... ok
Modify source...              ok
Modify source query_info...   ok
$EXPIRES in source...         ok
$EXPIRES in source (cached)...ok
Wait for expire...            ok
$EXPIRES in source (reexc)... ok
sub EXPIRES in source...      ok
sub EXPIRES in source (cached)...ok


Starting httpd...       pid = 12773  ok

Testing mod_perl mode...

#0 ascii...                   ERR:Forbidden
Input:          test/html/ascii
Output:         test/tmp/out.htm
Log:            test/tmp/test.log

 ERRORS detected! NOT all test have been passed successfully


Found unexpected output in httpd errorlog:
[Fri Oct 11 09:11:19 2002] [notice] Digest: done
make: *** [test_dynamic] Error 1                               
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force

cpan>
cpan>       


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Getting embperl to work with mod_perl

Posted by Gerald Richter <ri...@ecos.de>.
Hi, there:
>
>
> I made sure the embperl test/ dir was chmod 777 user and group both
> nobody.
>

... and now we have a different problem:

>
> [-1][Sun Oct 13 21:07:13 2002] [notice] Digest: done
>

make test doesn't like this notice, also it isn't an error. Just run make
test with

make test TESTARGS="-i"

this will ignore this message. As long as you don't see any other errors
everything is fine

>
> I noticed that the pid being used to start httpd isn't to be the
> pid that is actually running httpd.
>
>
> Do I need to kill the apache process first? Where is make test getting the
> pid number for httpd?
>

make test starts (and stops) it's own httpd, so you don't see it afterwards
in the ps listing. You don't need to stop the httpd, because make test is
using another port.

Gerald

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Getting embperl to work with mod_perl

Posted by Gary Nielson <ga...@garynielson.com>.
Hi, there:

I have tried this again unsuccessfully. Let me elaborate. I built apache
with mod_perl with Apachetoolbox. I am trying to build embperl 1.3.4 with
an already-installed mod_perl. I followed the INSTALL.pod instructions and
first gave the path to httpd.h (/usr/local/apache/include, then the path
to the executable at /usr/local/apache/bin.

I made sure the embperl test/ dir was chmod 777 user and group both
nobody. 

When testing mod_perl mode, this is what happens:

Starting httpd...       pid = 12867  ok

Testing mod_perl mode...

#0 ascii...

[-1][Sun Oct 13 21:07:13 2002] [notice] Digest: done

Input:          test/html/ascii
Output:         test/tmp/out.htm
Log:            test/tmp/test.log

 ERRORS detected! NOT all test have been passed successfully

make: *** [test_dynamic] Error 1

I noticed that the pid being used to start httpd isn't to be the
pid that is actually running httpd. 

 2338 ?        S      0:00 /usr/local/apache/bin/httpd
 2512 ?        S      0:00 /usr/local/apache/bin/httpd
 2513 ?        S      0:00 /usr/local/apache/bin/httpd
 2514 ?        S      0:00 /usr/local/apache/bin/httpd
 2515 ?        S      0:00 /usr/local/apache/bin/httpd
 2516 ?        S      0:00 /usr/local/apache/bin/httpd
 2595 ?        S      0:00 /usr/local/apache/bin/httpd
11765 ?        S      0:00 /usr/local/apache/bin/httpd
                                    
Do I need to kill the apache process first? Where is make test getting the
pid number for httpd?

Any help appreciated.

Thanks.
Gary


On Fri, 11 Oct 2002, Gerald Richter wrote:

> >
> > Finally, are there older versions of Embperl I can still get hands on,
> > such as 1.3.4? I want to run ewok, which I downloaded from freshmeat, and
> > they say they run under 1.3.4 with mod_perl.
> >
> 
> It's on cpan, you just have to request that version or goto search.cpan.org.
> 
> You can also download it from ftp://ftp.dev.ecos.de/pub/perl/embperl/
> 
> >
> > Starting httpd...       pid = 12773  ok
> >
> > Testing mod_perl mode...
> >
> > #0 ascii...                   ERR:Forbidden
> 
> 
> Mostly this means that the test/ directory (and it's subdeirectory) are not
> readable by the user (usualy nobody) which Apache runs as. Make sure test
> (and the parent and sub-directorys) are readable by nobody
> 
> Gerald
> 
> 
> 
> 
> -------------------------------------------------------------
> Gerald Richter    ecos electronic communication services gmbh
> Internetconnect * Webserver/-design/-datenbanken * Consulting
> 
> Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
> E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
> WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> -------------------------------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 

-- 
Gary Nielson
National Producer - Knight Ridder Digital
http://www.knightridderdigital.com/
Phone: 704-359-5779
Yahoo ID: garynielson



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: Getting embperl to work with mod_perl

Posted by Gerald Richter <ri...@ecos.de>.
>
> Finally, are there older versions of Embperl I can still get hands on,
> such as 1.3.4? I want to run ewok, which I downloaded from freshmeat, and
> they say they run under 1.3.4 with mod_perl.
>

It's on cpan, you just have to request that version or goto search.cpan.org.

You can also download it from ftp://ftp.dev.ecos.de/pub/perl/embperl/

>
> Starting httpd...       pid = 12773  ok
>
> Testing mod_perl mode...
>
> #0 ascii...                   ERR:Forbidden


Mostly this means that the test/ directory (and it's subdeirectory) are not
readable by the user (usualy nobody) which Apache runs as. Make sure test
(and the parent and sub-directorys) are readable by nobody

Gerald




-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org