Ampache
Web based audio/video streaming application and file manager
Alternative to: spotify, apple music, youtube music
8.1.0
2026-09-118.1.0
php8.5 e0530840eddcbcc36e077db18a10dc95 ./ampache-8.1.0_php8.5.zip e0530840eddcbcc36e077db18a10dc95 ./ampache-8.1.0_all_php8.5.zip 2f0221c5f4f320bdb3c4dc9f4fc36c40 ./ampache-8.1.0_all_php8.5_squashed.zip cba49525100e83c2e8d63123c243c538 ./ampache-8.1.0_all_php8.5_client.zip
UNSUPPORTED Code only release. (Requires composer and npm install) 351520b240aec56d7a130cd64b3b7bb5 ./ampache-8.1.0.zip 351520b240aec56d7a130cd64b3b7bb5 ./ampache-8.1.0_public.zip e84a1752f56e354f97e8fcd497e17012 ./ampache-8.1.0_squashed.zip ccdd3b5b54f18fc8e2fb771d28c5cf8b ./ampache-8.1.0_client.zip
Zip Version information
If you aren’t familiar which the project make sure you know which zip you need to download.
ampache-8.1.0.zip is a copy of ampache-8.1.0_public.zip and ampache-8.1.0_php8.5.zip is a copy of ampache-8.1.0_all_php8.5.zip.
The shorter names become the default for the public structure in Ampache9; the _public and _all names will be kept for the rest of the 8.x series.
Ampache 8.1.0
Subsonic Users The Subsonic API now fully implements folder browsing.
Populate your catalog folders using the cli (php bin/cli run:updateCatalog -s) or the “Scan All Folders” command in the UI.
Album database grouping Allow custom grouping using the new config option album_grouping_fields.
Run a Catalog verify after changing this setting to update your Albums. NOTE Using album_grouping_fields is not recommended.
Name and Year are recorded but all other dropped columns are not kept. Year will be recorded as the first Song it reads on create even if other years differ.
Added (8.1.0)
- Proof of work checks in front of the endpoints bots hammer
- Off by default; set
pow_modetoguestorallto enable it pow_protectedpicks the endpoints: the registration form, batch (zip) downloads and single track downloads- The browser solves a sha256 puzzle before it is let through, tuned with
pow_difficulty(8-26) andpow_ttl pow_exempt_levelwaves trusted users through inallmode;pow_log_failuresrecords what gets blocked- Needs JavaScript and Web Workers: it stops crawlers, not a determined attacker, so pair it with a rate limit
- Off by default; set
- Database 810001
- New
show_composerpreference (off by default) for a Composer column on playlist media and Song rows
- New
- Database 810010
- New
folder.timecolumn with the summed duration of everything below each folder, subfolders included, rolled up the same way astotal_count/total_skip; the API folder browse response now reports it astimeon the browsed folder and on each item in its contents
- New
- Remote and Subsonic catalogs now build folder data during a scan (
-s, or “Scan Folders”/“Scan All Folders”), so folder browsing works for them like local catalogs - Add
Timecolumn on folder browsesphp bin/cli run:updateCatalog -sskips the folder count/time rollup on a run that finds no changes- If a folder’s counts or duration look stale, run garbage collection (
-t, oradmin/catalog.php?action=garbage_collect) to force a refresh
- A
Timecolumn on playlist browses, sortable vialast_duration - Config version 99
- New
album_grouping_fieldsoption controlling which fields decide whether two songs share an album row, so pressings that only differ bybarcode/catalog_number/version(or any other field) can be grouped together instead of split into separate albums - Not recommended: a dropped field is written as NULL rather than stored from whichever song scanned first, so albums it merges together lose that value entirely; every such match logs a warning (not shown in the UI)
nameandyearcan be dropped from the list too, though doing so can merge albums you didn’t mean to mergecatalogis always matched and isn’t part of the list; an album is always scoped to its catalog- Server-wide, not a user preference; defaults to today’s full field set (
name,year,prefix,mbid,mbid_group,album_artist,release_type,release_status,original_year,barcode,catalog_number,version)
- New
- Drawn cover art for items that have none: an album gets a record, an artist a medallion, an orphaned song a waveform, a playlist a tracklist. Built as SVG so one response serves every size, seeded from the item’s name so a tile is stable. Off by default, per-user opt-in; a configured
custom_blankalbumalways takes precedence when present - Dynamic page titles carrying the artist or album in context, with a user preference to show a page-type icon in the tab title
- A SVG favicon, an apple-touch-icon for phone home screens, and a link-preview image, each replaced on their own when an admin customises them
- A
brandingsection under the server settings gathering the favicon, logos, login artwork and the two new icons in one place, plus a site description for link previews - An
Uploadedcolumn on the upload browses, sortable - A browser-measured HTTP compression check on the test page
- Folder and collection pages describe themselves in a shared link, like the other object pages do
- Database 810011
- New
album.enabledandartist.enabled, carrying the name and the promisesong.enabledalready had, so a release can be withdrawn without deleting it and losing its playlist entries, ratings and play history - Set from a
Statemenu in the album, artist and song edit dialogs by a catalog manager, who keeps seeing what is disabled; disabling an album or artist carries down to its songs, and enabling carries back - Disabled items leave every browse, smartlist, API, Subsonic and RSS listing, and carry a marker in the rows only a manager still sees. An
Enabledsearch rule lists them - A song can still be enabled or disabled on its own; the next change of its album or artist state writes over it
- New
Changed (8.1.0)
- Database 810002
- Covering index on
imagefor the art cache lookup, so it can be answered from the index alone; drops the now-redundantobject_idkey it replaces
- Covering index on
- Folder garbage collection now also removes folders with nothing left inside them, including root folders
- Folder play-count rollups now write in bulk instead of one query per folder, and a scan skips garbage collection when nothing changed
- Serving a cover no longer opens a full session: no
last_seenwrite, no serialized-session rewrite, and a cookie-less request (a crawler, a link preview) no longer leaves a session row behind Session::extendno longer rewrites the expire column on every request- Visitors who never queue anything no longer get a
tmp_playlistrow, dashboard and mashup boxes no longer write atmp_browserow they never store, and a page view no longer creates a broadcast stream session - Gettext loads the catalogue only when something is translated, and reads a prebuilt PHP array the opcache holds rather than parsing the
.moeach request - The Subsonic artist and playlist lists, the genre and artist-name lookups, the smartlist name lists and reverse-geocoding all warm their caches once per page instead of once per row
- Server-wide user counters are batched into one statement per key
- The set of generated art sizes is bounded, and a missing cover is served the placeholder that fits rather than the full-size original
- A remote
custom_blankalbumis handed to the browser as a url it caches once, rather than fetched server-side on every miss - The Subsonic, OpenSubsonic and API 6/8 playlist listings now serve the stored
last_count/last_duration, the way their smartlist branch always has, instead of recounting each row with two joined queries - The API song, album, artist and playlist pages, the Subsonic and OpenSubsonic lists, and the UPnP browse lists read a fixed number of queries whatever the page size. Genres, moods, ratings, art, labels, disks and smartlist owners are read once for the page
- The XML API output reads the page’s song art rows once instead of once per song
- The home page reads its highlighted songs from the page-wide cache, and cover metadata is read without the image blob nor file
- A request looks a user up once by API key or username, however many times it asks
- The recently played lists use more cache, speed improvement
- The preferences rebuild that follows a database update repairs the install once instead of once per user, and the garbage collector only rewrites the preference names that changed. Test on 500 users, went from 248s to 6s
user.apikeycarries an index, and the hashed-key fallback only reads the users holding a key- Play history search rules had no index
- Whole-table sweeps moved out of the loops (subsonic scrobble, catalog add)
docs/examples/nginx-site.confandapache-site.confgained example per-IP rate limiting for/login.php, the API handshake and Subsonic
Fixed (8.1.0)
- Album, album disk and artist song counts no longer include disabled songs, so an album whose tracks are all disabled stops advertising them
- The page-wide caches for album artists and object genres were never dropped when their maps changed, so a read after a write in the same request answered with the state from before it
- The OPML export of podcast subscriptions read every podcast in the system regardless of the caller’s catalog filter, letting a restricted user enumerate the subscriptions of catalogs they cannot browse
- A user’s timeline, the Friends Timeline widget, and the
timeline/friends_timelineAPI methods listed activity against songs, videos, albums and other catalog-scoped objects the viewer’s own catalog filter excludes; those entries are now hidden the same way the Now Playing widget already hides them - The public Now Playing page (
use_now_playing_embedded, viewable while logged out) still linked an unauthenticated viewer straight to the song/album/artist/video being played, and to a right-click play menu on the album art, even though the row itself was already catalog-filtered; both now require being logged in - Subsonic/OpenSubsonic
getIndexes/getMusicDirectorynow browse the real folder tree instead of a fake artist/album list so folder based clients work - A playlist’s total duration only summed its songs, leaving videos and podcast episodes uncounted
- Uploading new art didn’t update the image already on the page: its cache-busting id was looked up per-size, which is empty right after an upload, so the browser kept its cached copy
- The UPnP backend no longer answer every browse with a fatal error on PHP 8.5
- A custom browse base skipped every filter, group and sort; it is now joined as a derived table that restricts the normal query instead of replacing it
- Toggling a browse option emptied a browse that had been handed its ids
- An expired browse replayed by a crawler filled the log with level 1 “no renderer” lines
- Missing close box on a few template phtml files, and an anchor that closed inside the mashup heading box
- Grid view lost its row actions, and the delete confirm dialog ignored the theme
- The album page fell back to a blank cover instead of the album artist’s art
Album::check()’s cache wasn’t keyed on catalog, so a song could be matched onto an identically-tagged album from a different catalog instead of getting its own, sometimes surfacing as a duplicate[Disk N]section on a multi-disk album- A leftover
album_diskrow from a catalog move was never cleaned up (the check used a nullable-columnNOT IN), so a multi-disk album could show a duplicate[Disk N]section indefinitely - The same nullable-column
NOT INbug elsewhere, each silently doing nothing once one row anywhere had a NULL:- Folder playable-state was never re-marked unplayable
hide_dupe_smartlisthid every smartlist, not just duplicates- User garbage collection stopped removing orphaned sessions
- The add-to-playlist menu offered playlists the user could not add to
- Migration700005 filled
last_countwith its two parameters swapped, writing the playlist id in place of the count; upgrades from Ampache 6 now backfill correctly, and database 810007 repairs the installs that already ran it - Saving the server Interface preferences wiped
custom_favicon,custom_login_logoandcustom_login_background, three system preferences that tab never shows - The login page sent its redirect back with a literal
&in the url - The RSS feed url kept html entities in its slug and had no length limit
- The recently played lists showed outdated dates instead of reading the maintained
last_playedcolumn database 800029 added stats.php?action=shownow say “access denied” when access is denied- Reloading the advanced random page queued the whole library one insert at a time, and never answered on a large catalogue
- A client could send any play date, so one wrong clock pinned itself to the top of every recently played list until real time caught up. The play row,
last_playedon album disks and thesavePlayQueueshift are all clamped. Devices whose clock is not exact get one minute of slack. - A username was used raw as an upload folder name, so ../.. escaped the catalog. Path segments are no longer allowed in username
- Hardened the upload file browser sandbox (prefix containment is anchored on a separator, better check of the ownership)
- The web “add to playlist” action expanded a source playlist or smartlist checking only that it existed, so a user could copy another user’s private list into their own; a non-public source you neither own nor collaborate on is now skipped
- The web folder browse listed a folder’s contents without a catalog-access check and with the per-user catalog filter disabled, so a catalog-filtered user could enumerate folders in a catalog they’re excluded from; it now checks catalog access
- localplay access was never actually checked (any user passed) and Subsonic jukeboxControl checked nothing. Now they are gated on the user’s access level
- Private playlists and searches leaked through several endpoints: web smartlist, Subsonic getPlaylist/getPlaylists
- Deleting a play queue track checked only the row id, so any user could empty another user’s queue. Playlist’s id is now added to prevent that.
- Reordering a track checked only the row id, so any user could reorder another user’s playlist or collection
- Rating an object 0 repeatedly drained its weight
- An uploader could reassign their own uploaded song to another account through the edit form. The ownership field is now stripped from an owner’s edit
- Any user could pin their shoutbox message by posting the sticky field. It now requires content manager
- On specific database setup, the smart playlist logic operator could have reached the SQL WHERE clause unvalidated. It is now normalised to AND or OR before the query is built
- Missing close box on a few template phtml files
- A disabled user account could still authenticate through Subsonic and an RSS feed token
- Password/token comparisons in the API handshake, the
session_remembercookie MAC, and API key/stream token lookups used===/!=instead ofhash_equals() Ldap::auth()concatenated the raw username into the LDAP search filter and group-membership regex with no escaping- OpenID Connect login copied an
emailclaim even when the provider explicitly marked itemail_verified: false bin/cli run:catalog -s(sort/rename) could write outside the catalog when a tag value was exactly..- A server configured with
site_charsetsjis/gbk/big5/cp932could have its escaping backslash eaten by a crafted string’s lead byte, enabling SQL injection - WebDAV login accepted a disabled account and never bound the authenticated user, so
catalog_filter_groupwasn’t applied to WebDAV browsing - Logging out only cleared the
_remembercookie client-side; the server-side token stayed valid and replayable - Deleting a license, shout, album, folder, label, podcast episode or share via
action=deletedidn’t check the CSRF confirmation token - A share’s access counter could exceed
max_counterunder concurrent access - The RSS view plugin, artist summary, label/folder autocomplete and
Wanted::f_linkechoed untrusted values unescaped (XSS) - Downloading a file the server could not open answered with an empty file and a success status rather than an error
- Catalog actions started from the web interface (scan, clean, gather art) stopped with a connection error on MySQL, which rejects a user-level lock name longer than 64 characters
run:updateCatalog -a -g(the cron’s nightly-cag) ranCatalog::gather_art()’s full-catalog sweep instead of scoping the gather to the files-ajust added, re-checking every album/artist/song/video already missing art on every run; a full sweep is now reserved for-grequested without-aCatalog::gather_art()’s full-catalog sweep (run:updateCatalog -gwithout-a) gathered art for every song and video, not just the ones missing it, unlike its already-scoped album/artist/playlist searches; withgather_song_artenabled this could look like the whole library was being reimported- A free-text user preference (e.g.
custom_datetime) rendered unescaped into the admin preference-edit page (XSS) PlaylistUrlResolver(radio station playback) fetched a station’s playlist url without checking it was a public address firstUrlValidator’s check and the later curl fetch could resolve a hostname to different addresses (DNS rebinding); the fetch is now pinned to the address that was actually checkedadmin/catalog.php?action=clear_stats,system.php?action=reset_db_charset,action=clear_cacheandaction=clear_now_playingdidn’t check the CSRF confirmation token either- The
set_rating/set_userflagajax actions had no CSRF check at all - Disabling a user, or changing their password, didn’t revoke their
session_remembercookie, so the old session could keep authenticating with it - Link previews described the site instead of the page: the metadata each object page already built was never emitted, so a shared album or artist showed the generic card
- A share link announced every object as a song, so an album, artist or playlist preview claimed to be one
- A folder was served no cover at all: the image action asked for a placeholder file that was never shipped
- A shared link showed no image for an item without a cover while generated art was on: the drawn tile is an svg, which no preview scraper renders
- An RSS feed’s beautiful-url slug relied on
iconv(...//TRANSLIT...)to fold accented characters, whose output differs by platform; a title like “Café” could slug tocaf-einstead ofcafedepending on the server’s iconv build. Folding now uses Unicode normalization instead, which is portable
API 8.1.0
Added (810000)
playlists,user_playlists- New
last_durationsort, the playlist’s total duration as of when it was last counted
- New
catalog_action(ALL)- New
scan_catalog_folderstask
- New
- REST
catalogs/{catalog_id}/scanas an alias ofcatalog_actionwithtask=scan_catalog_folders
folders(API8)- New
timefield on the browsed folder, the summed duration of everything below it, subfolders included - New
timefield on each item in the folder’s contents, from the underlying object’s own row;nullfor an object type that carries no duration
- New
player(API6, API8)- Resuming a track already recorded as the caller’s last play now shifts that play’s history back to when it actually started (now - position), matching the existing Subsonic
saveplayqueuebehaviour
- Resuming a track already recorded as the caller’s last play now shifts that play’s history back to when it actually started (now - position), matching the existing Subsonic
Fixed (810000)
timeline,friends_timeline(ALL)- Listed activity against songs, videos, albums and other catalog-scoped objects the caller’s own catalog filter excludes; those entries are now omitted from the result, the same way the Now Playing widget already hides them
friends_timeline(API3, API4)- Returned the caller’s own activity instead of the activity of the users they follow, calling
getActivities()instead ofgetFriendsActivities()
- Returned the caller’s own activity instead of the activity of the users they follow, calling
- ALL
handshake: A disabled user account could still complete the handshake and receive a valid sessionstats: Naming another user’susername/user_idwithfilter=recentignored theirallow_personal_info_recentopt-out on API3, API4 and API5; only API6/API8 honoured itstats: Theuser_id/usernameoverride handed back another user’sstreamtokenembedded in each item’s play url; the response now carries the caller’s own tokenrate: An out-of-range value (e.g.127) was stored as-is instead of being clamped to 0-5, and repeatedly rating0could drain an object’s popularity weight below0- Setting
api_force_versionreopened an API version the admin had disabled, bypassing theapi_enable_3..api_enable_8check
flag(API4, API5, API6, API8)- A future
dateparameter pinned a favourite to the top of every newest list until real time caught up
- A future
- API3
playlist,playlist_songs: A private playlist or smartlist you neither own nor collaborate on was readable by anyone who guessed its id
- API5
ping:server_detailsreturned server-wide catalog counts scoped to user id0when the auth token didn’t resolve to a real user, instead of being rejected like API8 already was
playlist_add(API6, API8)- A private playlist or smartlist named as the source object was expanded into the caller’s own playlist, leaking its songs; a non-public source you neither own nor collaborate on is now refused
playlist_folder_items(API8)- A private playlist or smartlist filed into a folder leaked its metadata through the folder listing, which gated only on existence; a non-public list you neither own nor collaborate on is now hidden from the output