public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Gerrit P. Haase" <gp@familiehaase.de>
To: "Dan Horne" <dhorne@xtra.co.nz>
Cc: cygwin@cygwin.com
Subject: Re: Anyone got mod_perl working?
Date: Fri, 04 Jan 2002 08:31:00 -0000	[thread overview]
Message-ID: <1846198563.20020104165359@familiehaase.de> (raw)
In-Reply-To: <BLEDKFLJDLPNJONGFLHNEEICBPAB.dhorne@xtra.co.nz>

Hallo Dan,

Am 2002-01-02 um 23:07 schriebst du:

> thanks to those who replied. I have something working, but I'm not sure if
> it will come back to bite me later on.

I figured out that Apache 1.3.2x is really slow on Cygwin if compared with
Apache 2.x. but I didn't tried to build Apache2 with mod_perl yet.

> After I've had a play for a while, I may come across a few problems - which
> may arise from the way I've installed things, or may be from my code. To try
> and eliminate the former, please let me know if I did anything fatally
> wrong.

No, not a mistake of you, the httpd.conf for the mod_perl tests doesn't work
OOTB on Cygwin.

> Notes:
> * After scouring the net, I found someone who mentioned that they rarely got
> "make test" working, but the installation always ran. So after continually
> editing scripts and then hitting the next problem, I decided to skip the
> testing.

I have it working, it it tells me "All tests successful, 8 tests skipped."
at the end;)  I my previous mail I described the two changes I made to the
test.conf file.

> * I avoided the DSO route as it just seemed to be giving me grief

> 1. Install (everything untarred in /tmp):

> in /tmp/mod_perl-1.26

I used a newer mod_perl version from CVS, but there are no greater changes.

>    $ perl Makefile.PL USE_APACI=1 EVERYTHING=1
> PERL_EXTRA_CFLAGS=-DUSEIMPORTLIB DO_HTTPD=1 APACHE_SRC=../apache_1.3.22

perl Makefile.PL \
 EVERYTHING=1 \
 APACHE_SRC=../apache_$APACHE_VER/src \
 USE_APACI=1 \
 PREP_HTTPD=1 \
 DO_HTTPD=1 2>&1 | tee $CWD/log.configure-mod_perl


> in /tmp/apache_1.3.22

I used Apache 1.3.20 and I needed to modify the Apache Makefile
because libperl5_6_1.a isn't searched only libperl.a:

So I need to do this:
perl -i.bak -p -e 's#-lmm#-lmm -lperl5_6_1#;' $TMP/apache_$APACHE_VER/src/Makefile

or something like that before configuring everything:
ln -s /lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a /lib/libperl.a


>     a) In the "aliases" section, I entered:

>        Alias /perl/ "/var/www/perl/"

>        <Directory "/var/www/perl">
>           Options Indexes FollowSymLinks MultiViews
>           AllowOverride None
>           Order allow,deny
>           Allow from all
>        </Directory>

>     b) Then add the following directive - is this correct?

>        <IfModule mod_perl.c>
>          <Location /perl>
>            SetHandler perl-script
>            PerlHandler Apache::Registry
>            Options +ExecCGI
>          </Location>
>        </IfModule>

Looks ok.
I used this for the beginning:
<IfModule mod_perl.c>
    
    <Location /perl>
        SetHandler      perl-script
        PerlHandler     Apache::Registry
        Options         +ExecCGI
        PerlSendHeader  On
    </Location>

</IfModule>

>     c) restart apache


> 3. Test:

> In /var/www/perl, create test.pl as is in Stas Beckman's mod_perl Guide:

>     print "Content-type
>     print "Server's environment\n";
>     foreach ( keys %ENV)
>     {
>        print "$_\t$ENV{$_}\n";
>     }

> I had to set the permissions to 755.

> The result in my browser:

>     SERVER_SOFTWARE     Apache/1.3.22 (Cygwin) mod_perl/1.26
>     SERVER_ADMIN        dhorne@DAN-NOTEBOOK
>     REMOTE_ADDR 192.168.1.3
>     DOCUMENT_ROOT       /usr/local/apache/htdocs
>     REQUEST_URI         /perl/test.pl
>     REQUEST_METHOD      GET
>     SERVER_PORT         8080

Seems to work;)

Gerrit
-- 
=^..^=                                        mailto:gp@familiehaase.de


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

  reply	other threads:[~2002-01-04 16:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-01 23:57 Dan Horne
2002-01-02  5:17 ` Stipe Tolj
2002-01-02  8:32 ` Gerrit P. Haase
2002-01-02 14:07 ` Dan Horne
2002-01-04  8:31   ` Gerrit P. Haase [this message]
2002-01-04 18:36     ` Dan Horne
2002-01-04 19:39       ` Robert Collins
2002-01-05  3:35         ` Gerrit P. Haase
2002-01-09  9:20       ` Recurring message? " Eric M. Monsler
2002-01-09 10:12         ` Gerrit P. Haase

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1846198563.20020104165359@familiehaase.de \
    --to=gp@familiehaase.de \
    --cc=cygwin@cygwin.com \
    --cc=dhorne@xtra.co.nz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).