Paul

I do know know that in your startup.pl file, if you put:

BEGIN{
use Apache ();
use lib Apache->server_root_relative('lib/site_perl/5.6.1');
}

Then the path to the directory would be:
/usr/local/apache/lib/site_perl/5.6.1
or
Whever the server root for apache is.

The directory you are pointing to looks like the Perl installation.

That lib directive points to the location of your Apache modules.

That stands out, but maybe veterans of mod_perl will see what I am getting at. I have built custom modules in a directory structure like so

/usr/local/apache/perl/Apache/Header.pm

with my use lib being set to:
use lib Apache->server_root_realtive('perl');

So anything in the Apache namespace would be placed in the Apache directory. I hope to play with the Apache::MP3 module myself, but I believe it has to be put in this directory. If I am wrong, please, fellow perlMonks, correct me.

Michael Shirk




From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Apache::MP3
Date: Fri, 3 Jan 2003 13:37:10 +0000




Hi All

This may be off topic but since it's Friday I thought I'd have a quick play and
install Apache::MP3.

I've built the module and followed the Apache config instructions on the web
site, but every time I try to access the /music location I get a 500 error and
the following line in error_log :

[Fri Jan  3 13:24:49 2003] [error] Can't locate object method "new" via package
"Apache" (perhaps you forgot to load "Apache"?) at
/opt/perl/lib/site_perl/5.6.1/Apache/MP3.pm line 80.

Any ideas why it's not working. I'm using other modules without issue.

Perl 5.6.1
Mod Perl 1.27
HPUX 11i

startup.pl

#!/usr/local/bin/perl -w
# to load this file when the server starts, add this to httpd.conf:
# PerlRequire /path/to/startup.pl

BEGIN{
        use Apache ();
        use lib Apache->server_root_relative('lib/site_perl/5.6.1');
}

# make sure we are in a sane environment.
$ENV{GATEWAY_INTERFACE} =~ /^CGI-Perl/ or die "GATEWAY_INTERFACE not Perl!";

use Apache::Registry ();
use Apache::Constants();
use DBI ();
use DBD::mysql ();
use CGI qw(-compile :all);
use CGI::Application;
use GD;
use MP3::Info;
use Apache::MP3;

1;

Cheers

Paul



*******************************************************************************
Important.
Confidentiality: This communication is intended for the above-named person and
may be confidential and/or legally privileged. Any opinions expressed in this
communication are not necessarily those of the company. If it has come to you
in error you must take no action based on it, nor must you copy or show it to
anyone; please delete/destroy and inform the sender immediately.

Monitoring/Viruses
Orange may monitor all incoming and outgoing emails in line with current
legislation. Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.

Orange PCS Limited is a subsidiary of Orange SA and is registered in England No
2178917, with its address at St James Court, Great Park Road, Almondsbury Park,
Bradley Stoke, Bristol BS32 4QJ.
*******************************************************************************

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus

Reply via email to