From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23769 invoked by alias); 2 Jan 2002 22:07:45 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 23734 invoked from network); 2 Jan 2002 22:07:39 -0000 Received: from unknown (HELO mta1-rme.xtra.co.nz) (210.86.15.129) by sources.redhat.com with SMTP; 2 Jan 2002 22:07:39 -0000 Received: from econ01 ([210.86.60.12]) by mta1-rme.xtra.co.nz with SMTP id <20020102220738.QMEW7478.mta1-rme.xtra.co.nz@econ01> for ; Thu, 3 Jan 2002 11:07:38 +1300 Reply-To: From: "Dan Horne" To: Subject: RE: Anyone got mod_perl working? Date: Wed, 02 Jan 2002 14:07:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Importance: Normal X-SW-Source: 2002-01/txt/msg00055.txt.bz2 Hi thanks to those who replied. I have something working, but I'm not sure if it will come back to bite me later on. 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. 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 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 $ perl Makefile.PL USE_APACI=1 EVERYTHING=1 PERL_EXTRA_CFLAGS=-DUSEIMPORTLIB DO_HTTPD=1 APACHE_SRC=../apache_1.3.22 $ make in /tmp/apache_1.3.22 $ make back in /tmp/mod_perl-1.26 $ make install back in /tmp/apache_1.3.22 $ make install $ /usr/local/apache/bin/apachectl start $ cat /usr/local/apache/logs/error_log [Thu Jan 3 10:02:22 2002] [notice] Apache/1.3.22 (Cygwin) mod_perl/1.26 configured -- resuming normal operations [Thu Jan 3 10:02:22 2002] [notice] Accept mutex: fcntl (Default: fcntl) 2. Update httpd.conf a) In the "aliases" section, I entered: Alias /perl/ "/var/www/perl/" Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny Allow from all b) Then add the following directive - is this correct? SetHandler perl-script PerlHandler Apache::Registry Options +ExecCGI 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 -----Original Message----- From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf Of Dan Horne Sent: Wednesday, January 02, 2002 8:58 PM To: cygwin@cygwin.com Subject: Anyone got mod_perl working? Hi has anyone out there got mod_perl working under cygwin? I'd love to see your notes. At the moment, I get stuck during the "make test" phase. The error_log is [notice] Destruction->DESTROY called for $global_object Subroutine fileparse_set_fstype redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 153. Subroutine fileparse redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 167. Subroutine basename redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 224. Subroutine dirname redefined at /usr/lib/perl5/5.6.1/cygwin-multi/File/Basename.pm line 237. [Wed Jan 2 20:38:42 2002] [warn] [notice] child_init for process 1624, report any problems to [no address given] [Wed Jan 2 20:41:41 2002] [error] [client 127.0.0.1] File does not exist: ./t/docs/test.html [Wed Jan 2 20:41:43 2002] [error] [client 127.0.0.1] File does not exist: ./t/docs/test.html [Wed Jan 2 20:41:46 2002] [error] [client 127.0.0.1] File does not exist: ./t/docs/test.html [Wed Jan 2 20:41:50 2002] [error] [client 127.0.0.1] File does not exist: ./t/docs/test.html [Wed Jan 2 20:41:50 2002] [error] [client 127.0.0.1] File does not exist: ./t/docs/test.html Cheers Dan -- 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/ -- 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/