Heyo,
First off -- I am new to Embperl, so perhaps I missed a thing or two.
If this is the case, any 'steering' in the right direction would be
appreciated. ;-) I know this is kind of like overload -- so thanks in
advance.
I am trying to put the newest version up in production (yeah, I know
-- beta). I initially played with 2.0b5 -- and it did all I wanted.
Since then, 2.0b7 has been released -- and when I installed it problems
came up.
Oh, I have searched for my answers in README.v2, Changes.pod and the
perldoc pages.
Please see below for my SETUP and CONFIG
Listed in no real order:
1. What happened to EMBPERL_VIRTLOG???
(didn't work with PerlSetEnv either)
- this worked for me with 2.0b5
2. EMBPERL_OBJECT_BASE does not seem to work in my Location pragma
- given the config below, I would just get an error in the
embperl.log about 'kaka.epl' not being found.
- without the 'root' directive, errormsg changed to '_base.epl'
cannot be found.
3. Is the 'chdir' broken?
- For testing purposes, I wrote a little SCRIPT (see below) that
opened up the current directory (./) and displayed a list of the
'cat'ed contents.
- It worked nicely in 2.0b5 (to my delight, as it was very early
in my initial investigation)
- It now spits out the directory contents of my system root (/)
=-(
- I could not seem to change this playing with the 'optDisableChdir'
(is there another undocumented option to enable this now?)
4. Here is the *real* newbie quesion: Is there an easy way to set options?
(aka a readable alternative to the EMBPERL_OPTIONS bitmask)
would a start.pl script which each option listed work?
5. And finally the can of worms that I spent a bit of time on: The 'Indexes' thing
Under 2.0b5 I had 'Indexes' turned on so I could go to the dir and run
the script I wanted to test. It worked.
Under 2.0b7, it stopped working. When I go to the directory, it
offers me a download popup. Inspecting the 'HEADERS' my browser is
seeing we get the following:
200 OK
Connection: close
<snip>
Content-Type: httpd/unix-directory
Inspecting the rest rest of the request I get the output of my
'base.epl' being evaluated with nothing included where I make the
Execute(*) call. The 'embperl.log' shows a normal request.
If I do this for a directory not under the control of Embperl::Object:
200 OK
Connection: close
<snip>
Content-Type: text/html
...(normal apache directory thing being displayed)...
If I use the EMBPERL_ALLOW (see below), I then get an error:
403 Forbidden
Connection: close
<snip>
Content-Type: text/html; charset=iso-8859-1
With the embperl.log:
[3861]REQ: ***** Start Request at Thu Apr 11 20:48:23 2002
[3861]Use App: Embperl
[3861]Formdata... length = 0
[3861]ERR: 403: : Access Forbidden for '/eptest/test/'
Now this even happens if I have an 'index.html' file in that
directory, which I have only been able to access with a direct
request! Not exactly what I wanted. ;-)
So, if your still reading -- any help would be welcome and appreciated.
Let me know if I missed including any information (I think I have my
/etc/passwd here somewhere...:)
Cameron
==============================
SETUP:
==============================
Quick info on my server/software:
Machine/Server:
% uname -a
Linux enki 2.4.4-xfs #1 Thu Jun 21 12:40:35 CDT 2001 i686 unknown
% perl -v
This is perl, v5.6.0 built for i686-linux
..snip..
% (from apache -- I have not messed with the headers, so these are accurate)
Apache/1.3.22 (Unix) (Red-Hat/Linux) Embperl/2.0b7 mod_perl/1.26
==============================
CONFIG: (via httpd.conf)
==============================
PerlModule Embperl
EMBPERL_SESSION_HANDLER_CLASS no
EMBPERL_DEBUG 10477
EMBPERL_OPTIONS 16
EMBPERL_LOG /var/log/httpd/embperl.log
# EMBPERL_VIRTLOG /embperl/log
# EMBPERL_ALLOW (\.htm.?|\.epl$)
EMBPERL_OBJECT_BASE kaka.epl
# EMBPERL_OBJECT_BASE base.epl
<Location /eptest>
EMBPERL_RECIPE Embperl
EMBPERL_APPNAME eptesting
EMBPERL_OBJECT_BASE base.epl
EMBPERL_OBJECT_STOPDIR /var/www/html/eptest
EMBPERL_URIMATCH "\.htm.?"
SetHandler perl-script
PerlHandler Embperl::Object
Options ExecCGI Indexes
</Location>
==============================
SCRIPT: (foo.html, in an emtpy subdir processed by my base.epl)
==============================
This is a subdirectory that contains the following files:
<br />
[-
$dir = opendir(DIR, '.');
@tmplist = readdir(DIR);
@list = grep (!/^\./, @tmplist);
-]
<ul>
[$ foreach $file (@list) $]
<li>[+ $file +] <br />
<pre style="{background-color: #cccccc;}">
[+ `cat $file` +]
</pre>
</li>
[$ endforeach $]
</ul>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]