Thank you very much for giving me a patient answer. I did follow your
instruction from previous mail but I still did get the output that you
told me. Here is my output that I get form my browser when I point to the
loop.htm location.
http://apple.gmu.edu:8529/embperl/x/loop.htm
>>>>>>>>>>>>>>>>>>>>>>>>
Not Found
The requested URL /embperl/x/loop.htm was not found on this server.
Apache/1.3.9 Server at apple.gmu.edu Port 8529
<<<<<<<<<<<<<<<<<<<<<<<
Here is the lines that I add in the bottom of the httpd.conf
>>>>>>>>>>>>>>>>>>>>>>>
SetEnv EMBPERL_DEBUG 2285
Alias /embperl /opt/local/download/apache_1.3.9/embperl/eg
<Location /embperl/x>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
</Location>
PerlRequire conf/startup.pl
PerlFreshRestart On
<<<<<<<<<<<<<<<<<<<<<<
What should I do? Do I have to deal with start.pl file?
Here is my startup.pl
>>>>>>>>>>>>>>>>>>>>>>
#!/usr/local/bin/perl
#modify the include path before we do anything else
BEGIN{
use Apache ();
use lib Apache->server_root_relative('lib/perl');
#commonly used modules
use Apache::Registry();
use Apache::Constants();
use CGI qw(-compile :all);
use CGI::Carp();
use HTML::Embperl();
#put any other common modules here
#use Apache::DBI();
#use LWP();
#use DB_File();
1;
<<<<<<<<<<<<<<<<<<<<<<<<<<<
Anything else might be wrong? Thank you in advance.
--apple
On Tue, 5 Oct 1999, Gerald Richter wrote:
> >
> > Can somebody help me for telling steps that embperl works. I saw a code in
> > the example page like:
> >
> > [$ while ($k, $v) = each (%ENV) $]
> > [+ $k +] = [+ $v +]
> > [$ endwhile $]
> >
> > How can I use it? Should I save it as test.pl and compile with command
> > perl test.pl? I went over the embperl web but still don't understand...
> >
> I you like to use it under mod_perl, then you have to modify your
> httpd.conf:
>
> For example (Taken from the "perldoc HTML::Embperl"):
>
> SetEnv EMBPERL_DEBUG 2285
>
>
> Alias /embperl /path/to/embperl/eg
>
>
> <Location /embperl/x>
> SetHandler perl-script
> PerlHandler HTML::Embperl
> Options ExecCGI
> </Location>
>
>
> Now restart your server and you can request for example a document
> "/path/to/embperl/eg/x/loop.htm" with
>
> http://localhost/embperl/x/loop.htm
>
> Gerald
>
>
>
>
>