FW: Tomcat or WebLogic's WebServer?

2001-04-24 Thread Wang, Pin-Chieh

Hi modperl guys,

Anybody can confirm about this performance issue?

PC

-Original Message-
From: Suresh Parmar [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 8:10 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat or WebLogic's WebServer?


Hi,
This is very interesting. The 30% degradation of performance with this
set-up is a lot. What would you recommend as an ideal situation.

Cheers.
Suresh.
- Original Message -
From: Eoin Woods [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 5:20 PM
Subject: Re: Tomcat or WebLogic's WebServer?


Hi Marc-Antoine,

It was actually me that found the 30% slowdown.  Thanks for confirming this
- that's most useful.

Cheers,

Eoin.
-Original Message-
From: CHARPENTIER Marc-Antoine [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 3:00 AM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat or WebLogic's WebServer?


Hello Filip,

my personal experience after testing both tomcat and apache in front of
tomcat for a web application using servlet/jsp and java classes, is that the
ajp protocol used by apache (written in C) and tomcat (written in java) for
the servlet to handle the HTTP requests, is slowing down the performances,
for something like 30% like you said.

hope this helps.


 -Message d'origine-
 De:   Eoin Woods [SMTP:[EMAIL PROTECTED]]
 Date: dimanche 22 avril 2001 20:27
 À:[EMAIL PROTECTED]
 Objet:Re: Tomcat or WebLogic's WebServer?

 Filip Hanik wrote:
  Tomcat is not a web server, it is a servlet/jsp engine.
  it does have a built in web server, not very good though.
  use apache (or netscape) httpd in front of weblogic for best performance
 Hi Filip,

 I'm interested to hear you say that. I can see why you might put Apache in
 front of Tomcat for reliability or security reasons.  Why would you put it
 there for performance reasons?

 I don't have exact figures to hand, but when we tested this recently I
 think
 we found that putting Apache in front of Tomcat slowed things down by
 about
 30%.

 What is your experience with this?

 Cheers,

 Eoin.
 --
 ~~
 ~ Eoin Woods, Platform Development Group
 ~ InterTrust Technologies, Santa Clara, CA
 ~ Mobile: +1-408-674-2671 ; Office: +1-408-855-0246
 ~ Email: [EMAIL PROTECTED]

 ==
 =
 To unsubscribe, send email to [EMAIL PROTECTED] and include in the
 body
 of the message signoff J2EE-INTEREST.  For general help, send email to
 [EMAIL PROTECTED] and include in the body of the message help.

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message signoff J2EE-INTEREST.  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message help.

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message signoff J2EE-INTEREST.  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message help.

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message signoff J2EE-INTEREST.  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message help.



RE: Forbidden access

2001-03-07 Thread Wang, Pin-Chieh

Hi,
Thanks for the reply, I have used the IP address of my machine (single IP
address) to be Allowed and it works.
But I don't know how to allow a group of users to access web server?
especially if there is no place to specify
the network mask.

 Hi,

 I build Apache_1.3.14 with mod_perl-1.25 on RedHat Linux 7.0 with DSO.
 Initially both server-status and server-info works fine, but some how
both
 of these pages denied my display request.(403 Forbidden )

 I have checked httpd.conf where I have
 Location /server-status
 SetHandler server-status
 Order deny,allow
 Deny from all
 Allow from .mydomain.com
 /Locatiom
 In the log file it simply says denied by server.

Are you sure that .mydomain.com is getting resolved correctly? Try using
IP.

As far as I can see DNS is working fine, nslookup can resolve the machine
name.

Also one should avoid using domain names on production server. It's a
performance hit since it turns HostnameLookups on.
http://httpd.apache.org/docs/misc/perf-tuning.html#runtime

Thanks for the comments.

PC

_
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/




Forbidden access

2001-03-06 Thread Wang, Pin-Chieh

Hi,

I build Apache_1.3.14 with mod_perl-1.25 on RedHat Linux 7.0 with DSO.
Initially both server-status and server-info works fine, but some how both
of these pages denied my display request.(403 Forbidden )

I have checked httpd.conf where I have
Location /server-status
SetHandler server-status
Order deny,allow
Deny from all
Allow frpm .mydomain.com
/Locatiom
In the log file it simply says denied by server.

I want tracking down the reason. and solve the problem.
I have Apache::DB installed.

Can anybody point me which module denied my request

Thanks for the help

PC 



error in threded perl

2001-02-27 Thread Wang, Pin-Chieh

Hi,

 I am installing Apache_1.3.14 / mod_perl-1.24_01 on Solaris system, Using
ActiveState 5.6 Build 623.

 During the "make test" phase  I get an error in modules/cgi  3/4 FAILED
test 4 , Failed 1/4 tests

At the  t/logs/error_log file I have
must fix $/ for threaded Perl
XXX: need to fix exit in t/net/header.t  w/ threads
[notice] child process terminating
[notice] push'd PerlChildExitHandler called, pid=
[notice] End block called for startup.pl


I'll appreciated if any one can give me some explanations.

Thanks

PC  





NISPlus-0.06-alpha problem

2001-02-13 Thread Wang, Pin-Chieh

Hi,
I recently build Apache_1.3.14 with Mod_perl-1.24_01 on Solaris system
when I testing NIS+ portion I got terminal hung in Module Table.pm

The code actually hung is in sub colnames. I also cut that portion onto
here. 
The line that atually waitting for return is the bolded blue line(which I
don't have a clue what it is doing.)
I was using interactive debugger to be able to isloate to this point.

Is there any person can point me in the right direction?

I'll appreciate any help

Thanks,

PC


sub colnames
{
  my($me) = shift;
  my($ret, $res);

  if (!defined($me-{'colnames'}))
  {
($ret, $res) = Net::NISPlus::table_info($me-fullPath);
if ($ret != 0)
{
  Warning("colnames error: ", niserror($ret), "\n");
  return ();
}
else
{
  $me-{'colnamesarr'} = $res-{'ta_cols'};
  foreach ($[..$#{@{$me-{'colnamesarr'}}})
  {
$me-{'colnameshash'}-{$me-{'colnamesarr'}-[$_]} = $_;
  }
}
  }
  return(@{$me-{'colnamesarr'}}) if wantarray;
  return($me-{'colnameshash'});
}



RE: Debug perl package in Apache

2001-02-11 Thread Wang, Pin-Chieh

Hi Sander,
Thanks for the info, I read the article you suggested, and try to testout
the server-status (as oppose to the perl-status
as the example suggested,) but my testing was not quite right, hope you can
answer my questions

First I can't put the IfDefine PERLDB block at the beginning of the
http.conf (I got httpd.conf syntax error 
when I run httpd -X -DPERLDB; Then I move the block to the end of the
http.conf file re-run the command then I get
% ./bin/httpd -X -DPERLDB
[notice] Apache::DB initialized in child 23415

the system is waiting for my call the request.
But when I call http://localhost/server-status I still don't got the debug
prompt. here I called server-status instead of perl-status. I guess I don't
understand how Debuger is configured into perl-status when
http://localhost/perl-status is called.
can you share some light on this?

Thanks,
PC
 The following is the additions in httpd.conf as described in the article.


IfDefine PERLDB

   Perl
  use Apache::DB ();
  Apache::DB-init;
   /Perl

   Location /
  PerlFixupHandler Apache::DB
   /Location

/IfDefine

In our first example, we will debug the standard Apache::Status module,
which is configured like so: 
PerlModule Apache::Status
Location /perl-status
PerlHandler Apache::Status
SetHandler perl-script
/Location

When the server is started with the debugging flag, a notice will be printed
to the console: 


-Original Message-
From: Sander van Zoest [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 08, 2001 5:04 PM
To: Wang, Pin-Chieh
Cc: Mod_perl list (E-mail); 'Stas Bekman'
Subject: Re: Debug perl package in Apache


On Thu, 8 Feb 2001, Wang, Pin-Chieh wrote:

 Any body has any ideals?  Also How can I debug an perl package under this
 environment?
 Appreciated for any help

Check out this useful article written by Dough MacEachern for PerlMonth.
http://www.perlmonth.com/features/mod_perl/mod_perl.html?issue=2

Cheers,

--
Sander van Zoest
[[EMAIL PROTECTED]]
Covalent Technologies, Inc.
http://www.covalent.net/
(415) 536-5218
http://www.vanzoest.com/sander/



Debug perl package in Apache

2001-02-08 Thread Wang, Pin-Chieh

Hi,
I build an Apache with Mod_Perl under DSO in Solaris. Apache seems works
fine. But
I now have a problem when AuthenNISPlus.pm get called and was not be able to
get password table(I think).

I have the following setting in httpd.conf
 Location /web 
  AuthName "[Web for Unix Users]"
  AuthType Basic
  PerlSetVar NISPlus_Passwd_Table passwd.org_dir
  PerlSetVar NISPlus_Group_Table group.org_dir
  PerlSetVar NISPlus_DEBUG 1
  PerlAuthenHandler Apache::AuthenNISPlus
  require group devusers sysadmin
  Order deny,allow
  Deny from all
  Allow from all
 /Location

But AuthenNISPlus.pm exited with "Not an ARRAY reference at line 58
look at this program from line 57 are

  foreach ($pwd_table-list()){
if(@{$_}[0] eq $name){
  $pwd = @{$_}[1];
  $group = @{$_}[3];
  last;

Any body has any ideals?  Also How can I debug an perl package under this
environment?

Appreciated for any help

Thanks,

PC



RE: modperl + FrontPage Server Extensions

2001-02-03 Thread Wang, Pin-Chieh

It should all work together, Although I haven't tested the versions you
mentioned.

PC

-Original Message-
From: Jose Albert [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 02, 2001 11:21 PM
To: [EMAIL PROTECTED]
Subject: modperl + FrontPage Server Extensions


Hi Everybody

I've a Linux box already running Apache/1.3.14 compiled with 
mod_perl-1.24_01 running Apache-ASP-2.03. Well the question is if 
Installing FrontPage Server Extensions will conflict?.  
   
Thanks in advance

Regards

-Jose

[EMAIL PROTECTED]
www.datacourse.com



Apache::ASP installation problem

2001-02-02 Thread Wang, Pin-Chieh

Hi,
I am using Apache 1.3.14 with mod_perl-1.24_01 on Solaris system
The Apache/Mod_perl part of build is working fine.
But when I installed Apache-ASP-2.07, during the make test part I got
Undefied Routine Devel/Symdump error
therefore the make test failed.
So, I download and try to install Devel-Symdump-2.00, 
the make test failed with error code 29 on Command failed for target
'test-dynamic'

Any person can provide any assistance will be appreciated.

Thanks

PC



RE: Apache::ASP

2001-02-01 Thread Wang, Pin-Chieh


If Ged did not answer your question well enough, check out
this answered as an FAQ item at:


http://www.apache-asp.org/faq.html#Apache%20errors%20on%20the%20PerlHandler%
20directive%20%3F

--Josh

Hi, Josh,
I now re-installed a fresh copy Apache_1.3.14 with mod_perl-1.24_01 with
USE_DSO=1
  -- now the LoadModule and AddModule directive is automatically added in
httpd.conf 
I then did the following steps
1. Installed Apache-ASP-2.07
2. Copied Apache-ASP-2.07/site/eg directory into /usr/local/apache/htdocs
3. Modified httpd.conf file by adding 
Directory "/usr/local/apache/ htdocs/eg"
Options All
AllowOverride All
Order allow,deny
Allow from all
 /Directory
   AND
 Location /asp/
SetHandler perl-script
PerlHandler Apache:ASP
PerlSetVar Global /tmp
 /Location

When I call http://host/eg/index.html to test asp I got
#!/usr/local/bin/perl5 asp
[0]%([0]%source)

on the browser

there is no error at error_log. and the perl on my machine is at
/usr/local/perl and is 5.6
I tried to modify the #! line to indicate the location of local perl, but
still not work.

any body give me any guidance?

Thanks

PC






RE: Apache::ASP

2001-02-01 Thread Wang, Pin-Chieh



Make sure you got the .htaccess file from the site/eg 
example directory .. the problem here is that your ASP
config has not been activated.  You could also try setting
the Location to /eg/

--Josh

I just noticed the "make test" part of installation has error  * error
code 29
with Command failed for target 'test_dynamic'

any ideal why this is failed? if this failure cause asp not running
correctly?

PC



Devel-Symdump Failure

2001-02-01 Thread Wang, Pin-Chieh

Hi,
I installed Apache_1.3.14 with mod_perl 1.24_01 with DSO
everything seems o.k.
then I installed Apache-ASP-2.07 found I missing Devel::Symdump
I then went back to install Devel::Symdump
But when I make test in Devel::Symdump I had failure in 1/13 test
with error code 29
command failed for target 'test_dynamic'

Any body has any ideals?
Thanks

PC




Apache::ASP

2001-01-31 Thread Wang, Pin-Chieh

Hi,
I installed Apache1.3.14 with mod_perl 1.24_01 on Solaris Using ActiveState
Perl 5.6
I configure with DSO

Apache seems to be running O.K.

But when I downloaded Apache-ASP-2.07 
and followed the instruction 
Perl Makefile.PL
make
make test
make install

I then added the following lines into httpd.conf
Directory "/usr/local/apache/htdocs/eg"
Options All
AllowOverride All
Order allow,deny
Allow from all
/Directory
Location /asp
SetHandler perl-script
PerlHandler Apache::ASP
PerlSetVar Global /tmp
/Location

then I copy the site/eg directory into /usr/local/apache/htdocs/eg
when I run /usr/local/apache/bin/apachectl configtest I got the following
message
Invalid Command 'PerlHandler' perhaps mis spelled or defined by module not
included in the server configuration.

Any body can point me in the right direction? 

Thanks

PC Wang




Verify DSO

2001-01-24 Thread Wang, Pin-Chieh

Any body know How to verify the Apache I just build is a DSO?

I did
./configure --prefix=/usr/local/apache --enable-rule=SHARED_CORE

Thanks

PC



file does not exist for server-info

2001-01-23 Thread Wang, Pin-Chieh

I build Apache_1.3.14 with Mod_Perl-1.24_01
The complete build looks good and I can calling up page with http://hostname
But when I calling http://hostname/Server-info I get "file does not exist"
in the error_log file.
but if I do a httpd -l I can see mod_info is included in the compile
listing.

Is there anything I can check? to get further?

Thanks

PC



Apache 1.3.14 build

2000-12-05 Thread Wang, Pin-Chieh

I am trying to build apache v.1.3.14 with Mod_perl v. 1.24 using APACI
I am using Perl 5.6 build 620 - the latest

I ran perl Makefile.PL under mod_perl-1.24 directory
The system created Makefile in support,regex. directories
but terminated prematually with warning message for "Apache Version 1.3.0
required, aborting.."

Any body knows why?
Should I go back to Apache 1.3.0?

Thanks for any help

PC Wang


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: database access

2000-11-09 Thread Wang, Pin-Chieh

I am trying to access access Microsoft SQL server on NT from Apache Server
under Linux,
Can some one give me a direction, how/where to looking into it?

Appreciate for any help

PC Wang

-Original Message-
From: clayton cottingham [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 08, 2000 4:11 PM
To: Greg Cope
Cc: Jason Liu; [EMAIL PROTECTED]
Subject: Re: database access


Greg Cope wrote:
 
 Jason Liu wrote:
 
  Is Apache::DBI absolutely necessary if you want to establish persistent
  database connection per child?
 
 No you can write your own (its open source remember ;-) but why bother -
 standing on the shoulders of giants etc 
 
 Greg
 
 
  Thanks,
 
  Jason
 
   -Original Message-
   From: David Hodgkinson [mailto:[EMAIL PROTECTED]]
   Sent: Monday, November 06, 2000 5:10 AM
   To: Jason Liu
   Cc: [EMAIL PROTECTED]
   Subject: Re: database access
  
  
   "Jason Liu" [EMAIL PROTECTED] writes:
  
In general, how should database connections be handled between
   parent and
child processes?  Can you establish database connections from within
a
handler?
  
   Absolutely. And using Abache::DBI caches the connection handle.
  
   --
   Dave Hodgkinson, http://www.hodgkinson.org
   Editor-in-chief, The Highway Star   http://www.deep-purple.com
 Apache, mod_perl, MySQL, Sybase hired gun for, well, hire
 -
  



the problem can also be resolved depending on the type of db used

yes you can program your own levels of persistence 

finding a database that can do this for you can be a great help.

postgres for instance has concurrent locking , on table , row and or
column.

using its Pg module instead of DBD::Pg and DBI

handles the opening and closing of the connections too ;)

making your own wrapper module ito interface with DBI or PG is a good
thing to do as well

i usually use something that does all the basic statement handling and
db connect strings

then i can just
use PGForm; #my module to go to Pg
PGform($db,$user,$password,$sqlstatement);

and 
if a select returns a array of arrays

else if insert update delete etc returns ok or error



Get User Login Name

2000-06-19 Thread Wang, Pin-Chieh

Hi,
Is there any way to obtain user login name from perl if I put .htaccess
under /usr/local/apache/htdocs/restricted and put my cgi/perl script under
cgi-bin with no restriction. The reason I put no restriction for cgi-bin is
to avoid user to login twice so I only place restriction under
htdocs/restricted directory. ( but I lost  "remote_user"  environmental
variable).
I could get "remote_user" if I put the restriction on both cgi-bin and
htdocs/restricted, but user has to login twice.

Thanks
PC Wang



Microsoft SQL 7.0 interface

2000-05-26 Thread Wang, Pin-Chieh

Any body knows how to access Microsoft SQL/on NT from Apache on Linux ?
Our data base is running on NT/SQL , but web server is running Apache/Linux

Thanks,
PC Wang



make test of Apache::SSI

2000-05-15 Thread Wang, Pin-Chieh

Hi,
I am installing Apache::SSI under Mod_perl..
When I ran make test I have permission denied when it trying to start httpd
, therefore the test failed.
My httpd was running under (root, other) as the (user, group). 
At perl Makefile.PL I specified the user as root and group as other, but
still can't get permission to run the test,
May be this test is not important, but Is there any body knows how to
successfully test the build?
 
Thanks,
PC Wang



RE: make test of Apache::SSI

2000-05-15 Thread Wang, Pin-Chieh

The message is
T/fake ..ok
T/real ..Starting http server...cat: cannot open t/httpd.pid
Sh:  usage: kill [ [ -sig ] id...| -l ]

I looked t/real.t file where user, group are pwang,user respectively, port
is 80.

Thanks,
PC Wang


-Original Message-
From:   Ken Williams [mailto:[EMAIL PROTECTED]]
Sent:   Monday, May 15, 2000 4:29 PM
To: Perrin Harkins
Cc: '[EMAIL PROTECTED]'; Wang, Pin-Chieh
Subject:Re: make test of Apache::SSI

[EMAIL PROTECTED] (Perrin Harkins) wrote:

On Mon, 15 May 2000, Wang, Pin-Chieh wrote:
 I am installing Apache::SSI under Mod_perl..
 When I ran make test I have permission denied when it
trying to start httpd
 , therefore the test failed.

It doesn't work for me either.  I think Ken was going to
make this test
optional.  Anyway, if you're using CPAN to install (which I
assume you
are, because this wouldn't be a problem for you otherwise)
you can just do
a "force install".

I'd prefer to figure out why the test is failing, because
most of the real
testing is done using that test.  But it's difficult because
I've never seen
the test fail.

What permission is denied?  Permission to start httpd?
Perhaps you could
capture the httpd.conf file that's generated and try
starting the server by
hand using that file.  It shouldn't be too tough to figure
out why it's failing
if you try that (though Apache's error messages often leave
a lot to the
imagination).

Let me know.


  ---
---
  Ken Williams Last Bastion of
Euclidity
  [EMAIL PROTECTED]The
Math Forum




Apache.pm failed to LOAD!

2000-05-03 Thread Wang, Pin-Chieh

Hi,
I build the apache1.3.12 using mod_perl 1.23 on Solaris 2.6 machine,
everything looks fine and installed successfully (at least the installation
program told me so...)
But when I start httpd using apachectl start, httpd did not start within
error_log there is a message "Apache.pm failed to LOAD!"
Any one have any ideal? Thanks in advance
P C Wang



mod_perl installed as DSO

2000-02-01 Thread Wang, Pin-Chieh

Hi
I am trying to install mod_perl-1.21 with Apache1.3.11, I am following the
procedure in the book (at least I thought I was following), everything looks
fine, but when I restarted httpd I got the following error message from
errror_log

[Tue Feb  1 10:57:28 2000] [notice] SIGHUP received.  Attempting to restart
[Tue Feb  1 10:57:28 2000] [error] Cannot remove module mod_perl.c: not
found in module list
[Tue Feb  1 10:57:28 2000] [notice] Apache/1.3.11 (Unix) mod_perl/1.21
configured -- resuming normal operations

Is there any one can tell me how to get rid of the error message "Cannot
remove module mod_perl.c" ?

My makepl_args.mod_perl has the following contents

APACHE_SRC=../apache_1.3.11/src DO_HTTPD=1 USE_APACI=1 \
ADD_MODULE=log_referer,rewrite,proxy,so,vhost_alias,mime_magic,expires \
APACHE_PREFIX=/usr/local/apache_dso \
PERL_MARK_WHERE=1 EVERYTHING=1 


Thanks,
PC Wang



RE: mod_perl installed as DSO

2000-02-01 Thread Wang, Pin-Chieh

Unfortunately I am running Solaris 2.6 the suggested directive doesn't work
( I got a core dump for Segmentation Fault), Is there anybody can answer the
error 
[error] Cannot remove module mod_perl.c: not found in module list
What module list it's talking about

"Wang, Pin-Chieh" wrote:

 Hi
 I am trying to install mod_perl-1.21 with Apache1.3.11, I
am following the
 procedure in the book (at least I thought I was
following), everything looks
 fine, but when I restarted httpd I got the following error
message from
 errror_log

 [Tue Feb  1 10:57:28 2000] [notice] SIGHUP received.
Attempting to restart
 [Tue Feb  1 10:57:28 2000] [error] Cannot remove module
mod_perl.c: not
 found in module list
 [Tue Feb  1 10:57:28 2000] [notice] Apache/1.3.11 (Unix)
mod_perl/1.21
 configured -- resuming normal operations

 Is there any one can tell me how to get rid of the error
message "Cannot
 remove module mod_perl.c" ?

 My makepl_args.mod_perl has the following contents

 APACHE_SRC=../apache_1.3.11/src DO_HTTPD=1 USE_APACI=1 \

ADD_MODULE=log_referer,rewrite,proxy,so,vhost_alias,mime_magic,expires \
 APACHE_PREFIX=/usr/local/apache_dso \
 PERL_MARK_WHERE=1 EVERYTHING=1

 Thanks,
 PC Wang

this is how i compiled apache and modperl on redhat 6.1
hope this helps


for modperl 1.21

perl Makefile.PL USE_APXS=1 USE_DSO=1
WITH_APXS=/usr/local/apache/bin/apxs
EVERYTHING=1
make
make install


for apache 1.3.9
./configure --enable-rule=shared_core
--with-perl=/usr/bin/perl
--enable-module=so --enable-module=rewrite



the version of perl on here is

This is perl, version 5.005_03 built for i386-linux





Is this a mistake? //http://perl.apache.org/guide/install

2000-01-25 Thread Wang, Pin-Chieh

Can some one confirm if this document on the web is correct?
Building Apache and mod_perl by Hand
If you wish to process the httpd build separately from the mod_perl, you
should use NO_HTTPD=1 option during the perl Makefile.PL stage, then
configure various things by hand and proceed with building process. You
shouldn't run perl Makefile before following the steps described in this
section. 
These are the configurations you should make before the build stage, if you
choose to manually build mod_perl: 
mod_perl's Makefile 
When perl Makefile.PL is executed, $APACHE_SRC/modules/perl/Makefile
will be modified to enable various options (e.g. ALL_HOOKS=1). Instead of
tweaking the options during the the perl Makefile.PL, you may also edit
mod_perl-x.xx/src/modules/perl/Makefile before running perl Makefile.PL. 
This is an optional step. 
Configuration 
Add to apache_x.x.x/src/Configuration : 
  AddModule modules/perl/libperl.a
We suggest you add this entry at the end of the Configuration file
if you want your callback hooks to have precedence over core handlers. 
Add the following to EXTRA_LIBS: 
  EXTRA_LIBS=`perl -MExtUtils::Embed -e ldopts`
Add the following to EXTRA_CFLAGS: 
  EXTRA_CFLAGS=`perl -MExtUtils::Embed -e ccopts` 
mod_perl source files 
Return to the mod_perl directory and copy the mod_perl source files
into the apache build directory: 
  % cp -r src/modules/perl apache_x.x.x/src/modules/
% cp -r src/modules/perl ../apache_x.x.x/src/modules/

When you have done with the configuration parts, run: 
  % perl Makefile.PL NO_HTTPD=1 DYNAMIC=1  EVERYTHING=1\
   APACHE_SRC=../apache_x.x.x/src
DYNAMIC

Thanks,
PC Wang



httpd not copied into APACHE_PREFIX

2000-01-20 Thread Wang, Pin-Chieh

Hi,
I am building mod_perl-1.21 into apache_1.3.9 using apaci. 
I run the following commands under mod_perl-1.21 directory
perl Makefile.PL EVERYTHING=1 APACHE_PREFIX=/usr/local/apache
make
make test
make install
Everything looks fine, httpd was created in apache_1.3.9/src, but was not
get copied into /usr/local/apache/bin. After I manually copied the httpd
file and try to start it using apachectl, I got 
./apachectl start: httpd started
But it did not create httpd.pid in the logs directory neither httpd really
started. 
Any one can give a hint?
I am running Solaris 2.6
Thanks,
PC