Re: how do I restart the server

2000-11-23 Thread Ilya Soldatkin



 I have changed some of my scripts and I need to reload them. for that I
need
 to restart the server. but the changes are in my subtree in the sandbox.
so
 if I restart the server is it going to be problem for the other users. if
 not is there any other way to reload my scripts. I have tried adding
 PerlModule Apache::StatINC
 PerlInitHandler Apache::StatINC
 but it didn't help me as I made changes to one of my .pm files. I need
help.

I am using file .htaccess for this purpose. Here is it. Place this file in
the directory where your script located.

SetHandler  perl-script
  PerlHandler Apache::Registry
  PerlInitHandler Apache::StatINC
  PerlSendHeader  On
  Options +ExecCGI
---

Ilya



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




Re: i am looking for mod perl tutor

2000-11-23 Thread Matt Sergeant

On Wed, 22 Nov 2000, mohammed abdul bari wrote:

 Hi,
 I am looking for mod perl tutors. I have a pretty good knowledge of perl but 
 just a lil bit about appache modules. I need some one who could spare a day 
 or 2 with 1 or 2 hours a day to get me basics. I live in santa clara.

Sounds like you want to attend a conference. See http://www.apachecon.com/

-- 
Matt/

/||** Director and CTO **
   //||**  AxKit.com Ltd   **  ** XML Application Serving **
  // ||** http://axkit.org **  ** XSLT, XPathScript, XSP  **
 // \\| // ** Personal Web Site: http://sergeant.org/ **
 \\//
 //\\
//  \\


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




Problem with Apache::DBI under mod_perl!!

2000-11-23 Thread Edmar Edilton da Silva

Hi all,

I have installed on the my machine the following modules:
apache 1.3.12-2
perl-5.00503-10
mod_perl 1.21-10
DBI 1.14
Apache::DBI 0.87

For enable the mod_perl module, I added the below code in the
configuration file of apache ("httpd.conf"):

# If the perl module is installed, this will be enabled.

IfModule mod_perl.c
  PerlFreshRestart On
  Alias /perl-bin/ /home/httpd/perl-bin/
  Location /perl-bin
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
  /Location
/IfModule

For load the Apache::DBI module, I also added this line in the
"httpd.conf" file:
PerlRequire /etc/httpd/conf/startup.pl

Inside of "startup.pl" file, I added the following code:
#!/usr/bin/perl

use strict;

# Extend @INC if needed
use lib qw(/dir/foo /dir/bar);

# Make sure we are in a sane environment.
$ENV{MOD_PERL} or die "not running under mod_perl!";

# For things in the "/perl-bin" URL
use Apache::Registry;

# Load Perl modules of your choice here
# This code is interpreted *once* when the server starts
use Apache::DBI ();
$Apache::DBI::DEBUG = 2;
$Apache::AuthDBI::DEBUG = 2;
use DBI ();

# Tell me more about warnings
use Carp ();
$SIG{__WARN__} = \Carp::cluck;

# Load CGI.pm and call its compile() method to precompile
# (but not to import) its autoloaded methods.
use CGI ();
CGI-compile(':all');

#Initialize the database connections for each child
Apache::DBI-connect_on_init
("dbi:Oracle:ora8", "travel", "travel",
   {
   PrintError = 1, # Warn() on errors
   RaiseError = 0, # Don't die on error
   AutoCommit = 1, # Commit executes immediately
   }
);

But, when I try loading a HTML page of WWW server, the server refuse my
request. I think that the problem is in the WWW server that don't load
their child process because to the Apache::DBI to be with some problem.
During the installation of all the modules didn't have any problem. The
apache start correctly, but when I try stoping them, I get a error
message that the process failed.
Locking the configuration files, can anyone tell me what is happening?
Any help will very appreciated.


Edmar Edilton da Silva
Bacharel em Ciência da Computacão - UFV
  Mestrando em Ciência da Computacão - UNICAMP




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




Re: Problem with Apache::DBI under mod_perl!!

2000-11-23 Thread Sapphire Software

Hello


Don't you need a DBD module?

Or did I miss something?

Ruben


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




Re: Problem with Apache::DBI under mod_perl!!

2000-11-23 Thread Edmar Edilton da Silva

Sorry, but I forgot, I also have installed a DBD module for the
Oracle ( the "DBD::Oracle" ). Do you have any idea to resolve this
problem?
Thanks,

Sapphire Software wrote:

 Hello

 Don't you need a DBD module?

 Or did I miss something?

 Ruben

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

--

Edmar Edilton da Silva
Bacharel em Ciência da Computacão - UFV
  Mestrando em Ciência da Computacão - UNICAMP






Re: Problem with Apache::DBI under mod_perl!!

2000-11-23 Thread Ian Kallen

 #!/usr/bin/perl
 
 use strict;
 
 # Extend @INC if needed
 use lib qw(/dir/foo /dir/bar);

# ok, setup the Oracle and (optionally) the debug DBI environment
BEGIN {
$ENV{'ORACLE_HOME'}='/highway/to/orac/hell';
$ENV{DBI_TRACE}="3=/var/tmp/dbitrace.log";
}

 
 # Make sure we are in a sane environment.
 $ENV{MOD_PERL} or die "not running under mod_perl!";

ciao

--
Salon Internet  http://www.salon.com/
  Manager, Software and Systems "Livin' La Vida Unix!"
Ian Kallen [EMAIL PROTECTED] / AIM: iankallen / Fax: (415) 354-3326 


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




Re: Problem with Apache::DBI under mod_perl!!

2000-11-23 Thread Edmar Edilton da Silva

Hi,
I added the code folow in the config file, but the Apache ::DBI
module continue don't working. If I don't load the Apache::DBI module,
the apache works correctly. Using only the DBI and DBD::Oracle modules,
I can access the Oracle database no problems. Really the problem must be
in the Apache::DBI, but I don't know where. Can anybody help me?
Thanks,

Ian Kallen wrote:

  #!/usr/bin/perl
 
  use strict;
 
  # Extend @INC if needed
  use lib qw(/dir/foo /dir/bar);

 # ok, setup the Oracle and (optionally) the debug DBI environment
 BEGIN {
 $ENV{'ORACLE_HOME'}='/highway/to/orac/hell';
 $ENV{DBI_TRACE}="3=/var/tmp/dbitrace.log";
 }

 
  # Make sure we are in a sane environment.
  $ENV{MOD_PERL} or die "not running under mod_perl!";

 ciao

 --
 Salon Internet http://www.salon.com/
   Manager, Software and Systems "Livin' La Vida Unix!"
 Ian Kallen [EMAIL PROTECTED] / AIM: iankallen / Fax: (415) 354-3326

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

--

Edmar Edilton da Silva
Bacharel em Ciência da Computacão - UFV
  Mestrando em Ciência da Computacão - UNICAMP






OT: packing and unpacking help!

2000-11-23 Thread martin langhoff

hi,

sorry to bother the list, but I'm stuck trying to convert this code
into something more elegant, using pack() ... 

my $commandlength = length $command;
my $high= (($commandlength  (255  8))  8);
my $low = ($commandlength  255);
my $commandstr  = sprintf("\002%c%c%c", $high, $low+1, scalar @arg -1) .
$command;

the code is not mine, of course -- I don't know a drat about shifting
bits around--, its a rough conversion of some php code that we're using
in a module to administer qmail+vmailmgr via web-forms. the resulting
$command is going to be sent through a socket to a daemon that takes
care of administering the email server. 


of course, if anyone is willing to tell me to RTFM and stop posting OT,
I'd be more than thankful if he/she includes a link to the FM (besides
perldoc, of course).




martin

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




Apache::Session Questions

2000-11-23 Thread conark

I installed Apache::Session and am employing embed perl to do some simple
session management.  Apache restarts fine as of now.
However, when I try using %mdat or %udat I get this error message:

[57250]ERR: 24: Line 17: Error in Perl code: No space left on device at
/usr/local/lib/perl5/site_perl/5.005/Apache/Session/Lock/Semaphore.pm line
92.

how much space does the Semaphore locking mechanism require?  Is there any
way around using the Semaphore argument in setting up Apache::Session to
work with embed perl?

Here are my stats that seem relevant to this issue regarding space:

Filesystem  1K-blocks UsedAvail Capacity  Mounted on
/dev/ad0s1a 49583317571386070%/

Thanks for any advice


--

Why is College Club the largest and fastest growing college student site?
Find out for yourself at http://www.collegeclub.com



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




init handler possible?

2000-11-23 Thread Alex Krohn

Hi,

I'm looking for the opposite of a cleanup handler that can be set during
runtime under Apache::Registry. For example, in a script running under
Apache::Registry, I want to be able to add only:

use MyModule;

and have some initilization code get registered to run on every
subsequent request automatically? I haven't been able to figure out if
this is possible, the only thing I can see is adding the subroutine call
after the use manually.

Any ideas?

Cheers,

Alex

  Gossamer Threads Inc.  --
Alex KrohnEmail: [EMAIL PROTECTED]
Internet Consultant   Phone: (604) 687-5804
http://www.gossamer-threads.com   Fax  : (604) 687-5806


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




Re: i am looking for mod perl tutor

2000-11-23 Thread spam

On Wed, 22 Nov 2000, mohammed abdul bari wrote:

 Hi,
 I am looking for mod perl tutors. I have a pretty good knowledge of perl but 
 just a lil bit about appache modules. I need some one who could spare a day 
 or 2 with 1 or 2 hours a day to get me basics. I live in santa clara.

Really if you want to code opensource stuff, you have to start learning on
by yourself. It is not easy, but as they say easy come easy go... if you
do with tutor. Pick up the Eagle Book, Programming Perl, Perl BlackBook
and some C manuals and start to sweat away at getting simple stuff to
work. If you really want to learn how to do good web application
developement, the Eagle Book (Writing Apache Modules in C and perl?) is
still really the resource to learn from to make good informed decisions on
how to build a particular site. It teaches where to use Java script, Perl
CGI, mod_perl and plain C modules that are compiled in perl.
Here's another trick, every time you have a question try to scan as many
sources as possible, that way you most of the time will get rounded
knowlege on a particular question. If you do it like that, you will start
make connections on what belongs to what and how one relates to the other.

Once you get basic idea how the web works, and how mod_perl fits in there
then you can send some questions up here. I as many people here are, like
to help, but would not toleration idiotism, sort of like some people like
to say well, can you just upload it into my head and I'll use it some
time.( You can say that I am bitter, cuz we just hired in the manager and
she is tries to stir the pot, as if she knows what she is doing, and
telling us that what we did is not best decision, and that there might be
better way to do it, and then goes off to ask her friends via e-mail and
then saying "Oh, I guess you are right, that is the only way to do that,
just because my all-know friend said it is so" freak. Sorry just had to
say that.)
Well once basically you gain general knowlege you can ask community for
help, we won't refuse!
Happy hacking to you,
Pavel


-- 
Bask in the glow of the digital silence
http://www.vancouver.yi.org


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




AuthCookie

2000-11-23 Thread Kiran Kumar

Hi,
  I have Installed AuthCookie Module but it does not work on netscape (4.7)
but works on IE .
   In netscape  after I logout and later i request a protected page i still
get the page ,Can anyone help me on this .

Thanks in advance

Kiran


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




BerkeleyDB

2000-11-23 Thread Tim Bunce

On Wed, Nov 22, 2000 at 10:57:46AM -0800, Perrin Harkins wrote:

 We got past these problems and then ran
 into issues with db corruption.  If Apache gets shut down with a SIGKILL
 (and this seems to happen fairly often when using mod_perl),

Really? Why? I've not been aware of anyone needing to do that.

 the data can
 be corrupted in such a way that when you next try to open it BerkeleyDB
 will just hang forever.  Sleepycat says this is a known issue with using
 BerkeleyDB from Apache and they don't have a solution for it yet.  Even
 using their transaction mechanism does not prevent this problem.

Thanks for the info. Are there any other causes apart from SIGKILL?

(I'd expect SIGKILL to cause some problems. If you're needing to use
SIGKILL then there must be another underlying problem with your system.)

 We tried lots of different things and finally have reached what seems to
 be a solution by using database-level locks rather than page-level.  We
 still get to open the database in ChildInit and keep it open, with all the
 speed benefits of the shared memory buffer.  It is definitely the fastest
 available way to share data between processes, but the problems we had
 have got me looking at other solutions again.
 
 If you do try it out, I'd be eager to hear what your experiences with it

Sure.

Tim.

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