Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / August 2004



Tip: Looking for answers? Try searching our database.

Apache::MP3 no worky

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris Devers - 03 Aug 2004 22:28 GMT
Out of curiosity, does anyone have Apache::MP3 working on Panther?

I have it working just fine on a Debian machine at work, but it doesn't
work at all on a Mac there, nor does it work on my Mac at home. In both
cases, it just serves zero-length, null-content pages to all requests.

Nothing shows up in the Apache error log, and the access log shows the
same sort of activity that the working Linux machine shows.

The Apache config on the Mac appears to be identical in every important
way to the config on the Linux PC, save for adjusted path names.

I could get into specifics of how I have things configured, and would be
happy to respond to such questions if you have any, but I really think
there's just some sort of underlying bug on the Mac side that is short
circuiting the application such that it does nothing. I've poked around
on the interweb a bit and have found some people complaining about the
same symptoms on their Macs, but no one seems to have any explanations.

Basic system info:

    $ hostinfo
    Mach kernel version:
         Darwin Kernel Version 7.4.0:
    Wed May 12 16:58:24 PDT 2004; root:xnu/xnu-517.7.7.obj~7/RELEASE_PPC

    Kernel configured for up to 2 processors.
    2 processors are physically available.
    Processor type: ppc970 (PowerPC 970)
    Processors active: 0 1
    Primary memory available: 1024.00 megabytes.
    Default processor set: 152 tasks, 303 threads, 2 processors
    Load average: 1.32, Mach factor: 0.67

    $ sw_vers
    ProductName:    Mac OS X
    ProductVersion: 10.3.4
    BuildVersion:   7H63

    $ which perl
    /usr/bin/perl

    $ perl -v|grep 'This is perl'
    This is perl, v5.8.1-RC3 built for darwin-thread-multi-2level

The other machine I'm trying to run it on has the same config for
everything except the hostinfo command; in that case, it's --

    $ hostinfo
    Mach kernel version:
         Darwin Kernel Version 7.4.0:
    Wed May 12 16:58:24 PDT 2004; root:xnu/xnu-517.7.7.obj~7/RELEASE_PPC

    Kernel configured for a single processor only.
    1 processor is physically available.
    Processor type: ppc7450 (PowerPC 7450)
    Processor active: 0
    Primary memory available: 1024.00 megabytes.
    Default processor set: 115 tasks, 239 threads, 1 processors
    Load average: 2.37, Mach factor: 0.28

As I say, more info is available on requst.

So -- anyone have Apache::MP3 working on Panther?

Signature

Chris Devers

Chris Nandor - 03 Aug 2004 23:09 GMT
> Out of curiosity, does anyone have Apache::MP3 working on Panther?

I do.

$ hostinfo
Mach kernel version:
        Darwin Kernel Version 7.4.0:
Wed May 12 16:58:24 PDT 2004; root:xnu/xnu-517.7.7.obj~7/RELEASE_PPC

Kernel configured for a single processor only.
1 processor is physically available.
Processor type: ppc750 (PowerPC 750)
Processor active: 0
Primary memory available: 640.00 megabytes.
Default processor set: 91 tasks, 252 threads, 1 processors
Load average: 0.06, Mach factor: 0.97

$ sw_vers
ProductName:    Mac OS X Server
ProductVersion: 10.3.4
BuildVersion:   7H63

$ which perl
/usr/bin/perl

$ perl -v | grep 'This is perl'
This is perl, v5.8.1-RC3 built for darwin-thread-multi-2level

Further:

$ pmvers Apache::MP3 MP3::Info
Apache::MP3: 3.03
MP3::Info: 1.02

$ which httpd
/usr/sbin/httpd

$ httpd -v
Server version: Apache/1.3.29 (Darwin)
Server built:   Feb  4 2004 10:31:58

(That is, it's the default Apache, default perl, default mod_perl, etc.  
Everything is default, and Apache::MP3 is the latest.)

Signature

Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

Chris Devers - 03 Aug 2004 23:23 GMT
> $ sw_vers
> ProductName:    Mac OS X Server

Hmm, I wonder if the fact that I'm using OSX client is relevant...

> $ pmvers Apache::MP3 MP3::Info
> Apache::MP3: 3.03
> MP3::Info: 1.02

Strange, I don't have a `pmvers` on my computer. But I do have...

  $ grep '$VERSION = ' /Library/Perl/5.8.1/{Apache/MP3,MP3/Info}.pm
  /Library/Perl/5.8.1/Apache/MP3.pm:$VERSION = '3.01';
  /Library/Perl/5.8.1/MP3/Info.pm:$VERSION = '1.02';

So, same versions here.

> $ which httpd
> /usr/sbin/httpd
>
> $ httpd -v
> Server version: Apache/1.3.29 (Darwin)
> Server built:   Feb  4 2004 10:31:58

  $ which httpd
  /usr/sbin/httpd
  $ httpd -v
  Server version: Apache/1.3.29 (Darwin)
  Server built:   Feb  4 2004 10:31:58

> (That is, it's the default Apache, default perl, default mod_perl, etc.
> Everything is default, and Apache::MP3 is the latest.)

Right -- all of that applies to me as well.

So the only big difference appears to be that you're running OSX Server.

Hmm...

Any idea how I could coax Apache / A:M into producing more diagnostics?
I tried adjusting Apache's loglevel setting but it didn't appear to
change anything in this context -- I still just get no output, normal
access logs, and no recorded activity in the error log.

Weird.

Signature

Chris Devers

Chris Nandor - 03 Aug 2004 23:36 GMT
>> $ pmvers Apache::MP3 MP3::Info
>> Apache::MP3: 3.03
>> MP3::Info: 1.02
>
>Strange, I don't have a `pmvers` on my computer. But I do have...

It's a part of pmtools, an old set of small perl module tools (like pmpath,
pmls, etc.).

>Any idea how I could coax Apache / A:M into producing more diagnostics?
>I tried adjusting Apache's loglevel setting but it didn't appear to
>change anything in this context -- I still just get no output, normal
>access logs, and no recorded activity in the error log.

No ideas offhand.  I'd start adding print STDERR statements to Apache::MP3
and watch the error log, find out where it is going wrong.

Signature

Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.