How to fix web update issues to NC12.0.4

Looks like many are having issues trying to update from admin panel of NextCloud.

Please follow the alternative manual procedure which seems to work fine, if not at least you will be getting error messages that will give you clues as far as what is not working.

Before beginning the upgrade, make sure you have proper backups just incase…
cd /var/www/html (or where you have installed nextcloud)

sudo -u www-data php updater/updater.phar <-----if you are using nginx (in some systems such as debian/and ubuntu this could be for apache as well)

sudo -u apache php updater/updater.phar <-----if you are using apache

there might be some issues with the location PATH for php etc. search google how to fix that.

sudo -u www-data php occ upgrade <-----if you are using nginx ( (in some systems such as debian/and ubuntu this could be for apache as well)

sudo -u apache php occ upgrade <-----if you are using apache

Do not forget to restart apache/nginx after the process.

*By the way if anyone is having A instead of A+ from security scan due to Security Scan: __Host-Prefix
all you have to do is look into apache config file where the root directory is defined
add the subdir at the end which will make the domain root again and get you A+ in security scans.

 # DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/var/www/html/nextcloud/"

#
# Relax access to content within /var/www.
#
<Directory "/var/www">
    AllowOverride None
    # Allow open access:
    Require all granted
</Directory>

# Further relax access to the default document root:
<Directory "/var/www/html/nextcloud">

This should fix most of the hangup issues many people complaining about.
Good luck

Thank you for the hint! I wonder where the promised improvement to ownCloud is on the update procedure!? Some developers care to explain and of course fix this ASAP?

That depends on the distribution you are using and the user running the webserver. On Debian/Ubuntu it is by default www-data (for nginx and apache!).

Thanks, I have updated it so it will not confuse people.