Playing MP3 files from Linode Server?

I'm in the process of rebuilding a server that hosts a few different websites and stored .mp3 files that were then played in a browser. I've got the websites back up and running just fine, but Apache isn't allowing any of the audio files to be played. Anyone have any suggestions why this might be? I've tried installing the music index mod for Apache, but it didn't help at all. I'm sure it's something fairly simple, but I'm having no luck with this.

4 Replies

Do the files just download? Then probably the content-type isn't being set properly. I've no idea if this something the music index mod is supposed to do, but in Debian, the default apache2 config points at /etc/mime.types (via the TypesConfig directive), and also adds types via the AddType directive.

Actually, it doesn't do a thing. The file doesn't play nor download. And if I put a URL in to go directly to the list of files, it shows them all in the browser window and when I click on one it goes to a blank page but nothing happens.

What does the error_log say?

First guess would be a permission/ownership problem on the MP3 files.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct