Writing in apps folder is not possible

nextcloud3

[morta@nas nextcloud]$ ls -la
total 156
drwxr-xr-x 12 http http  4096 Jan 26 11:52 .
drwxr-xr-x  4 root root  4096 Jan 26 11:52 ..
drwxr-xr-x 44 http http  4096 Jan 26 11:52 3rdparty
drwsrwsrwt 48 http http  4096 Jan 26 11:52 apps
-rw-r--r--  1 http http 19327 Jan 22 12:57 AUTHORS
lrwxrwxrwx  1 http http    29 Jan 22 12:57 config -> /etc/webapps/nextcloud/config
-rw-r--r--  1 http http  3924 Jan 22 12:57 console.php
-rw-r--r--  1 http http 34520 Jan 22 12:57 COPYING
drwxr-xr-x 22 http http  4096 Jan 26 11:52 core
-rw-r--r--  1 http http  5226 Jan 22 12:57 cron.php
lrwxrwxrwx  1 http http    32 Jan 22 12:57 .htaccess -> /etc/webapps/nextcloud/.htaccess
-rw-r--r--  1 http http   156 Jan 22 12:57 index.html
-rw-r--r--  1 http http  3455 Jan 22 12:57 index.php
drwxr-xr-x  6 http http  4096 Jan 26 11:52 lib
-rwxr-xr-x  1 http http   283 Jan 22 12:57 occ
drwxr-xr-x  2 http http  4096 Jan 26 11:52 ocm-provider
drwxr-xr-x  2 http http  4096 Jan 26 11:52 ocs
drwxr-xr-x  2 http http  4096 Jan 26 11:52 ocs-provider
-rw-r--r--  1 http http  3139 Jan 22 12:57 public.php
-rw-r--r--  1 http http  5340 Jan 22 12:57 remote.php
drwxr-xr-x  4 http http  4096 Jan 26 11:52 resources
-rw-r--r--  1 http http    26 Jan 22 12:57 robots.txt
-rw-r--r--  1 http http  2452 Jan 22 12:57 status.php
drwxr-xr-x  3 http http  4096 Jan 26 11:52 themes
drwxr-xr-x  2 http http  4096 Jan 26 11:52 updater
-rw-r--r--  1 http http   101 Jan 22 12:57 .user.ini
-rw-r--r--  1 http http   383 Jan 22 12:57 version.php
lrwxrwxrwx  1 http http    23 Jan 22 12:57 wapps -> /var/lib/nextcloud/apps

[Service]
# Your data directory
ReadWritePaths=/var/lib/nextcloud/data
ReadWritePaths=/home/data/nextcloud
# Optional: add if you've set the default apps directory to be writable in config.php
ReadWritePaths=/usr/share/webapps/nextcloud/apps

# Optional: unnecessary if you've set 'config_is_read_only' => true in your config.php
ReadWritePaths=/usr/share/webapps/nextcloud/config
ReadWritePaths=/etc/webapps/nextcloud/config

# Optional: add if you want to use Nextcloud's internal update process

cat /etc/webapps/nextcloud/config/config.php
<?php
$CONFIG = array (
  'datadirectory' => '/home/data/nextcloud',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/usr/share/webapps/nextcloud/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/lib/nextcloud/apps',
      'url' => '/wapps',
      'writable' => true,
    ),
  ),
  'passwordsalt' => 'XXXX',
  'secret' => 'XXX',
  'trusted_domains' => 
  array (
	  0 => 'localhost',
	  1 => 'cloud.joelmueller.ch',
	  2 => '85.195.234.234',
  ),
  'dbtype' => 'mysql',
  'version' => '23.0.0.10',
  'overwrite.cli.url' => 'http://cloud.joelmueller.ch',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'oc_admin2',
  'dbpassword' => 'XXX',
  'installed' => true,
  'instanceid' => 'XXX',
);

What is wrong?
I did chmod -R 7777 /usr/share/webapps/nextcloud/apps but still not accessible

Change writable => true fixed the problem