Bonjour à tous,

Je me trouve confronté à un problème sur une Debian où apache, GLPI & OCS sont installé. Lorsque je veux configurer le plugin OCSNG dans GLPI je me retrouve fac à une erreur 403.

Le lien quand on veut configurer le plugin c'est : http://10.10.1.5/plugins/ocsinventor...ont/config.php

/var/log/apache2/error.log when 403 trigger : AH01630: client denied by server configuration: /var/www/glpi/plugins/ocsinventoryng/front/config.php, referer: http://10.10.1.5/front/plugin.php

  • Apache 2.4.10
  • GLPI 0.90.1
  • OCSNG plugin 1.2.1
  • OCS Server 2.2


Si je fait sur un navigateur web 10.10.1.5 je tombe sur GLPI et tout marche, si je fait 10.10.1.5/ocsreports je tombe sur OCS et ça marche et même si je fait 10.10.1.5/front ça marche mais /plugins qui est dans le même dossier avec les même droits, ..., comprend pas.

ls -l /var/www/glpi
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
total 164
drwxrwxr-x  2 www-data root      4096 nov.  27 15:30 ajax
-rw-rw-r--  1 www-data root       194 nov.  27 15:30 AUTHORS.txt
-rw-rw-r--  1 www-data root        64 nov.  27 15:30 CHANGELOG.txt
drwxrwxr-x  2 www-data root      4096 févr. 15 09:44 config
-rw-rw-r--  1 www-data root     18092 nov.  27 15:30 COPYING.txt
drwxrwxr-x  4 www-data root      4096 nov.  27 15:30 css
drwxr-xr-x  2 www-data www-data  4096 févr. 15 09:20 download
drwxrwxr-x 13 www-data root      4096 févr. 15 09:44 files
drwxrwxr-x  2 www-data root     20480 nov.  27 15:30 front
drwxrwxr-x  2 www-data root     20480 nov.  27 15:30 inc
-rw-rw-r--  1 www-data root      6811 nov.  27 15:30 index.php
drwxrwxr-x  3 www-data root      4096 févr.  8 10:30 install
drwxrwxr-x 16 www-data root      4096 nov.  27 15:30 lib
-rw-rw-r--  1 www-data root       145 nov.  27 15:30 LISEZMOI.txt
drwxrwxr-x  2 www-data root      4096 nov.  27 15:30 locales
drwxr-xr-x  2 www-data www-data  4096 févr.  8 16:34 logs
drwxrwxr-x  5 www-data root      4096 nov.  27 15:30 pics
drwxrwxrwx  3 www-data www-data  4096 févr. 15 09:54 plugins
-rw-rw-r--  1 www-data root       124 nov.  27 15:30 README.txt
-rw-rw-r--  1 www-data root     21138 nov.  27 15:30 script.js
drwxrwxr-x  2 www-data root      4096 nov.  27 15:30 scripts
-rw-rw-r--  1 www-data root      6256 nov.  27 15:30 status.php
ls -l /var/www/glpi/plugins/
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
total 8
drwxrwxrwx 9 www-data www-data 4096 nov.  20 21:25 ocsinventoryng
-rwxrwxrwx 1 www-data www-data   80 nov.  27 15:30 remove.txt
ls -l /var/www/glpi/plugins/ocsinventoryng/
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
total 148
drwxrwxrwx 2 www-data www-data  4096 nov.  20 21:25 docs
drwxrwxrwx 2 www-data www-data  4096 nov.  20 21:25 front
-rwxrwxrwx 1 www-data www-data 92021 nov.  19 19:00 hook.php
drwxrwxrwx 2 www-data www-data  4096 nov.  20 21:25 inc
drwxrwxrwx 3 www-data www-data  4096 nov.  20 21:25 install
-rwxrwxrwx 1 www-data www-data 18092 déc.  15  2012 LICENSE
drwxrwxrwx 2 www-data www-data  4096 nov.  20 21:25 locales
drwxrwxrwx 2 www-data www-data  4096 nov.  20 21:25 pics
drwxrwxrwx 2 www-data www-data  4096 nov.  20 21:25 scripts
-rwxrwxrwx 1 www-data www-data  7040 nov.  20 20:54 setup.php
ls -l /var/www/glpi/plugins/ocsinventoryng/front/
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
total 104
-rwxrwxrwx 1 www-data www-data 2061 juin   4  2015 config.form.php
-rwxrwxrwx 1 www-data www-data 1818 janv. 12  2015 config.php
-rwxrwxrwx 1 www-data www-data 4155 févr. 26  2015 deleted_equiv.php
-rwxrwxrwx 1 www-data www-data 1416 janv. 12  2015 detail.php
-rwxrwxrwx 1 www-data www-data 1312 févr. 26  2015 devicebiosdata.form.php
-rwxrwxrwx 1 www-data www-data 1309 févr. 26  2015 devicebiosdata.php
-rwxrwxrwx 1 www-data www-data 1325 févr. 26  2015 item_devicebiosdata.form.php
-rwxrwxrwx 1 www-data www-data 1406 janv. 12  2015 logs.php
-rwxrwxrwx 1 www-data www-data 1416 janv. 15  2015 networkport.php
-rwxrwxrwx 1 www-data www-data 1281 oct.  15  2013 networkporttype.form.php
-rwxrwxrwx 1 www-data www-data 1277 oct.  15  2013 networkporttype.php
-rwxrwxrwx 1 www-data www-data 1933 oct.  15  2013 notimportedcomputer.form.php
-rwxrwxrwx 1 www-data www-data 1436 janv. 12  2015 notimportedcomputer.php
-rwxrwxrwx 1 www-data www-data 1908 janv. 12  2015 ocslink.form.php
-rwxrwxrwx 1 www-data www-data 2294 janv. 12  2015 ocsng.clean.php
-rwxrwxrwx 1 www-data www-data 5178 mars   5  2015 ocsng.import.php
-rwxrwxrwx 1 www-data www-data 3658 janv. 12  2015 ocsng.link.php
-rwxrwxrwx 1 www-data www-data 2178 janv. 12  2015 ocsng.php
-rwxrwxrwx 1 www-data www-data 3439 janv. 12  2015 ocsng.sync.php
-rwxrwxrwx 1 www-data www-data 2010 févr.  3  2015 ocsserver.form.php
-rwxrwxrwx 1 www-data www-data 1375 janv. 12  2015 ocsserver.php
-rwxrwxrwx 1 www-data www-data 1750 janv. 13  2015 profile.form.php
-rwxrwxrwx 1 www-data www-data 1456 janv. 12  2015 thread.form.php
-rwxrwxrwx 1 www-data www-data 1845 janv. 12  2015 thread.php
/etc/apache2/sites-available/000-default.conf :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/glpi
 
        <Directory /var/www/glpi>
          Options Indexes FollowSymLinks MultiViews
          AllowOverride None
          Require all granted
        </Directory>
 
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
J'ai regardé et essayé plusieurs trucs mais je sèche alors si une âme charitable passe par là please help me