Ampache install not working

Ampache is refusing to install:

Processing triggers for php8.4-cli (8.4.11-1) ...
[  OK  ] DietPi-Software | APT install php8.4-curl php8.4-intl php8.4-xml
[  OK  ] DietPi-Software | G_THREAD: All threads finished
[  OK  ] DietPi-Software | unzip -o ampache-7.7.2_all_php8.4.zip -dampache
[  OK  ] DietPi-Software | rm ampache-7.7.2_all_php8.4.zip
[  OK  ] DietPi-Software | mv ampache /mnt/dietpi_userdata/ampache
[  OK  ] DietPi-Software | ln -s /mnt/dietpi_userdata/ampache/public /var/www/ampache
[  OK  ] DietPi-Software | phpenmod curl intl xml
[  OK  ] DietPi-Software | cp /mnt/dietpi_userdata/ampache/config/ampache.cfg.php.dist /mnt/dietpi_userdata/ampache/config/ampache.cfg.php
[  OK  ] DietPi-Software | Comment in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php converted to setting: web_path = "/ampache"
[  OK  ] DietPi-Software | Setting in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php adjusted: database_hostname = /run/mysqld/mysqld.sock
[  OK  ] DietPi-Software | Setting in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php adjusted: database_name = ampache
[  OK  ] DietPi-Software | Setting in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php adjusted: database_username = ampache
[  OK  ] DietPi-Software | Setting in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php adjusted: database_password = ********************************
[  OK  ] DietPi-Software | Comment in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php converted to setting: tmp_dir_path = "/tmp"
[  OK  ] DietPi-Software | Comment in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php converted to setting: transcode_cmd = "ffmpeg"
[  OK  ] DietPi-Software | Comment in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php converted to setting: transcode_m4a = "required"
[  OK  ] DietPi-Software | Comment in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php converted to setting: transcode_flac = "required"
[  OK  ] DietPi-Software | Comment in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php converted to setting: transcode_mpc = "required"
[  OK  ] DietPi-Software | Comment in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php converted to setting: transcode_ogg = "allowed"
[  OK  ] DietPi-Software | Comment in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php converted to setting: transcode_wav = "required"
[  OK  ] DietPi-Software | Comment in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php converted to setting: transcode_avi = "allowed"
[  OK  ] DietPi-Software | Comment in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php converted to setting: transcode_mkv = "allowed"
[  OK  ] DietPi-Software | Comment in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php converted to setting: transcode_mpg = "allowed"
[  OK  ] DietPi-Software | Comment in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php converted to setting: encode_target = mp3
[  OK  ] DietPi-Software | Comment in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php converted to setting: encode_video_target = webm
[  OK  ] DietPi-Software | Comment in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php converted to setting: generate_video_preview = "true"
[  OK  ] DietPi-Software | Comment in /mnt/dietpi_userdata/ampache/config/ampache.cfg.php converted to setting: waveform = "true"
[  OK  ] DietPi-Software | chown www-data /mnt/dietpi_userdata/ampache/config/ampache.cfg.php.dist /mnt/dietpi_userdata/ampache/config/ampache.cfg.php
[  OK  ] DietPi-Software | systemctl start mariadb
[ INFO ] DietPi-Create_MySQL_DB | Creating MariaDB database ampache for user ampache
[  OK  ] DietPi-Create_MySQL_DB | systemctl start mariadb
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
[FAILED] Creating MariaDB database ampache for user ampache | Exited with error
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
[FAILED] DietPi-Software | mysql ampache
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
[FAILED] DietPi-Software | mysql ampache
[FAILED] DietPi-Software | Unable to continue, DietPi-Software will now terminate.

DietPi v9.16 has been released already. It’s not BETA anymore

I guess you are trying to install Ampache ?? Pls fill the following form as we would need further details.

Required

  • DietPi version | cat /boot/dietpi/.version
  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
  • Kernel version | uname -a
  • Architecture | dpkg --print-architecture
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
  • DietPi version | G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=16
    G_DIETPI_VERSION_RC=3
    G_GITBRANCH=‘beta’
    G_GITOWNER=‘MichaIng’

  • Distro version | trixie

  • Kernel version | Linux DietPi 6.12.41+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.41-1 (2025-08-12) x86_64 GNU/Linux

  • Architecture | amd64

  • SBC model | Native PC (x86_64)

Possible solution on GitHub Ampache install not working · Issue #7706 · MichaIng/DietPi · GitHub

1 Like