Hi,
you were on the right way: there were some issues with the permissions of the html folder.
Now the maintenance tasks are done.
The working config is:
# db accounts show nextcloud
nextcloud=ibay
AllowOverride=All
CgiBin=enabled
FollowSymLinks=enabled
Gid=5117
Group=groupe-nextcloud
Name=nextcloud
PasswordSet=no
PhpVersion=php70
PublicAccess=local
SSL=enabled
Uid=5117
UserAccess=wr-group-rd-everyone
and
# ls -l /home/e-smith/files/ibays/nextcloud/html
total 116
drwxrwsr-x 33 apache groupe-nextcloud 4096 6 févr. 01:40 3rdparty
drwxrwsr-x 37 apache groupe-nextcloud 4096 10 févr. 10:37 apps
-rw-rw-r-- 1 apache groupe-nextcloud 12063 6 févr. 01:38 AUTHORS
drwxrwsr-x 2 apache groupe-nextcloud 4096 16 févr. 18:36 config
-rw-rw-r-- 1 apache groupe-nextcloud 3593 6 févr. 01:38 console.php
drwxrwsr-x 17 apache groupe-nextcloud 4096 6 févr. 01:40 core
-rw-rw-r-- 1 apache groupe-nextcloud 4946 6 févr. 01:38 cron.php
drwxrwx--- 6 apache groupe-nextcloud 4096 9 févr. 20:14 data
-rw-rw-r-- 1 apache groupe-nextcloud 0 14 août 2016 fichier-texte
-rw-rw-r-- 1 apache groupe-nextcloud 179 6 févr. 01:38 index.html
-rw-rw-r-- 1 apache groupe-nextcloud 3417 6 févr. 01:38 index.php
drwxrwsr-x 3 apache groupe-nextcloud 4096 6 févr. 01:38 l10n
drwxrwsr-x 6 apache groupe-nextcloud 4096 6 févr. 01:38 lib
-rw-rw-r-- 1 apache groupe-nextcloud 283 6 févr. 01:38 occ
drwxrwsr-x 2 apache groupe-nextcloud 4096 6 févr. 01:38 ocs
drwxrwsr-x 2 apache groupe-nextcloud 4096 6 févr. 01:38 ocs-provider
-rw-rw-r-- 1 apache groupe-nextcloud 3214 6 févr. 01:38 public.php
-rw-rw-r-- 1 apache groupe-nextcloud 5370 6 févr. 01:38 remote.php
drwxrwsr-x 4 apache groupe-nextcloud 4096 6 févr. 01:38 resources
-rw-rw-r-- 1 apache groupe-nextcloud 26 6 févr. 01:38 robots.txt
drwxrwsr-x 14 apache groupe-nextcloud 4096 6 févr. 01:38 settings
-rw-rw-r-- 1 apache groupe-nextcloud 2274 6 févr. 01:38 status.php
drwxrwsr-x 3 apache groupe-nextcloud 4096 6 févr. 01:38 themes
drwxrwsr-x 2 apache groupe-nextcloud 4096 8 févr. 19:18 tmp
drwxrwsr-x 2 apache groupe-nextcloud 4096 6 févr. 01:38 updater
-rw-rw-r-- 1 apache groupe-nextcloud 363 6 févr. 01:40 version.php
The mistakes were:
- "my_user" was owner of all the files (because of copying the files by the installation over samba)=> issue with cron.php because of non matching user (as you explained)
=> I "choowned" cron.php to apache
=> then nexcloud claimed for permission for folders "config" and "apps"
So I "chowned" all the folder html
- the other mistake was the permissions set for the ibay: inspite "UserAccess=wr-group-rd-everyone" is written into the wiki, I had "UserAccess=wr-group-rd-group" because I didn't want that everyone can read the folders over samba.
I'm surprised about this: it is the first time that permissions for samba have an effect on the www behavior of the ibay (therefore I didn't give the "read" for everyone).
On the other hand, during this writing I'm realizing that this script has nothing to do with www, it is in fact the normal way to run a command: the user (apache in this case) must have enough permissions on the files and folder...
As "apache" isn't "admin" and doesn't belong to the group, the files and folders have to be set for "everyone"!
Questions: do you run the tasks as "admin" to avoid giving read permission for everyone on this ibay? Does "admin" belong to your group for the ibay?
Many thanks in any case for your help!
Arnaud