Re: mod_perl Not Working W/ Apache2 on Sid

2006-04-03 Thread Hal Vaughan
On Tuesday 04 April 2006 01:00, Sumo Wrestler (or just ate too much) 
wrote:
> Hal Vaughan wrote:
> > On Monday 03 April 2006 21:59, Sumo Wrestler (or just ate too much)
> >
> > wrote:
> >> Re-enable "PerlModule Apache2". When it aborts apache, report what
> >> apache says in its log file.
> >
> > Thanks for the tip.
> >
> > [Mon Apr 03 23:22:56 2006] [error] Can't locate Apache2.pm in @INC
> > (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8
> > /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5
> > /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .
> > /etc/apache2) at (eval 2) line 3.\n
> >
> > I have an Apache2 directory (/usr/lib/perl5/Apache2/) but no
> > Apache2.pm file itself.  I'm trying to find the package for it now.
> >
> > Hal.
>
> $ dlocate Apache2.pm
> libapache2-mod-perl2: /usr/lib/perl5/Bundle/Apache2.pm
> libapache2-mod-perl2: /usr/lib/perl5/Apache2.pm
>
> It should be there. Something smells foul in Denmark--namely your
> libapache2-mod-perl2 installation. Do a "debsums" to see if your
> installation of that package is messed up, or just reinstall it.

You and I must have posted about the same time -- I have another post in 
response to my first.  Apache2.pm is in Bundle, but not in the perl5 
directory, even after purging and re-installing.  I just symlinked to 
put it there and it's working.  There may be some issues with that, but 
my scripts are working.  I'll probably be spending less time testing my 
scripts than it's taken me today to get this working.

Thanks for the help.  It's much appreciated!

Hal


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: mod_perl Not Working W/ Apache2 on Sid

2006-04-03 Thread Hal Vaughan
On Monday 03 April 2006 18:34, Hal Vaughan wrote:
> I'm just trying to run a simple test set up, so I don't have to keep
> uploading every little change to my web server.  I've had Apache2
> working for a while, and today I added mod_perl (aptitude install
> libapache2-mod-perl2).  My /etc/apache2/mods-enabled/perl.load looks
> like this:
>
> LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
>
> 
>SetHandler  perl-script
>PerlHandler ModPerl::Registry
>Options +ExecCGI
> 
>
> (I saw a sample with another line in it, after the first line
> (PerlModule Apache2) but Apache2 would not load with that line
> included.)
>
> The root server directory is /var/www and I have a perl script
> in /var/www/perl.  When I try to access it with Firefox, it tries to
> download it instead of the script being executed.  I've tried
> changing the directory do /var/www/perl in the config, but that
> doesn't help.
>
> (I use /etc/init.d/apache2 force-reload between each test.)
>
> All I want to do is test a few simple scripts on my local system and
> make sure they're working before I put them on a server.  I don't
> need anything fancy, I'm not worried about speed.  I just need them
> to run.
>
> What is wrong or mis-configured?  Any suggestions?
>
> Thanks!
>
> Hal

After a number of different attempts, I had to purge apache2, 
apache2-common, lib-apache2-mod-perl2, make sure all config files were 
deleted, then re-install them with aptitude, and use the following for 
perl.load for config:

LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
PerlModule Apache2


SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI


I also had to do this:

ln -s /usr/lib/perl5/Bundle/Apache2.pm /usr/lib/perl5/Apache2.pm

Even though Apache2.pm was in a subdirectory, it wasn't working until I 
made the link.  I'm a little puzzled as to why Aptitude didn't take 
care of most of this for me -- but, then again, I am running Sid.

Hal


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: mod_perl Not Working W/ Apache2 on Sid

2006-04-03 Thread Sumo Wrestler (or just ate too much)

Hal Vaughan wrote:
On Monday 03 April 2006 21:59, Sumo Wrestler (or just ate too much) 
wrote:

Re-enable "PerlModule Apache2". When it aborts apache, report what
apache says in its log file.


Thanks for the tip.

[Mon Apr 03 23:22:56 2006] [error] Can't locate Apache2.pm in @INC (@INC 
contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl . /etc/apache2) 
at (eval 2) line 3.\n


I have an Apache2 directory (/usr/lib/perl5/Apache2/) but no Apache2.pm 
file itself.  I'm trying to find the package for it now.


Hal.




$ dlocate Apache2.pm
libapache2-mod-perl2: /usr/lib/perl5/Bundle/Apache2.pm
libapache2-mod-perl2: /usr/lib/perl5/Apache2.pm

It should be there. Something smells foul in Denmark--namely your 
libapache2-mod-perl2 installation. Do a "debsums" to see if your 
installation of that package is messed up, or just reinstall it.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: mod_perl Not Working W/ Apache2 on Sid

2006-04-03 Thread Hal Vaughan
On Monday 03 April 2006 21:59, Sumo Wrestler (or just ate too much) 
wrote:
> Hal Vaughan wrote:
> > On Monday 03 April 2006 19:14, Sumo Wrestler (or just ate too much)
> >
> > wrote:
>  >> [...]
> >>
> >> Then perhaps you want 
> >
> > Thanks, but, as I said in the post, I tried that as well.  If
> > you're sure that's all it needs, I'll try it again.
> >
> > Hal
>
> Re-enable "PerlModule Apache2". When it aborts apache, report what
> apache says in its log file.

Spoke too soon.  Finally found it is in Bundle::Apache 2, so I tried the 
line as "PerlModule Bundle::Apache2" and it started without error.  
Still does the same things.  I've got a link I'm looking into about 
more configuration info.

Hal


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: mod_perl Not Working W/ Apache2 on Sid

2006-04-03 Thread Hal Vaughan
On Monday 03 April 2006 21:59, Sumo Wrestler (or just ate too much) 
wrote:
> Hal Vaughan wrote:
> > On Monday 03 April 2006 19:14, Sumo Wrestler (or just ate too much)
> >
> > wrote:
>  >> [...]
> >>
> >> Then perhaps you want 
> >
> > Thanks, but, as I said in the post, I tried that as well.  If
> > you're sure that's all it needs, I'll try it again.
> >
> > Hal
>
> Re-enable "PerlModule Apache2". When it aborts apache, report what
> apache says in its log file.

Thanks for the tip.

[Mon Apr 03 23:22:56 2006] [error] Can't locate Apache2.pm in @INC (@INC 
contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 
/usr/local/lib/site_perl . /etc/apache2) 
at (eval 2) line 3.\n

I have an Apache2 directory (/usr/lib/perl5/Apache2/) but no Apache2.pm 
file itself.  I'm trying to find the package for it now.

Hal.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: mod_perl Not Working W/ Apache2 on Sid

2006-04-03 Thread Sumo Wrestler (or just ate too much)

Hal Vaughan wrote:
On Monday 03 April 2006 19:14, Sumo Wrestler (or just ate too much) 
wrote:

>> [...]

Then perhaps you want 


Thanks, but, as I said in the post, I tried that as well.  If you're 
sure that's all it needs, I'll try it again.


Hal




Re-enable "PerlModule Apache2". When it aborts apache, report what 
apache says in its log file.




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: mod_perl Not Working W/ Apache2 on Sid

2006-04-03 Thread Hal Vaughan
On Monday 03 April 2006 19:47, James Westby wrote:
> Hal Vaughan wrote:
> > I'm just trying to run a simple test set up, so I don't have to
> > keep uploading every little change to my web server.  I've had
> > Apache2 working for a while, and today I added mod_perl (aptitude
> > install libapache2-mod-perl2).  My
> > /etc/apache2/mods-enabled/perl.load looks like this:
> >
> > LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so
> >
> > 
> >SetHandler  perl-script
> >PerlHandler ModPerl::Registry
> >Options +ExecCGI
> > 
> >
> > (I saw a sample with another line in it, after the first line
> > (PerlModule Apache2) but Apache2 would not load with that line
> > included.)
> >
> > The root server directory is /var/www and I have a perl script
> > in /var/www/perl.  When I try to access it with Firefox, it tries
> > to download it instead of the script being executed.  I've tried
> > changing the directory do /var/www/perl in the config, but that
> > doesn't help.
> >
> > (I use /etc/init.d/apache2 force-reload between each test.)
> >
> > All I want to do is test a few simple scripts on my local system
> > and make sure they're working before I put them on a server.  I
> > don't need anything fancy, I'm not worried about speed.  I just
> > need them to run.
> >
> > What is wrong or mis-configured?  Any suggestions?
> >
> > Thanks!
> >
> > Hal
>
> I got Apache 2 to work with
>
>  PerlResponseHandler ModPerl::Registry
>
> rather than
>
> PerlHandler ModPerl::Registry

Still the same thing: it tries to download the program instead.

Hal


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: mod_perl Not Working W/ Apache2 on Sid

2006-04-03 Thread Hal Vaughan
On Monday 03 April 2006 19:14, Sumo Wrestler (or just ate too much) 
wrote:
> Hal Vaughan wrote:
> > I'm just trying to run a simple test set up, [...]
> >
> > 
> >SetHandler  perl-script
> >PerlHandler ModPerl::Registry
> >Options +ExecCGI
> > 
> > [...]
> > The root server directory is /var/www and I have a perl script
> > in /var/www/perl.  [...]
>
> Then perhaps you want 

Thanks, but, as I said in the post, I tried that as well.  If you're 
sure that's all it needs, I'll try it again.

Hal


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: mod_perl Not Working W/ Apache2 on Sid

2006-04-03 Thread James Westby

Hal Vaughan wrote:
I'm just trying to run a simple test set up, so I don't have to keep 
uploading every little change to my web server.  I've had Apache2 
working for a while, and today I added mod_perl (aptitude install 
libapache2-mod-perl2).  My /etc/apache2/mods-enabled/perl.load looks 
like this:


LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so


   SetHandler  perl-script
   PerlHandler ModPerl::Registry
   Options +ExecCGI


(I saw a sample with another line in it, after the first line 
(PerlModule Apache2) but Apache2 would not load with that line 
included.)


The root server directory is /var/www and I have a perl script 
in /var/www/perl.  When I try to access it with Firefox, it tries to 
download it instead of the script being executed.  I've tried changing 
the directory do /var/www/perl in the config, but that doesn't help.


(I use /etc/init.d/apache2 force-reload between each test.)

All I want to do is test a few simple scripts on my local system and 
make sure they're working before I put them on a server.  I don't need 
anything fancy, I'm not worried about speed.  I just need them to run.


What is wrong or mis-configured?  Any suggestions?

Thanks!

Hal


  

I got Apache 2 to work with

PerlResponseHandler ModPerl::Registry

rather than

PerlHandler ModPerl::Registry


James


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: mod_perl Not Working W/ Apache2 on Sid

2006-04-03 Thread Sumo Wrestler (or just ate too much)

Hal Vaughan wrote:

I'm just trying to run a simple test set up, [...]


   SetHandler  perl-script
   PerlHandler ModPerl::Registry
   Options +ExecCGI

[...]
The root server directory is /var/www and I have a perl script 
in /var/www/perl.  [...]


Then perhaps you want 


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




mod_perl Not Working W/ Apache2 on Sid

2006-04-03 Thread Hal Vaughan
I'm just trying to run a simple test set up, so I don't have to keep 
uploading every little change to my web server.  I've had Apache2 
working for a while, and today I added mod_perl (aptitude install 
libapache2-mod-perl2).  My /etc/apache2/mods-enabled/perl.load looks 
like this:

LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so


   SetHandler  perl-script
   PerlHandler ModPerl::Registry
   Options +ExecCGI


(I saw a sample with another line in it, after the first line 
(PerlModule Apache2) but Apache2 would not load with that line 
included.)

The root server directory is /var/www and I have a perl script 
in /var/www/perl.  When I try to access it with Firefox, it tries to 
download it instead of the script being executed.  I've tried changing 
the directory do /var/www/perl in the config, but that doesn't help.

(I use /etc/init.d/apache2 force-reload between each test.)

All I want to do is test a few simple scripts on my local system and 
make sure they're working before I put them on a server.  I don't need 
anything fancy, I'm not worried about speed.  I just need them to run.

What is wrong or mis-configured?  Any suggestions?

Thanks!

Hal


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]