BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old September 1st, 2004, 03:34 PM
The UnDoug The UnDoug is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Philadelphia
Posts: 13 The UnDoug User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to The UnDoug Send a message via Yahoo to The UnDoug
Question About Apache/Perl/mp3 Installs

Hi,

I posted here a while back about problems getting Apache-MP3 to work on my FreeBSD server. It appears that the problem was somehow related to the version of Apache I had installed. I ended up setting up a new machine and installing everything from scratch.

Here's what I've done:

Installed FreeBSD
Ran cvsup
Installed Apache 1.3 from the ports collection
Installed Perl 5.8 from the ports collection
Installed MySQL 4 from the ports collection
Installed PHP 4 from the ports collection
Installed Apache-MP3 from the ports collection

When I try to access the "Songs" directory on my web server where the songs that Apache-MP3 is supposed to display are located, it doesn't work properly. It doesn't display the songs and their icons for streaming. I looked at the apache error log and noted the following two errors:

Quote:
[Wed Sep 1 14:12:19 2004] [error] [Wed Sep 1 14:12:19 2004] MP3.pm: syntax error at /usr/local/lib/perl5/site_perl/5.005/Apache/MP3.pm line 1625, near "$_comments;"\n

[Wed Sep 1 14:12:19 2004] [error] [Wed Sep 1 14:12:19 2004] null: Can't locate object method "new" via package "Apache" at /usr/local/lib/perl5/site_perl/5.005/Apache/MP3.pm line 80.\n


I'm thinking that these errors are the cause of my trouble. FreeBSD installed perl 5.005 by default, and as I said, I installed perl 5.8 from the ports collection. I know that Apache-MP3 requires perl 5.8. Is the problem I'm experiencing due to the fact that Apache isn't using perl 5.8 but is instead using 5.005?

Should I try reinstalling apache? If so, is it possible to install if from the ports collection but at the same time tell it to configure using perl 5.8?

Any other thoughts on what I should do?

Thanks.....Doug

Reply With Quote
  #2  
Old September 1st, 2004, 05:44 PM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
did you run the "use.perl" command?

Reply With Quote
  #3  
Old September 1st, 2004, 10:12 PM
The UnDoug The UnDoug is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Philadelphia
Posts: 13 The UnDoug User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to The UnDoug Send a message via Yahoo to The UnDoug
Hi, Steve,

I was hoping you'd see this message. You were quite helpful with my last series of posts.

I'm not sure what you mean about running the "use.perl" command. When am I supposed to run that command?


Doug

Reply With Quote
  #4  
Old September 1st, 2004, 10:20 PM
The UnDoug The UnDoug is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Philadelphia
Posts: 13 The UnDoug User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to The UnDoug Send a message via Yahoo to The UnDoug
Okay...I think I know what you meant, now.

Right after I posted my last message, I remembered what use.perl was all about. It allows me to pick the installed Perl version I want to use. I issued the command and picked the new Perl. The Apache-mp3 still didn't work. I restarted the apache server and still no go. I'm currently deinstalling and reinstalling apache-mp3 to see if it'll work now that I've run the use.perl command.

I'll report back. :-)

Reply With Quote
  #5  
Old September 1st, 2004, 11:48 PM
The UnDoug The UnDoug is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Philadelphia
Posts: 13 The UnDoug User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to The UnDoug Send a message via Yahoo to The UnDoug
Fixed One Not the Other

Hi,

I issued the "use.perl" command, and now another problem I was having is fixed (I couldn't get phpBB to run properly and now it does). Unfortunatly, the apache-mp3 program still won't.

There's a line in the httpd.conf file that says "LoadModule mod_perl.so", and in my apache error logs it mentions not being able to unload that module when I restart the server. I did a find for that file and it appears nowhere on my machine. Is that a likely source for the apache-mp3 problem? If so, what do I need to do to get that file installed.

On another note, while part of phpBB is working, when I try to configure it to use MySQL as its database type, it says it isn't supported by my PHP installation. Googling has led me to believe that PHP wasn't installed with mysql support. Which leads me to this question:

If I am installing FreeBSD apps via the ports collection and by issuing "make install clean" commands, can I do any additional configuration of the install? For instance, can I install PHP from the ports collection but configure it to support MySQL?

Thanks!

Reply With Quote
  #6  
Old September 2nd, 2004, 05:06 AM
stevengs stevengs is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Germany
Posts: 394 stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level)stevengs User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 3 Days 4 h 36 m 24 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
since you installed Perl rather than mod_perl try using the following in httpd.conf:
Code:
LoadModule    perl_module    libexec/apache/libperl.so
AddModule     mod_perl.c


and comment out the line with the mod_perl.so




--btw; did you do a rehash before "use.perl ports"
Code:
rehash
use.perl port

(may not be too important, depending on your path settings.)

-Steven

Last edited by stevengs : September 2nd, 2004 at 05:54 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Question About Apache/Perl/mp3 Installs


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway