Update User giving an error

I am trying to user the auto updater but it lists almost all the files and says "Error no write permission on these files.

folder looks like this:

drwxrwxrwx 16 root root 4096 Apr 25 2020 admin
-rwxrwxrwx 1 root root 260 Apr 22 2020 api.php
drwxrwxrwx 10 root root 4096 Apr 25 2020 base
drwxrwxrwx 2 root root 4096 Dec 18 01:24 config
-rwxrwxrwx 1 root root 3630 Apr 22 2020 dl.php
drwxrwxrwx 3 root root 4096 Apr 25 2020 images
-rwxrwxrwx 1 root root 48673 Apr 22 2020 index.php
drwxrwxrwx 2 root root 4096 Apr 25 2020 js
-rwxrwxrwx 1 root root 10081 Apr 22 2020 lt.php
drwxrwxrwx 2 root root 4096 Apr 25 2020 styles
drwxrwxrwx 2 root root 4096 Apr 25 2020 texts
drwxrwxrwx 3 root root 4096 Apr 25 2020 updater
-rwxrwxrwx 1 root root 2822 Apr 22 2020 ut.php

Who is supposed to be the User ??

@Dingo001 The directories and files need to be writeable by the web server process. That is usually www-data or apache depending on the linux distribution.

Thank you I should have thought of that. I seem to have got myself into a bind now. I got the error “Downgrade is not supported” and looked in the upgrade doco and it said it may be because the download was not complete. So I deleted the download file from /root/downloads/phplist-3.6 etc and restarted the upgrade page and it still says “Downgrade is not supported”

@Dingo001

You don’t want to be using root for anything at all.

Delete the file lists/config/actions.txt if it exists and the directory lists/tmp_uploaded_update if that exists also.

I am in a circle here. I do not have a /lists directory. the two files were in /bamail/config and /bamail respectively. bamail is the name I gave the instance. I deleted those files and had to add a index.html file as it \said it was missing. I pressed on with the update and it said it downloaded the update so I clicked next and I got the “Downgrade is not supported” message again.

I have deleted phplist from the server and will start over tomorrow with a fresh install.

Ok. Try to check that the file and directory permissions allow the web server process to remove and add files.

I have made a few changes to the updater code to try to show more information when something goes wrong. It is not yet released but you might want to try it.

You can copy the code from https://raw.githubusercontent.com/bramley/updater/detect_current_version/index.php then replace the code in the file bamail/updater/index.php