La nouvelle version d'OCS a le chemin du répertoire des profiles codé en dur.
function create_profile($data) { ... if (file_put_contents(DOCUMENT_REAL_ROOT.'/config/profiles/'.$newProfile->getName().'.xml', $xml)) { return $newProfile->getName(); } else { return false; }
Le répertoire profiles et les fichiers doivent appartenir au même utilisateur et groupe que ton serveur web :
root@ocs:/usr/share/ocsinventory-reports# ls -ld ocsreports/config/profiles
drwxr-xr-x 2 www-data www-data 4096 août 24 15:22 ocsreports/config/profiles
root@ocs:/usr/share/ocsinventory-reports# ls -l ocsreports/config/profiles
total 24
-rwxr-xr-x 1 www-data www-data 2153 août 3 16:18 admin.xml
-rwxr-xr-x 1 www-data www-data 1261 août 2 09:57 dde_teledeploy.xml
-rw-r--r-- 1 www-data www-data 2152 août 24 15:14 essai.xml
-rwxr-xr-x 1 www-data www-data 2058 août 2 09:57 ladmin.xml
-rwxr-xr-x 1 www-data www-data 29 août 2 09:57 README
-rwxr-xr-x 1 www-data www-data 3786 août 2 10:51 sadmin.xml
Si c'est déjà le cas, regarde le fichier error.log de ton serveur web. On ne sait jamais, cela peut te donner une indication.
A+