Web Hosting Talk







View Full Version : Expert Help: The never solved .pls problem handled by Perl


DennisCitus
02-14-2004, 03:01 PM
Perl is trying to execute all of my playlist files. Apache thinks .pls is a Perl file, so it uses perl to execute it. This results in an Internal Server Error.

error_log result:
[Fri Feb 13 16:27:03 2004] [error] 14346: ModPerl::Registry: syntax error at
/home/httpd/vhosts/xxx.nl/httpdocs/playlist.pls
line 2, near "]!numberofentries"!RemoveHandler .plsdidn't work :(Addtype text/plain pls PLSdidn't work either :(

Specs:
Plesk 6.0.2
Apache/2.0.40

What should I do so Apache returns the .pls files as text/plain so Winamp can load them?

Brightadmin
02-23-2004, 03:20 AM
Hi,

Do the following to work with out the above internal server error.

1.Please install perl modules.

2.Configure Apache as follows:

Apache must be configured to recognize the mp3 and MP3 extensions as MIME
type audio/mpeg. Add the following to httpd.conf or srm.conf:

AddType audio/mpeg mp3 MP3
AddType audio/playlist m3u M3U

If you plan to use Shoutcast-style playlists, add the following as well:

AddType audio/x-scpls pls PLS

If you plan to use Ogg Vorbis, add the following as well:

AddType application/x-ogg ogg OGG

Hope this setting will rectify your problem.

Regards

DennisCitus
02-23-2004, 10:50 AM
It was fixed by uploading in ASCI-format. This was a Plesk-mistake.