GLPI - Problème de Droits sur les fichiers

su-toto Messages postés 45 Date d'inscription   Statut Membre Dernière intervention   -  
fab-lc Messages postés 1 Statut Membre -
Bonjour,

Après des heures a éplucher le web et a trifouiller dans mon cerveau, je m'en remet au savoir de certains d'entre vous pour un problème a n'en plus comprendre; je m'explique :

J'ai un serveur fedora 20 sur lequel j'ai installé apache2 (donc httpd sur fedora) ainsi que mysql et php5, en bref un LAMP tout neuf et fonctionnel (phpmyadmin fonctionne très bien, etc..)

J'ai donc voulu installer GLPI pour gerer le parc informatique, jusque la tout va bien je le telecharge, copie/colle le repertoire ./glpi dans /var/www/html/glpi et je chown tout cela ce qui nous donne :

chown -R apache:apache /var/www/html/glpi

Normalement, cela devrait suffire mais il n'en n'est rien, lors du processus d'installation j'ai droit a des erreurs comme quoi les droits ne sont pas suffisant pour creer des repertoires et fichiers

Je tente donc le tout pour le tout, au moins le temps d'essayer, mon serveur étant seulement local :

chmod -R 777 /var/www/html/glpi


Je verifie donc grace à ls -l /var/www/html/glpi et j'obtient :

drwxrwxrwx.  2 apache apache  4096 20 juin  15:33 ajax
-rwxrwxrwx. 1 apache apache 159 18 juin 10:18 AUTHORS.txt
-rwxrwxrwx. 1 apache apache 64 18 juin 10:19 CHANGELOG.txt
drwxrwxrwx. 2 apache apache 4096 20 juin 15:33 config
-rwxrwxrwx. 1 apache apache 18092 18 juin 10:18 COPYING.txt
drwxrwxrwx. 2 apache apache 4096 20 juin 15:33 css
drwxrwxrwx. 13 apache apache 4096 20 juin 15:33 files
drwxrwxrwx. 2 apache apache 20480 20 juin 15:33 front
drwxrwxrwx. 2 apache apache 20480 20 juin 15:33 inc
-rwxrwxrwx. 1 apache apache 6316 18 juin 10:19 index.php
drwxrwxrwx. 3 apache apache 4096 20 juin 15:33 install
drwxrwxrwx. 15 apache apache 4096 20 juin 15:33 lib
-rwxrwxrwx. 1 apache apache 145 18 juin 10:18 LISEZMOI.txt
drwxrwxrwx. 2 apache apache 4096 20 juin 15:33 locales
-rwxrwxrwx. 1 apache apache 3398 18 juin 10:18 login.php
-rwxrwxrwx. 1 apache apache 2107 18 juin 10:19 logout.php
drwxrwxrwx. 5 apache apache 4096 20 juin 15:33 pics
drwxrwxrwx. 2 apache apache 4096 20 juin 15:33 plugins
-rwxrwxrwx. 1 apache apache 122 18 juin 10:18 README.txt
-rwxrwxrwx. 1 apache apache 16495 18 juin 10:18 script.js
drwxrwxrwx. 2 apache apache 4096 20 juin 15:33 scripts
-rwxrwxrwx. 1 apache apache 5632 18 juin 10:18 status.php


Donc la meme un simple user en compte invité pourrait creer un dossier, modifier ou creer un fichier etc...

SAUF QUE... De nouveau dans l'install j'obtient toujours ces messages de type :

Test d'écriture du fichier de configuration	

Le dossier n'a pas pu être créé.
Contrôle des droits sur le répertoire : /var/www/html/glpi/config'


Je precise avoir redémaré apache après chacune de ces manip, meme essayer de faire stop/start mais rien n'y fait..

Donc si quelqu'un a une suggestion pour un probleme que je ne pouvait meme pas concevoir, il est le bienvenu :-)

2 réponses

  1. Thorak83 Messages postés 1140 Statut Membre 156
     
    Bonjour,

    Surement qu'Apache ne tourne pas avec le user apache et le groupe apache.
    Chez moi c'est le user www-data et le groupe www-data.

    vérifiez dans le fichier /etc/apache2.conf

    Cordialement
    0
    1. su-toto Messages postés 45 Date d'inscription   Statut Membre Dernière intervention   2
       
      Bonjour, merci de votre interet, vous devez sans aucun doute tourner sur debian ou un de ces dérivés pour ma part

      cat /etc/passwd renvoit :

      root:x:0:0:root:/root:/bin/bash
      bin:x:1:1:bin:/bin:/sbin/nologin
      daemon:x:2:2:daemon:/sbin:/sbin/nologin
      adm:x:3:4:adm:/var/adm:/sbin/nologin
      lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
      sync:x:5:0:sync:/sbin:/bin/sync
      shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
      halt:x:7:0:halt:/sbin:/sbin/halt
      mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
      operator:x:11:0:operator:/root:/sbin/nologin
      games:x:12:100:games:/usr/games:/sbin/nologin
      ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
      nobody:x:99:99:Nobody:/:/sbin/nologin
      avahi-autoipd:x:170:170:Avahi IPv4LL Stack:/var/lib/avahi-autoipd:/sbin/nologin
      dbus:x:81:81:System message bus:/:/sbin/nologin
      polkitd:x:999:998:User for polkitd:/:/sbin/nologin
      rtkit:x:172:172:RealtimeKit:/proc:/sbin/nologin
      chrony:x:998:997::/var/lib/chrony:/sbin/nologin
      usbmuxd:x:113:113:usbmuxd user:/:/sbin/nologin
      rpc:x:32:32:Rpcbind Daemon:/var/lib/rpcbind:/sbin/nologin
      openvpn:x:997:996:OpenVPN:/etc/openvpn:/sbin/nologin
      avahi:x:70:70:Avahi mDNS/DNS-SD Stack:/var/run/avahi-daemon:/sbin/nologin
      pulse:x:996:995:PulseAudio System Daemon:/var/run/pulse:/sbin/nologin
      lightdm:x:995:993::/var/lib/lightdm:/sbin/nologin
      rpcuser:x:29:29:RPC Service User:/var/lib/nfs:/sbin/nologin
      nfsnobody:x:65534:65534:Anonymous NFS User:/var/lib/nfs:/sbin/nologin
      colord:x:994:992:User for colord:/var/lib/colord:/sbin/nologin
      sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin
      tcpdump:x:72:72::/:/sbin/nologin
      abcd-server:x:1000:1000:ABCD-server:/home/abcd-server:/bin/bash
      tss:x:59:59:Account used by the trousers package to sandbox the tcsd daemon:/dev/null:/sbin/nologin
      unbound:x:993:991:Unbound DNS resolver:/etc/unbound:/sbin/nologin
      nm-openconnect:x:992:990:NetworkManager user for OpenConnect:/:/sbin/nologin
      apache:x:48:48:Apache:/usr/share/httpd:/sbin/nologin
      mysql:x:27:27:MariaDB Server:/var/lib/mysql:/sbin/nologin
      admin:x:1001:1001::/home/admin:/bin/bash
      0
    2. Thorak83 Messages postés 1140 Statut Membre 156
       
      que dit le fichier de conf d'apache concernant le user et le groupe utilisé ?
      0
    3. su-toto Messages postés 45 Date d'inscription   Statut Membre Dernière intervention   2
       
      cat /etc/httpd/conf/httpd.conf me renvoie


      ...
      User apache
      Group apache
      ...
      0