G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=27
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'
busterLinux DietPi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/LinuxRPi 4 Model B (armv7l)
or (EG: RPi3)1b874344-513d-4ce2-82aa-c6e56620d808
phpmyadmin should install without error
phpmadmin fails with cannot overwrite non-directory '/var/www/phpmyadmin' with directory
pMyAdmin-5.0.0-english
Lighthttd fails to start because of 50-myphpadmin.conf doesnt exist


I tried to sent report from the error-handler but terminal closed after it did something. Dunno if actually sent anything. First time doing a report, also attached bug report ID, maybe report went through
@Nightliss
Many thanks for your report.
Hmm strange, I tried fresh install an reinstall and both works very well, hence at least no syntax bug.
It should no be related, but could you try the following:
sed -i 's/target="-d \$target"/target="-d\$target"/' /DietPi/dietpi/dietpi-software
dietpi-software reinstall 90
@MichaIng

Tried to install again

but no dice :/
Hi,
just a stupid thing but if I read the error message above, it's stating cannot overwrite non-directory with directory. Means /var/www/phpmyadmin is a file. Isn't it?
Pls can you past output of
cd /var/www/
ls -l
Hey @Joulinar, here is the result, seems it's symlinked?

pls can you try to remove the symlink. it should be a directory
root@DietPiVM1:/var/www# ls -l
insgesamt 76
-rw-r--r-- 1 root root 37984 Jan 3 11:04 apc.php
-rw-r--r-- 1 root root 3388 Jan 3 10:59 index.lighttpd.html
-rw-r--r-- 1 root root 22915 Jan 3 11:04 opcache.php
-rw-r--r-- 1 root root 20 Jan 3 11:04 phpinfo.php
drwxr-xr-x 11 root root 4096 Jan 3 11:04 phpmyadmin
root@DietPiVM1:/var/www#
@Joulinar,
that helped, phpmyadmin installed correctly. Somehow it didn't occur to me to try a remove the symlink. Many thanks for help :)
PS: Had no idea that overwriting a symlink would be a problem for the os.
@Nightliss
Ah you're right. In case of Nginx and Lighttpd we previously placed symlinks and I guess the installer does not correctly remove them, but only directories. I'll fix that and release a small hotfix release v6.28, as there have been some other small bugs appeared (small code changes, easy to fix).
Fixed with: https://github.com/MichaIng/DietPi/commit/9c80f04302456000172057c85be33d877e4db5fa (whoopsie commit got wrong version string 馃槄)
v6.28 is out, I mark this issue as closed.
Most helpful comment
@Nightliss
Ah you're right. In case of Nginx and Lighttpd we previously placed symlinks and I guess the installer does not correctly remove them, but only directories. I'll fix that and release a small hotfix release v6.28, as there have been some other small bugs appeared (small code changes, easy to fix).
Fixed with: https://github.com/MichaIng/DietPi/commit/9c80f04302456000172057c85be33d877e4db5fa (whoopsie commit got wrong version string 馃槄)