Re: mod perl , windows/apache problem

2003-07-29 Thread Randy Kobes
On Mon, 28 Jul 2003, Erik Browaldh wrote:

 I have written a program that takes argument from html-formula
 and read and write it to a textfile.

 When I tried it with perl mod 2, under windows with apache it
 doesnt work anymore. No new entries are written to the
 log-file.txt Ive tried chmod, especially r/w accesses but that
 doesnt seem to help.
[ ... ]
 alarm(30);

As Mustafa mentioned in another reply, you might want to
try it without the flock() below [and also perhaps try without
the alarm() call above]. Also, any messages in the error
log would be helpful.

[ ... ]
 open T,log-file.txt || die cant open T for write $!;
 flock T,2; # write lock
[ ... ]
 open (T,log-file.txt) || die Cant open file T for read $!;
 flock T,1;

As Stas explained in another thread today, the directory
in which these files have been opened may not be the one
in which your script resides. Try giving the full path to
any files you're opening.

-- 
best regards,
randy kobes


Re: mod perl , windows/apache problem

2003-07-29 Thread Stas Bekman
Randy Kobes wrote:
On Mon, 28 Jul 2003, Erik Browaldh wrote:


I have written a program that takes argument from html-formula
and read and write it to a textfile.
When I tried it with perl mod 2, under windows with apache it
doesnt work anymore. No new entries are written to the
log-file.txt Ive tried chmod, especially r/w accesses but that
doesnt seem to help.
[ ... ]

alarm(30);


As Mustafa mentioned in another reply, you might want to
try it without the flock() below [and also perhaps try without
the alarm() call above]. Also, any messages in the error
log would be helpful.
[ ... ]

open T,log-file.txt || die cant open T for write $!;
flock T,2; # write lock
[ ... ]

open (T,log-file.txt) || die Cant open file T for read $!;
flock T,1;


As Stas explained in another thread today, the directory
in which these files have been opened may not be the one
in which your script resides. Try giving the full path to
any files you're opening.
and Colin will post shortly a workaround until we provide an in-core solution.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


mod perl , windows/apache problem

2003-07-28 Thread Erik Browaldh
Hello everyone!

I have written a program that takes argument from html-formula and read and
write it to a textfile.
When I tried it with perl mod 2, under windows with
apache it doesnt work anymore.
No new entries are written to the log-file.txt
Ive tried chmod, especially r/w accesses
but that doesnt seem to help.
also, .cgi files is renamed as .pl and the first line #!/usr/bin/perl -w
is deleted.
Maybe some configurations are wrong?
More comments are followed in the code below.
Under Linux, Apache this program works
Greatful for helps
Erik


alarm(30);
$POST_MAX=5000;
use CGI::Carp qw(fatalsToBrowser);
use CGI':standard';
use POSIX 'strftime';
($Second, $Minute, $Hour, $Day, $Month, $Year, $WeekDay, $DayOfYear, 
$IsDST) = localtime(time);

#get name and message from HTML-formular
$l_name=param('by'); # name
$l_mess=param('mess'); # message
if ($l_name eq ){ #nothing written in HTML-formula?
}
else{ #otherwise write name and message last in file
#(file path is: C:/WEB/Apache/projects/perl)
open T,log-file.txt || die cant open T for write $!;
flock T,2; # write lock
print T $l_name . \n; #concat: whiteSPACE
close T;
}
print Content-Type:text/html\n\n;

#reading from same file (ie C:/WEB/Apache/projects/perl)
open (T,log-file.txt) || die Cant open file T for read $!;
flock T,1;
while ($row=T){
  $tagdata=$tagdata . $row;#all txt-data inlst i en variabel!
}
close T;
@tuples=split(/\n/,$tagdata);# split w.r.t  whitespace
$name4=$tuples[0]; #I just want to save the last 4 messages in the file
$name3=$tuples[1];
$name2=$tuples[2];
$name1=$tuples[3];
$tmp_nam=$tuples[4];



if($l_name eq ){ #IF nothing is written in the HTML-formula, THEN
$name4=$tuples[0]; #take old information
$name3=$tuples[1];
$name2=$tuples[2];
$name1=$tuples[3];
}
else{  #else move up information (ie only saving last 4 entries)
  $name4=$name3;
  $name3=$name2;
  $name2=$name1;
  $name1=$tmp_nam;
}
# for html-document in the same directory as perl-script, I now had to set
#the whole path, which wasnt necessary under Linux/Apache.
open (F,C:/WEB/Apache/projects/perl/plot_txt.html) || die Cant open $!;
flock F,1;
while ($row=F){
  $row=~s/!---(.*?)---/eval$1/eg; #substitution in html-doc
  print $row;
}
close F;
#this file also lies under C:/WEB/Apache/projects/perl
open T,log-file.txt || die cant open T for write $!;
flock T,2; # skrivls
print T $name4 . \n;
print T $name3 . \n;
print T $name2 . \n;
print T $name1 . \n;
close T;



Re: Static mod-perl with apache 1.3.27 on OS 10.2.2

2002-11-25 Thread Randall Perry
Whoops, guess I was tired last night. Am alert enough today to discover my
error. Instead of this in the apache conf:
 --activate-module=src/modules/perl/libperl.a
I had this:
 --activate-module=src/modules/libperl.a

Everything's working now.


 Randall Perry wrote:
 Trying to compile static mod-perl using the following configs.
 
 You don't say what configs. Please review the build process at:
 http://perl.apache.org/docs/1.0/guide/install.html
 
 moreover when reporting problems make sure to follow these guidelines:
 http://perl.apache.org/docs/1.0/guide/help.html#How_to_Report_Problems
 (hint: look at the shortcuts menu on the left at all pages on
 perl.apache.org)
 
 Everything
 runs without error, except libperl.a is never built in
 apache_1.3.27/src/modules -- get the following error:
 
 === src/modules/libperl.a
 /bin/sh: cd: libperl.a: No such file or directory
 
 Can someone help?
 
 

-- 
Randall Perry
sysTame

Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales

http://www.systame.com/





Re: mod perl 2.0 /Apache 2.0

2002-11-25 Thread Stas Bekman
Rick, mod_perl questions should go to the modperl list. thanks.
http://perl.apache.org/maillist/modperl.html

Rick Tan wrote:


I have been experimenting with mod_perl for the first time in the past 
week.  My frustration level emanates from making old cgi scripts to work 
with mod_perl/apache 2.0.   The scripts were written to be invoked as 
http://some.server/myscript/other_path?  The script name in this 
case is myscript, other_path is part of the path_info pointing to some 
data repository on the server.  The combination of mod_perl/Apache 2.0 
seems to think that the cgi script is called myscript/other_path, it 
is unable to parse these data.  Am I missing some directives for 
mod_perl to effect this? The same script work with Apache with no 
mod_perl installed.

Does it work with Apache 1.3 or 2.0 using mod_cgi instead of mod_perl? 
You don't provide the relevant configuration section, so it's hard to tell.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Re: mod perl 2.0 /Apache 2.0

2002-11-25 Thread Stas Bekman
[ replies should go to the list and not to me :( ]

Rick Tan wrote:

It works with Apache 1.3.x/mod_cgi.  Apache 2.0/mod_cgi doesn't work 
either.

that's what I thought. Contact the httpd list then as this is not a 
mod_perl problem:
http://httpd.apache.org/lists.html#http-users


Stas Bekman wrote:


Rick, mod_perl questions should go to the modperl list. thanks.
http://perl.apache.org/maillist/modperl.html

Rick Tan wrote:


I have been experimenting with mod_perl for the first time in the 
past week.  My frustration level emanates from making old cgi scripts 
to work with mod_perl/apache 2.0.   The scripts were written to be 
invoked as http://some.server/myscript/other_path?  The script 
name in this case is myscript, other_path is part of the path_info 
pointing to some data repository on the server.  The combination of 
mod_perl/Apache 2.0 seems to think that the cgi script is called 
myscript/other_path, it is unable to parse these data.  Am I 
missing some directives for mod_perl to effect this? The same 
script work with Apache with no mod_perl installed.



Does it work with Apache 1.3 or 2.0 using mod_cgi instead of mod_perl? 
You don't provide the relevant configuration section, so it's hard to 
tell.

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com






--


__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




Static mod-perl with apache 1.3.27 on OS 10.2.2

2002-11-24 Thread Randall Perry
Trying to compile static mod-perl using the following configs. Everything
runs without error, except libperl.a is never built in
apache_1.3.27/src/modules -- get the following error:

=== src/modules/libperl.a
/bin/sh: cd: libperl.a: No such file or directory

Can someone help?

-- 
Randall Perry
sysTame

Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales

http://www.systame.com/





Re: Static mod-perl with apache 1.3.27 on OS 10.2.2

2002-11-24 Thread Stas Bekman
Randall Perry wrote:

Trying to compile static mod-perl using the following configs.


You don't say what configs. Please review the build process at:
http://perl.apache.org/docs/1.0/guide/install.html

moreover when reporting problems make sure to follow these guidelines:
http://perl.apache.org/docs/1.0/guide/help.html#How_to_Report_Problems
(hint: look at the shortcuts menu on the left at all pages on 
perl.apache.org)

Everything
runs without error, except libperl.a is never built in
apache_1.3.27/src/modules -- get the following error:

=== src/modules/libperl.a
/bin/sh: cd: libperl.a: No such file or directory

Can someone help?




--


__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




RE: mod perl and apache with ssl and openssl

2002-09-25 Thread FFabrizio


   Can anyone advise me on how to build
apache server with ssl and openssl and
using mod perl.

It's right there in the user's guide.

http://perl.apache.org/docs/1.0/guide/install.html#mod_perl_and_mod_ssl___op
enssl_

-Fran



Re: mod perl and apache with ssl and openssl

2002-09-25 Thread Michael Robinton



On Tue, 24 Sep 2002, Allan P. Magmanlac wrote:

 Hello,

Can anyone advise me on how to build
 apache server with ssl and openssl and
 using mod perl.

 this is how I do it WITHOUT mod perl support
 cd to modssl soure directory and then run the following command
 ./configure \
 --with-apache=../apache_1.3.26 \
 --with-ssl=../openssl-0.9.6g  \
 --prefix=/usr/local/root/httpd_1.3.26 \
 --with-crt=/usr/local/root/httpd/usr/local/www/conf/ssl.crt/server.crt \
 --with-key=/usr/local/root/httpd/usr/local/www/conf/ssl.key/server.key \
 --enable-module=proxy

 So how would I do it WITH mod perl support. (exact commands would
 be appreciated)

 Thanks


Sure, here's my receipe. Works every time

make sure open-ssl is built and installed
then
in apache-xxx/

untar and run the Fixpatch script for the appropriate version of
appache-ssl


rm apache/src/Configuration
rm /usr/src/apache/src/Configuration.apaci

edit /usr/src/apache/src/Configuration.tmpl and
modules, i.e.
activate mod_info.o, mod_rewrite.o, mod_so.o libproxy.a
or whatever you plan to use


then

in mod perl source directory
Run:
perl Makefile.PL \
APACHE_SRC=/usr/src/apache/src \
DO_HTTPD=1 \
USE_APACI=1 \
PREP_HTTPD=1 \
EVERYTHING=1 \


in apache directory
./configure --with-layout=Apache \
--activate-module=src/modules/perl/libperl.a
make
make install


Michael




mod perl and apache with ssl and openssl

2002-09-24 Thread Allan P. Magmanlac

Hello,

   Can anyone advise me on how to build
apache server with ssl and openssl and
using mod perl.

this is how I do it WITHOUT mod perl support
cd to modssl soure directory and then run the following command
./configure \
--with-apache=../apache_1.3.26 \
--with-ssl=../openssl-0.9.6g  \
--prefix=/usr/local/root/httpd_1.3.26 \
--with-crt=/usr/local/root/httpd/usr/local/www/conf/ssl.crt/server.crt \
--with-key=/usr/local/root/httpd/usr/local/www/conf/ssl.key/server.key \
--enable-module=proxy

So how would I do it WITH mod perl support. (exact commands would
be appreciated)

Thanks




Re: mod perl and apache with ssl and openssl

2002-09-24 Thread Brian Hirt

here's a simple script i use to build one of my servers, it builds
openssl, and apache with mod_ssl / mod_perl

On Tue, 2002-09-24 at 09:07, Allan P. Magmanlac wrote:
 Hello,
 
Can anyone advise me on how to build
 apache server with ssl and openssl and
 using mod perl.
 
 this is how I do it WITHOUT mod perl support
 cd to modssl soure directory and then run the following command
 ./configure \
 --with-apache=../apache_1.3.26 \
 --with-ssl=../openssl-0.9.6g  \
 --prefix=/usr/local/root/httpd_1.3.26 \
 --with-crt=/usr/local/root/httpd/usr/local/www/conf/ssl.crt/server.crt \
 --with-key=/usr/local/root/httpd/usr/local/www/conf/ssl.key/server.key \
 --enable-module=proxy
 
 So how would I do it WITH mod perl support. (exact commands would
 be appreciated)
 
 Thanks



# build script
#

export MOD_PERL=mod_perl-1.27
export MOD_PERL_TGZ=${MOD_PERL}.tar.gz

export MOD_SSL=mod_ssl-2.8.10-1.3.26
export MOD_SSL_TGZ=${MOD_SSL}.tar.gz

export OPENSSL=openssl-0.9.6g
export OPENSSL_TGZ=${OPENSSL}.tar.gz
export OPENSSL_PREFIX=/usr/local
export SSL_BASE=../${OPENSSL}

export APACHE=apache_1.3.26
export APACHE_TGZ=${APACHE}.tar.gz
export APACHE_SRC=../$APACHE/src;
export APACHE_PREFIX=/usr

rm -rf $APACHE
rm -rf $MOD_PERL
rm -rf $OPENSSL
rm -rf $MOD_SSL

gunzip  $OPENSSL_TGZ | tar xfop -
gunzip  $APACHE_TGZ | tar xfop -
gunzip  $MOD_SSL_TGZ | tar xfop -
gunzip  $MOD_PERL_TGZ | tar xfop -

cd $OPENSSL
./config --prefix=$OPENSSL_PREFIX
make  make install

cd ../$MOD_SSL
./configure \
--with-apache=../$APACHE \
--with-ssl=../$OPENSSL \
--with-crt=$APACHE_PREFIX/conf/ssl.crt/server.crt \
--with-key=$APACHE_PREFIX/conf/ssl.key/server.key \
--prefix=$APACHE_PREFIX



cd ../$MOD_PERL

perl Makefile.PL \
APACHE_PREFIX=$APACHE_PREFIX \
APACHE_SRC=../$APACHE/src \
DO_HTTPD=1 \
USE_APACI=1 \
EVERYTHING=1 \
APACI_ARGS=' --enable-module=so, \
--enable-module=ssl, \
--enable-module=proxy, \
--disable-module=imap, \
--disable-module=cgi, \
--disable-module=asis, \
--disable-module=autoindex, \
--disable-module=actions, \
--enable-module=info, \
--enable-module=usertrack'

make  make install



Re: mod perl and apache with ssl and openssl

2002-09-24 Thread Mike P. Mikhailov

Hello Allan P. Magmanlac,

Tuesday, September 24, 2002, 9:07:55 PM, you wrote:

APM Hello,

APMCan anyone advise me on how to build
APM apache server with ssl and openssl and
APM using mod perl.

APM this is how I do it WITHOUT mod perl support
APM cd to modssl soure directory and then run the following command
APM ./configure \
APM --with-apache=../apache_1.3.26 \
APM --with-ssl=../openssl-0.9.6g  \
APM --prefix=/usr/local/root/httpd_1.3.26 \
APM --with-crt=/usr/local/root/httpd/usr/local/www/conf/ssl.crt/server.crt \
APM --with-key=/usr/local/root/httpd/usr/local/www/conf/ssl.key/server.key \
APM --enable-module=proxy

APM So how would I do it WITH mod perl support. (exact commands would
APM be appreciated)

APM Thanks

Look at INSTALL file in the mod_ssl distribution directory. It contains
an example which describes actions needed to build apache with
mod_ssl and mod_perl support. I'm using these instructions without any
problem (RH7.2 on i686). The topic is 'Example', subtopic called 'Apache +
mod_ssl/OpenSSL + mod_perl/Perl'.

Good luck :)


-- 
WBR, Mike P. Mikhailov
mailto:[EMAIL PROTECTED]

This seems dangerously close to COBOL,something difficult to argue in favor of.




mod-perl and Apache 2.0.35

2002-04-30 Thread Kent, Mr. John

Anyone have instructions on how
to install mod-perl on Apache 2.0.35.

Mod-Perl is looking for Apache's /src file which
doesn't exist in 2.0.35.

Thanks,

John Kent

-



Re: mod-perl and Apache 2.0.35

2002-04-30 Thread Per Einar Ellefsen

At 18:50 30.04.2002, Kent, Mr. John wrote:
Anyone have instructions on how
to install mod-perl on Apache 2.0.35.

Mod-Perl is looking for Apache's /src file which
doesn't exist in 2.0.35.

Please remember that mod_perl 1.x is not compatible with Apache 2.x. The 
mod_perl development version for 2.0 that was released not long ago (1.99) 
is Apache 2 compatible. However, it hasn't stabilized yet. For the time 
being you'd be better off using mod_perl 1.x with Apache 1.3.x, but that's 
likely to change soon.


-- 
Per Einar Ellefsen
[EMAIL PROTECTED]





how to configure perl with apache server

2002-04-10 Thread rajesh



Hi,

We are facing problems in configuring perl with 
apache.

Could you please mail me how to configure 
it.

We are getting errors like

"Invalid command PerlSetVar" in httpsd.conf 
file.

while starting https server.

Please help me.

Regards,
Rajesh


Re: how to configure perl with apache server

2002-04-10 Thread simran

Hi Rajesh, 

Can you please include more information on how you are tring to
configure it. 

* Did you compile apache yourself? 
* What version of apache are you trying to use? 
* What is the relevant section in the httpd.conf file

At a glimpse, it looks like you might not have compiled mod_perl with
the EVERYTHING=1 option (or at least the relevant option that turns the
PerlSetVar feature on). 

cheers,

simran.


On Wed, 2002-04-10 at 17:40, rajesh wrote:
 Hi,
 
 We are facing problems in configuring perl with apache.
 
 Could you please mail me how to configure it.
 
 We are getting errors like
 
 Invalid command PerlSetVar in httpsd.conf file.
 
 while starting https server.
 
 Please help me.
 
 Regards,
 Rajesh




Re: how to configure perl with apache server

2002-04-10 Thread Ged Haywood

Hi there,

On Wed, 10 Apr 2002, rajesh wrote:

 We are facing problems in configuring perl with apache.

Please see the mod_perl Guide at http://perl.apache.org/guide, the
mod_perl cookbook (see http://modperlcookbook.org for details) and the
book we know here as the Eagle book which is in reality called
Writing Apache Modules with Perl and C, ISBN 1-56592-567-X.

Also see the file .../mod_perl-x.xx/SUPPORT for information about what
to tell this List when you have problems.

 We are getting errors like
 
 Invalid command PerlSetVar in httpsd.conf file.

You don't have mod_perl in your server.  mod_perl can either be
compiled in (in which case you can see it if you give the -l switch to
the Apache binary to see what it says is compiled in) or it may be
loaded after you start Apache (this is what we call DSO, in this case
you need at least to have mod_so.c compiled into the server.  Again
you will see this module with the -l switch.)  If mod_perl is not
compiled in you need to configure Apache to load the .so file, to do
that you need AddModule and LoadModule directives in the configuration
file.  It's all in the documentation but it takes time to read it all.
I urge you to do that.

73,
Ged.




Re: Perl on Apache

2001-08-02 Thread Ged Haywood

Hi there,

On Wed, 1 Aug 2001, Anthony @ PencilFight Design wrote:

 I'm having trouble reading a .cgi file on a virtual domain on my server.
[snip]
 Is there any way to check the set up. May be in the httpd.conf file [snip]

If you give the exact full pathname of the file and post your
httpd.conf, maybe someone will spot it.  Might be an idea to post the
script too unless it's enormous, in which case a link is preferable.
It's usually a good idea to read .../modperl/SUPPORT and post the
information requested in there when asking for help on this List (but
I don't think 'perl -V' is an issue in this case :).

How did the system spring into existence in the first place?

73,
Ged.




Re: Perl on Apache

2001-08-02 Thread Anthony @ PencilFight Design

Thanks for all of your help,
I got it working.
I just had to put the following in the httpd.conf file.

ScriptAlias /cgi-bin/ /var/www/html/somesite.com/htdocs/cgi-bin
ScriptAlias / /var/www/html/somesite.com/htdocs/


and uncomment out 
AddHandler cgi-script .cgi


Thanks again for all of your help!

:---:
   Anthony Minero
   Creative Director
   PencilFight Design
   PENCILFIGHT.COM
   2518 Lincoln Blvd.
   Los Angeles, CA. 90291
   310.403.6599
:---:

 From: [EMAIL PROTECTED] (julie wang)
 Date: Thu, 2 Aug 2001 13:07:38 -0700
 To: Anthony @ PencilFight Design [EMAIL PROTECTED]
 Subject: RE: Perl on Apache
 
 type:  whereis perl
 at your unix prompt and it should tell you the path to perl and type:
 
 perl -v
 
 This shows you the perl version and if it setup correctly it'll tell you.
 If you see anything else or any error, your perl is install incorrectly.
 
 -Original Message-
 From: Anthony @ PencilFight Design [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 01, 2001 4:41 PM
 To: julie wang
 Subject: Re: Perl on Apache
 
 
 Sorry to sound like such a newbie but how do I find out what my perl path
 is? I mean where it is set up?
 right now it is pointing to  /usr/bin/perl
 
 No I'm not sure it is set up correctly, How would I check?
 :---:
 Anthony Minero
 Creative Director
 PencilFight Design
 PENCILFIGHT.COM
 2518 Lincoln Blvd.
 Los Angeles, CA. 90291
 310.403.6599
 :---:
 
 From: [EMAIL PROTECTED] (julie wang)
 Date: Wed, 1 Aug 2001 16:41:34 -0700
 To: Anthony @ PencilFight Design [EMAIL PROTECTED]
 Subject: RE: Perl on Apache
 
 did you check your perl path to see if you're using the right one?  You
 sure
 your perl is working and install properly??
 
 -Original Message-
 From: Anthony @ PencilFight Design [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, August 01, 2001 4:30 PM
 To: [EMAIL PROTECTED]
 Subject: Perl on Apache
 
 
 Hello all,
 I'm having trouble reading a .cgi file on a virtual domain on my server.
 When I go to the file through a browser I just see the text but it does
 not
 execute it. I checked the permissions and they all are OK so I figured may
 be I don't have Perl installed properly.
 
 I'm running Red Hat 7.1
 
 Is there any way to check the set up. May be in the httpd.conf file to see
 if it's set up correctly?
 :---:
 Anthony Minero
 Creative Director
 PencilFight Design
 PENCILFIGHT.COM
 2518 Lincoln Blvd.
 Los Angeles, CA. 90291
 310.403.6599
 :---:
 
 
 
 
 
 




Perl on Apache

2001-08-01 Thread Anthony @ PencilFight Design

Hello all,
I'm having trouble reading a .cgi file on a virtual domain on my server.
When I go to the file through a browser I just see the text but it does not
execute it. I checked the permissions and they all are OK so I figured may
be I don't have Perl installed properly.

I'm running Red Hat 7.1

Is there any way to check the set up. May be in the httpd.conf file to see
if it's set up correctly?
:---:
   Anthony Minero
   Creative Director
   PencilFight Design
   PENCILFIGHT.COM
   2518 Lincoln Blvd.
   Los Angeles, CA. 90291
   310.403.6599
:---:




Patches for perl 5.6.1, Apache and modperl for the AIX 4.3 native dlopen

2001-04-22 Thread Jens-Uwe Mager
 PGP message


Mod Perl for Apache

2001-04-20 Thread jim . a . davidson

Sirs,
I am trying to build mod perl for Apache but it fails on the final make as
follows:
The system is AIX 4.3.2, Perl 5.6.1, Apache 3.1.19, Mod Perl 1.25
Using the flexible way of installing this,when I run the final make on the
Apache
build I am getting the following error messages:
Target "all" is up to date.
=== src/modules/standard
=== src/modules/perl
Target "all" is up to date.
=== src/modules/perl
Target "default" is up to date.

=== src/modules
cc -c  -I./os/unix -I./include   -DAIX=43
-DUSE_PTHREAD_SERIALIZED_ACCEc
cc -c  -I./os/unix -I./include   -DAIX=43
-DUSE_PTHREAD_SERIALIZED_ACCEc
cc  -DAIX=43 -DUSE_PTHREAD_SERIALIZED_ACCEPT -U__STR__
-DAIX_BIND_PROCE
ld: 0711-317 ERROR: Undefined symbol: .Perl_form
ld: 0711-317 ERROR: Undefined symbol: .perl_get_cv
ld: 0711-317 ERROR: Undefined symbol: .Perl_push_scope
ld: 0711-317 ERROR: Undefined symbol: PL_curstash
ld: 0711-317 ERROR: Undefined symbol: .Perl_save_hptr
ld: 0711-317 ERROR: Undefined symbol: .Perl_gv_stashpv 
.
.
.
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: 1254-004 The error code from the last command is 8.


Stop.
make: 1254-004 The error code from the last command is 2.   
 
Can you advise me as to what I may have missed.
Thanks.

Regards,

Jim 
___
BTcd  Information Systems Engineering
 CORES  Infrastructure Support 

* 0131-662 4724
*  
* [EMAIL PROTECTED]
*pp HWP186
  PO Box 234 (HOM-EH)
  Edinburgh 
  Midlothian , EH12 9UR
 
___






Win32 Perl with Apache.

2001-02-25 Thread Roman Melihhov

I've been trying to use ActiveState Perl 5.6.0 (623) with Apache/1.3.14 
(Win32). I've configured ScriptAlias and used proper #!/path/to/perl. 
Apache spawns Perl process, but it never returns anything and hangs, hangs 
and ... still hanging forever, even if I restart Apache child processes 
remain dead. Is there a way I can make latest ActiveState Perl working with 
Apache. Executable programs like counters return output and everything is 
smooth. I need perl to work with Apache. Ideas appreciated.

One,
Roman.




problem to configure perl with apache

2001-01-26 Thread initiative.fr : COUTEL Jean-Francois



Hello

It is my first install of perl and i have 
problem

I have install APACHE 10.3.14 with APXS, PHP 4.0.3 
pl1 with APXS, mysql and mod_perl-1.24_01 with apxs

apache, php and mysql are ok
perl is install but i can't use it

can you help me about
- configuration of httpd.conf for perl
- other configuration file?
- file exemple to test

Thanks 

Jean-Francois COUTEL
[EMAIL PROTECTED]


Re: problem to configure perl with apache

2001-01-26 Thread G.W. Haywood

Hi there,

On Fri, 26 Jan 2001, initiative.fr : COUTEL Jean-Francois wrote:

 It is my first install of perl and i have problem
 
 I have install APACHE 10.3.14 with APXS, PHP 4.0.3 pl1 with APXS, mysql and 
mod_perl-1.24_01 with apxs
 
 apache, php and mysql are ok
 perl is install but i can't use it

There isn't enough information here to figure out what kind of a problem
you have.  Please read the file called SUPPORT in the mod_perl directory,
(and please make sure your information is accurate next time you post:).

73,
Ged.





Re: problem to configure perl with apache

2001-01-26 Thread Jimi Thompson

I would suggest that you visit www.apachetoolbox.com and get the
toolbox.  Use that to install.  Since it uses sources that are known to
work with each other, it should be relatively painless.  It should come
off without a hitch.  Also, next time you post, you might want to
mention what your platform is (Linux, Unix, NT, etc.).  You also need to
be accurate about what versions you have installed.  I'm pretty sure you
"fat fingered" the Apache version.  Perl hasn't been version 1
since...well, let's just say that version 1 is older than I am :) and
leave it at that.  I'd also suggest that if you are having problems with
the httpd.conf you get a copy of O'Reilly's Apache The Definitive
Guide.  You can get it for cheap at www.bookpool.com.  The whole book is
pretty much devoted to the httpd.conf and goes into it in far more
detail than you can get from a mailing list.

HTH,

"initiative.fr : COUTEL Jean-Francois" wrote:

 Hello It is my first install of perl and i have problem I have install
 APACHE 10.3.14 with APXS, PHP 4.0.3 pl1 with APXS, mysql and
 mod_perl-1.24_01 with apxs apache, php and mysql are okperl is install
 but i can't use it can you help me about- configuration of httpd.conf
 for perl- other configuration file?- file exemple to
 test Thanks Jean-Francois [EMAIL PROTECTED]

--
Jimi Thompson
Web Master
Link.com

"It's the same thing we do every night, Pinky."





open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Richard Dice

Everyone:

Here's something that myself and my sysadmin guy have been working on
for a bit:  opendir appears to be broken for us on a new Apache/mod_perl
installation.

We've tried checking out the mailing list archives but nothing jumpped
out at us along these lines.

Any ideas from anyone? (much more info follows...)

Thanks,

   - Richard

(BTW, "use CGI::Carp 'fatalsToBrowser';" causes our installation to 
segfault when included in my startup.perl program, which is invoked
from within httpd.conf with 'PerlRequire startup.perl'... just to muddy
the waters some more. :-) )

(BTW 2, do Apache::Registry scripts now allow variable _not_ to have
explicit package declaration and/or explicit lexical declarations?
Damian is showing me a program that he wrote that has neither, and yet
runs under Apache::Registry, and this freaks me out.)

 Original Message 
Subject: open/opendir/readdir fail under latest perl/mod_perl/apache.
Date: Mon, 11 Dec 2000 13:17:59 -0500
From: Damian M Gryski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

   I've been trying to use opendir/readdir under mod_perl 1.24 with
   apache 1.2.14 under Debian GNU/Linux.  The system is an up-to-date
   Debian `woody' system, and so is using the .deb of perl 5.6.0

   The problem is that while neither opendir nor readdir actually return
   errors, they also don't return the results I'm expecting: namely,
   the directory contents.  Instead, the results consist of a list
   containing the correct # of items, but each item is a zero-length
   scalar (and _not_ the undefined value!) rather than a filename.

   This problem does not occur on a system running mod_perl 1.24
   with apache 1.3.12 and perl 5.005_03.  I can't find anything in the
   changelog for either mod_perl or apache suggesting a change in how
   opendir is used.

   Here's some example code that fails:

---8 CUT HERE 8---
#!/usr/bin/perl

use strict;

my $some_dir = "/home/dmg";

opendir(DIR, $some_dir) || die "can't opendir $some_dir: $!";
my @files = readdir(DIR);
closedir(DIR);

print "Content-type: text/plain\n\n";
print join("\n", @files), "\n";
exit 0;
---8 CUT HERE 8---

   On the working system, it correctly produces the list of files
   in my home directory.  On the `broken' system, it produces a list
   of zero-length strings. (On both systems, it works when run from the
   command line.)

   TIA,

   Damian

-- 
Damian Gryski
ShadNet Admin
[EMAIL PROTECTED]



Re: open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Stas Bekman

On Mon, 11 Dec 2000, Richard Dice wrote:

 Everyone:
 
 Here's something that myself and my sysadmin guy have been working on
 for a bit:  opendir appears to be broken for us on a new Apache/mod_perl
 installation.

Rich, please send in the relevant parts of the strace output, or may be
you will learn what's the problem while looking at it. I doubt it has
anything to do with mod_perl. Does this code work from the command line?

FYI, your code works for me...

_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/  






Re: open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Richard Dice

 Have you looked at the permissions and verified that the uid of the user
 running apache has permissions to list the contents of the directory?

It's a good suggestion, but we've been all up and down this one over
here.  (For instance, if it didn't have perms, then the opendir/readdir
commands would fail -- they're not failing, they're just giving garbage
output.)

Damian and I are now going through strace, per Stas' suggestion.
That didn't seem to yield any useful info, but we'll bring it to the 
list eventually.

We're now giving ltrace a go... sure, it yields a few gigabytes of
log information, but you gotta do what you gotta do...

Cheers,
  - Richard

-- 

 Richard Dice * Personal 519 635 9568 * Fax 519 635 9569
 ShadNet Creator * http://shadnet.shad.ca/
 Occasional Writer, HotWired * http://www.hotwired.com/webmonkey/
 "squeeze the world 'til it's small enough to join us heel to toe"
 - jesus jones



Re: open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Stas Bekman

On Mon, 11 Dec 2000, Richard Dice wrote:

  Have you looked at the permissions and verified that the uid of the user
  running apache has permissions to list the contents of the directory?
 
 It's a good suggestion, but we've been all up and down this one over
 here.  (For instance, if it didn't have perms, then the opendir/readdir
 commands would fail -- they're not failing, they're just giving garbage
 output.)

yup :)

 Damian and I are now going through strace, per Stas' suggestion.
 That didn't seem to yield any useful info, but we'll bring it to the 
 list eventually.
 
 We're now giving ltrace a go... sure, it yields a few gigabytes of
 log information, but you gotta do what you gotta do...

It shouldn't be gigabytes -- you want to strace only special events like
open and read, and you want to attach to the process only before running
the script (run under -X) -- so you should have just a few lines!!!

 % strace -p PID -e trace=open,read



_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/  





Re: open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Richard Dice

 It shouldn't be gigabytes -- you want to strace only special events like
 open and read, and you want to attach to the process only before running
 the script (run under -X) -- so you should have just a few lines!!!
 
  % strace -p PID -e trace=open,read

I was talking about ltrace, not strace, when I said it would take gigs.
And even then, I was wrong -- it was only about 50mb.  (And that didn't
take into account specifiying which events to trace on.)

Anyhow... here are the results...

Test program: /web/ShadNet/sys/cvs/webdocs/foo.mp  (no, it's
not the same as the one before... I tried an IO::Dir object
this time, but it makes an underlying call to Perl's 'opendir',
so it's equivalent to what I had before)
---
#!/usr/bin/perl -w

use strict;

use IO::Dir;

my $dir = new IO::Dir "/web/ShadNet/sys/cvs/webdocs";

print "Content-type: text/plain\n\n";

if ( defined($dir)) {
while (defined($_ = $dir-read)) {
print "[$_]\n";
}
}

undef $dir;

exit 0;
---

This works from the command line but not from Apache::Registry.

strace of seemingly-relevant bits via command line:
(this works)
---
munmap(0x40017000, 4096)= 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/dev/null", O_RDONLY|O_NONBLOCK|0x1) = -1 ENOTDIR (Not a directory)
open("/web/ShadNet/sys/cvs/webdocs", O_RDONLY|O_NONBLOCK|0x1) = 4
fstat(4, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
fcntl(4, F_SETFD, FD_CLOEXEC)   = 0
brk(0x81ca000)  = 0x81ca000
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 7), ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40017000
ioctl(1, TCGETS, {B38400 opost isig icanon echo ...}) = 0
write(1, "Content-type: text/plain\n", 25) = 25
write(1, "\n", 1)   = 1
getdents(4, /* 43 entries */, 3391) = 936
write(1, "[.]\n", 4)= 4
write(1, "[..]\n", 5)   = 5
write(1, "[CVS]\n", 6)  = 6
write(1, "[accountclaim]\n", 15)= 15
write(1, "[AppletTag.pm]\n", 15)= 15
write(1, "[admin-login.mp]\n", 17)  = 17
write(1, "[bugs.mp]\n", 10) = 10
write(1, "[bugs.mp.save]\n", 15)= 15
write(1, "[finger.mp]\n", 12)   = 12
write(1, "[index.mp]\n", 11)= 11
write(1, "[login.mp]\n", 11)= 11
write(1, "[logout.html]\n", 14) = 14
write(1, "[logout.mp]\n", 12)   = 12
write(1, "[menu.mp]\n", 10) = 10
write(1, "[motd.mp]\n", 10) = 10
write(1, "[msie.mp]\n", 10) = 10
write(1, "[newshad.mp]\n", 13)  = 13
write(1, "[nph-changegroup.mp]\n", 21)  = 21
write(1, "[nph-changelanguage.mp]\n", 24) = 24
write(1, "[nph-validate.mp]\n", 18) = 18
write(1, "[other.mp]\n", 11)= 11
write(1, "[page.mp]\n", 10) = 10
write(1, "[parsechangelog.mp]\n", 20)   = 20
write(1, "[poll.mp]\n", 10) = 10
write(1, "[shadfont.css]\n", 15)= 15
write(1, "[shadnet.css]\n", 14) = 14
write(1, "[shownews.mp]\n", 14) = 14
write(1, "[admin]\n", 8)= 8
write(1, "[alumni]\n", 9)   = 9
write(1, "[common]\n", 9)   = 9
write(1, "[developers]\n", 13)  = 13
write(1, "[development]\n", 14) = 14
write(1, "[online]\n", 9)   = 9
write(1, "[partner]\n", 10) = 10
write(1, "[password]\n", 11)= 11
write(1, "[polls]\n", 8)= 8
write(1, "[static]\n", 9)   = 9
write(1, "[util]\n", 7) = 7
write(1, "[classes]\n", 10) = 10
write(1, "[test-opendir.mp]\n", 18) = 18
write(1, "[test-opendir.mp~]\n", 19)= 19
write(1, "[foo.mp]\n", 9)   = 9
write(1, "[foo.mp~]\n", 10) = 10
getdents(4, /* 0 entries */, 3391)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
close(4)= 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
munmap(0x40017000, 4096)= 0
_exit(0)= ?
---

strace of seemingly-relevant bits via Apache::Registry
(this doesn't work)
---
munmap(0x40018000, 4096)= 0
open("/dev/null", O_RDONLY|O_NONBLOCK|0x1) = -1 ENOTDIR (Not a directory)
open("/web/ShadNet/sys/cvs/webdocs", O_RDONLY|O_NONBLOCK|0x1) = 5
fstat(5, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
fcntl(5, F_SETFD, FD_CLOEXEC)   = 0
brk(0x858d000)  = 

Re: open/opendir/readdir fail under latest perl/mod_perl/apache

2000-12-11 Thread Stas Bekman

On Mon, 11 Dec 2000, Richard Dice wrote:

  It shouldn't be gigabytes -- you want to strace only special events like
  open and read, and you want to attach to the process only before running
  the script (run under -X) -- so you should have just a few lines!!!
  
   % strace -p PID -e trace=open,read
 
 I was talking about ltrace, not strace, when I said it would take gigs.
 And even then, I was wrong -- it was only about 50mb.  (And that didn't
 take into account specifiying which events to trace on.)

Hmm, its manpage says : Its use is very similar to strace(1) but it's
irrelevant to the problem..
 
The only relevant bits are those where syscalls interact with the dir fd
more or less, so that's what's left:

 open("/web/ShadNet/sys/cvs/webdocs", O_RDONLY|O_NONBLOCK|0x1) = 4
 fstat(4, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
 fcntl(4, F_SETFD, FD_CLOEXEC)   = 0
 brk(0x81ca000)  = 0x81ca000
[snip interaction with STDOUT(fd=1)]
 getdents(4, /* 43 entries */, 3391) = 936

fd==4, and we have 43 files and it's fine.

now the registry script which is broken:

 open("/web/ShadNet/sys/cvs/webdocs", O_RDONLY|O_NONBLOCK|0x1) = 5
 fstat(5, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
 fcntl(5, F_SETFD, FD_CLOEXEC)   = 0
 brk(0x858d000)  = 0x858d000
 alarm(300)  = 0
 alarm(0)= 300
 getdents(5, /* 43 entries */, 2980) = 936

all fine till now the same 43 entries are read, and the alarm(0)  calls,
which appear on my system as well.

 alarm(300)  = 0
 alarm(0)= 300

apparently 43 times...

What happens if you run the same code on the server with no preloaded
modules and configurations? Only the registry alias?

Obviously using IO::Dir won't help you to debug this problem but will make
it even more complicated.

Another thing to try: 'su - httpd' or whatever user you are running the
server under and now run the script from the command line. Since you
probably don't have the passwd for httpd do 'su' to become root first.

_
Stas Bekman  JAm_pH --   Just Another mod_perl Hacker
http://stason.org/   mod_perl Guide  http://perl.apache.org/guide 
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/  





prob compiling mod_perl 1.24/perl 5.6.0/apache 1.3.12?

2000-08-30 Thread Daniel Piczak

can anyone be so kind to point out what i'm doing wrong ;o)

[beast]/home/beast/daniel/src/perl/mod_perl-1.24{139} root : make
(cd ../apache_1.3.12/src   make CC="cc";)
=== os/unix
=== os/unix
=== ap
=== ap
=== main
cc -c -I.. -I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE -I../os/unix -I../
include   -DSOLARIS2=260 -DMOD_PERL -DUSE_PERL_SSI -I/usr/local/include -D_L
ARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_EXPAT -I../lib/expat-lite -DNO_
DL_NEEDED `perl -MExtUtils::Embed -e
ccopts`   -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -
I/usr/local/lib/perl5/5.6.0/sun4-solaris/CORE  -I. -I../.. -DUSE_PERL_SSI -I
/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DMOD_PERL
http_config.c
In file included from /usr/include/sys/vnode.h:41,
 from /usr/include/sys/stream.h:21,
 from /usr/include/netinet/in.h:38,
 from ../include/ap_config.h:1081,
 from ../include/httpd.h:71,
 from http_config.c:75:
/usr/include/sys/resource.h:148: warning: `struct rlimit64' declared inside
parameter list
/usr/include/sys/resource.h:148: warning: its scope is only this definition
or declaration,
/usr/include/sys/resource.h:148: warning: which is probably not what you
want.
/usr/include/sys/resource.h:149: warning: `struct rlimit64' declared inside
parameter list
http_config.c: In function `ap_init_virtual_host':
http_config.c:1296: storage size of `limits' isn't known
*** Error code 1
make: Fatal error: Command failed for target `http_config.o'
Current working directory /ext4/home/daniel/src/perl/apache_1.3.12/src/main
*** Error code 1
make: Fatal error: Command failed for target `subdirs'
Current working directory /ext4/home/daniel/src/perl/apache_1.3.12/src
*** Error code 1
make: Fatal error: Command failed for target `apache_httpd'





Re: segfault: perl 5.6.0, apache 1.3.12, mod_perl 1.24 and XML::Parser

2000-05-22 Thread Doug MacEachern

On Sat, 20 May 2000, Matthew Darwin wrote:

 
 My apache dies about 30% of the time when handling any mod_perl request
 that requires XML::Parser.  Any other page (even pages that use
 mod_perl) are 100% ok.
 
 Are there any known issues with this (besides the requirement for
 --disable-rule=expat)?  This all worked fine with perl 5.005_03 +
 mod_perl 1.23.   I'll get more info if nobody has seen this before.

double check that Apache is being built with the CFLAGS you set for
large file support.  other than that, you'll need to get a stacktrace (see
SUPPORT doc)




segfault: perl 5.6.0, apache 1.3.12, mod_perl 1.24 and XML::Parser

2000-05-20 Thread Matthew Darwin


My apache dies about 30% of the time when handling any mod_perl request
that requires XML::Parser.  Any other page (even pages that use
mod_perl) are 100% ok.

Are there any known issues with this (besides the requirement for
--disable-rule=expat)?  This all worked fine with perl 5.005_03 +
mod_perl 1.23.   I'll get more info if nobody has seen this before.



Mod_perl compiled with:
perl Makefile.PL PERL_FIXUP=1 PERL_AUTHEN=1 PERL_CHILD_INIT=1 \
 PERL_POST_READ_REQUEST=1 PERL_STACKED_HANDLERS=1 \
 PERL_UTIL_API=1 DO_HTTPD=1 USE_APACI=1 PREP_HTTPD=1  

Apache compiled with:
export CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
./configure \
--disable-rule=WANTHSREGEX \
--disable-rule=expat \
--prefix=/local/httpd0 \
--disable-module=env \
--disable-module=negotiation \
--disable-module=include \
--disable-module=asis \
--disable-module=imap \
--disable-module=userdir \
--disable-module=setenvif \
--disable-module=autoindex \
--disable-module=userdir \
--enable-module=status \
--activate-module=src/modules/perl/libperl.a  


% perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration:
  Platform:
osname=linux, osvers=2.2.15, archname=i686-linux
uname='linux area51.ottawa.loran.com 2.2.15 #2 thu may 4 13:50:33 edt 2000 i686 
unknown '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define
use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef
  Compiler:
cc='gcc', optimize='-O2', gccversion=2.95 19990728 (release)
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64'
stdchar='char', d_stdstdio=define, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
libc=/lib/libc-2.1.2.so, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
 
 
Characteristics of this binary (from libperl):
  Compile-time options: USE_LARGE_FILES
  Built under linux
  Compiled at May 20 2000 12:16:02
  @INC:
/usr/lib/perl5/5.6.0/i686-linux
/usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i686-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl  




Re: possible bug: mod_perl 1.22 (Perl 5.6 / Apache 1.3.12)

2000-03-29 Thread JoshNarins


   Support for strings represented as a vector of ordinals

Literals of the form Cv1.2.3.4 are now parsed as a string composed
of characters with the specified ordinals.  This is an alternative, more
readable way to construct (possibly unicode) strings instead of
interpolating characters, as in C"\x{1}\x{2}\x{3}\x{4}".  The leading
Cv may be omitted if there are more than two ordinals, so C1.2.3 is
parsed the same as Cv1.2.3.

Strings written in this form are also useful to represent version "numbers".
It is easy to compare such version "numbers" (which are really just plain
strings) using any of the usual string comparison operators Ceq, Cne,
Clt, Cgt, etc., or perform bitwise string operations on them using C|,
C, etc.

In conjunction with the new C$^V magic variable (which contains
the perl version as a string), such literals can be used as a readable way
to check if you're running a particular version of Perl:

# this will parse in older versions of Perl also
if ($^V and $^V gt v5.6.0) {
# new features supported
}

Crequire and Cuse also have some special magic to support such literals.
They will be interpreted as a version rather than as a module name:

require v5.6.0; # croak if $^V lt v5.6.0
use v5.6.0; # same, but croaks at compile-time

Alternatively, the Cv may be omitted if there is more than one dot:

require 5.6.0;
use 5.6.0;

Also, Csprintf and Cprintf support the Perl-specific format flag C%v
to print ordinals of characters in arbitrary strings:

printf "v%vd", $^V; # prints current version, such as "v5.5.650"
printf "%*vX", ":", $addr;  # formats IPv6 address
printf "%*vb", " ", $bits;  # displays bitstring

See Lperldata/"Scalar value constructors" for additional information.

=head2 Improved Perl version numbering system

Beginning with Perl version 5.6.0, the version number convention has been
changed to a "dotted integer" scheme that is more commonly found in open
source projects.

Maintenance versions of v5.6.0 will be released as v5.6.1, v5.6.2 etc.
The next development series following v5.6.0 will be numbered v5.7.x,
beginning with v5.7.0, and the next major production release following
v5.6.0 will be v5.8.0.

The English module now sets $PERL_VERSION to $^V (a string value) rather
than C$] (a numeric value).  (This is a potential incompatibility.
Send us a report via perlbug if you are affected by this.)

The v1.2.3 syntax is also now legal in Perl.
See LSupport for strings represented as a vector of ordinals for more on 
that.

To cope with the new versioning system's use of at least three significant
digits for each version component, the method used for incrementing the
subversion number has also changed slightly.  We assume that versions older
than v5.6.0 have been incrementing the subversion component in multiples of
10.  Versions after v5.6.0 will increment them by 1.  Thus, using the new
notation, 5.005_03 is the "same" as v5.5.30, and the first maintenance
version following v5.6.0 will be v5.6.1 (which should be read as being
equivalent to a floating point value of 5.006_001 in the older format,
stored in C$]).



possible bug: mod_perl 1.22 (Perl 5.6 / Apache 1.3.12)

2000-03-28 Thread Dave Seidel

Hi,

Please for give if this is a FAQ, but I didn't see it mentioned in the
recent list archives.

I just upgraded to 5.6, and proceeded to upgrade from mod_perl 1.32_03 to
1.22 (under Apache 1.3.12, using gcc 2.95.1).  Everything built fine, but
httpd failed to start.  The error message was:

Apache.pm version 1.26 or higher required!
/usr/lib/perl5/site_perl/5.6.0/i686-linux/Apache.pm is only version 1.26
Perhaps you forgot to 'make install' or need to uninstall an old version?
Found: /usr/lib/perl5/site_perl/5.6.0/i686-linux/Apache.pm

Odd, eh?  Since when does 1.26 != 1.26?  :-)  After trying a bunch of stuff,
I realized that the error was coming from mod_perl.c, line 538:

if(SvNV(version) = MP_APACHE_VERSION) /*no worries*/
   return;

After looking up SvNV() to find that it produces a float, I changed line 526
from
#define MP_APACHE_VERSION 1.26
to
float MP_APACHE_VERSION = 1.26;

and now everything is working correctly.  What I don't undetrstand is that
the original code was identical in mod_perl 1.21, but I didn't have this
problem.  Could this be due to some internal change in Perl 5.6?

-- Dave

---
Dave Seidel
[EMAIL PROTECTED]
www.superluminal.com/dave/




Re: possible bug: mod_perl 1.22 (Perl 5.6 / Apache 1.3.12)

2000-03-28 Thread Doug MacEachern

On Tue, 28 Mar 2000, Dave Seidel wrote:

 and now everything is working correctly.  What I don't undetrstand is that
 the original code was identical in mod_perl 1.21, but I didn't have this
 problem.  Could this be due to some internal change in Perl 5.6?

probably, thanks for the fix!




How to use perl with apache??

1999-12-15 Thread Jangalwa, Dheeraj \(ETS - Equity Development Support\)

Hi,
 I have come to know that if i want to use perl for my dynamic web-pages, i
have to configure my apache with mod_perl module. I would really appreciate
if someone can provide me some help on how to do it or install perl module
for apache???

(pardon my proper english) All i am trying to achieve is, configure my
apache so that I can write perl scripts that can generate dynamic web-pages
(just like CGI stuff).

Thanx in advance

Raj Jangalwamailto:[EMAIL PROTECTED]
Dev. Support Team
ETSD 250 Vesey Street
WFC-NT 11th Fl.
New York, NY 10281-1315
===
Phone :-212-449-4753
Alpha pager :- 1-888-MERRIL-0





Re: How to use perl with apache??

1999-12-15 Thread Stas Bekman

  I have come to know that if i want to use perl for my dynamic web-pages, i
 have to configure my apache with mod_perl module. I would really appreciate
 if someone can provide me some help on how to do it or install perl module
 for apache???
 
 (pardon my proper english) All i am trying to achieve is, configure my
 apache so that I can write perl scripts that can generate dynamic web-pages
 (just like CGI stuff).

Please read the material at perl.apache.org, try the perl.apache.org/guide
first

 
 Thanx in advance
 
 Raj Jangalwa  mailto:[EMAIL PROTECTED]
 Dev. Support Team
 ETSD 250 Vesey Street
 WFC-NT 11th Fl.
 New York, NY 10281-1315
 ===
 Phone :-  212-449-4753
 Alpha pager :- 1-888-MERRIL-0
 
 
 
 



___
Stas Bekmanmailto:[EMAIL PROTECTED]  http://www.stason.org/stas
Perl,CGI,Apache,Linux,Web,Java,PC http://www.stason.org/stas/TULARC
perl.apache.orgmodperl.sourcegarden.org   perlmonth.comperl.org
single o- + single o-+ = singlesheavenhttp://www.singlesheaven.com