Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Erreur 404 wiki [closed]

Bonjour à tous,

J'ai installé la dernière version d'ocs sur centos 7, j'ai le message d'erreut 404 sur mes clients, ce qui fait qu'ils ne remontent pas dans la console ocs, d'après le wiki l'erreur est connue, mais je ne comprends pas trop le sens de la phrase :

404: l'url "/ocsinventory" ne peut être trouvé sur le serveur. Vous avez fait une erreur dans la configuration d'Apache. Avez-vous inclu le contenu de configuration Apache dans le fichier de configuration d'Apache ? Avez-vous mis-à-jour ce contenu selon vos besoins ?

Malheureusement n'étant pas très doué sous linux, j'ai du mal à résoudre le problème, beaucoup parle de mon vhost qui ne serait pas bon car ocs créé son propre vhost, mais je n'y comprends pas grand chose, j'ai regardé dans mon /etc/httpd/conf.d/ocsinventory-reports.conf  et effectivement il n'y a rien en rapport avec /ocsinventory, il y a des vhost pour download et ocsreports et snmp mais pas ocsinventory, et je ne sais pas quoi rajouter, voici mon fichier :

Alias /ocsreports /usr/share/ocsinventory-reports/ocsreports

<Directory /usr/share/ocsinventory-reports/ocsreports>
    # By default, users can use console from everywhere
      <IfModule mod_authz_core.c>
        # Apache 2.4
        Require all granted
          </IfModule>
          <IfModule !mod_authz_core.c>
        Order deny,allow
        Allow from all
      </IfModule>
    Options Indexes FollowSymLinks
    DirectoryIndex index.php
    AllowOverride None

    # Uncomment following to force use of HTTPS in Administration Server
    #SSLRequireSSL

    # PHP tuning (not working on all distribution, use php.ini instead)
    <IfModule mod_php5.c>
        AddType application/x-httpd-php .php
        php_flag file_uploads           on
        # Some PHP tuning for deployment feature up to 8 MB
        # post_max_size must be greater than upload_max_filesize
        # because of HTTP headers
        php_value post_max_size         101m
        php_value upload_max_filesize   100m

        # You may have to uncomment following on errors
        #php_value max_execution_time -1
        #php_value max_input_time -1

        # Uncomment following if you need to specify a mysql socket
        #php_value mysql.default_socket "path/to/mysql/unix/socket"

        #!! Mandatory !! : set magic_quotes_gpc to off (to make ocsreports works correctly)
        php_flag magic_quotes_gpc      off
    </IfModule>
    # Duplicate for php7 compatibility
    <IfModule mod_php7.c>
        AddType application/x-httpd-php .php
        php_flag file_uploads           on
        # Some PHP tuning for deployment feature up to 8 MB
        # post_max_size must be greater than upload_max_filesize
        # because of HTTP headers
        php_value post_max_size         101m
        php_value upload_max_filesize   100m
        # You may have to uncomment following on errors
        #php_value max_execution_time -1
        #php_value max_input_time -1

        # Uncomment following if you need to specify a mysql socket
        #php_value mysql.default_socket "path/to/mysql/unix/socket"

        #!! Mandatory !! : set magic_quotes_gpc to off (to make ocsreports works correctly)
        php_flag magic_quotes_gpc      off
    </IfModule>

    # Uncomment following to allow HTTP body request up to 4 MB
    # instead default 512 KB
    #LimitRequestBody 4194304

</Directory>

################################################################################
# Deployment packages download area
#
# Alias to put Deployment package files outside Apache document root directory
#
<Directory /var/lib/ocsinventory-reports/download>
   <IfModule mod_authz_core.c>
     # Apache 2.4
     Require all granted
   </IfModule>
   <IfModule !mod_authz_core.c>
     Order deny,allow
     Allow from all
   </IfModule>
</Directory>
Alias /download /var/lib/ocsinventory-reports/download

################################################################################
# Snmp communities area
#
# Alias to put Snmp custom Mibs files outside Apache document root directory
#
<Directory /var/lib/ocsinventory-reports/snmp>
   <IfModule mod_authz_core.c>
     # Apache 2.4
     Require all granted
   </IfModule>
   <IfModule !mod_authz_core.c>
     Order deny,allow
     Allow from all
   </IfModule>
</Directory>
Alias /snmp /var/lib/ocsinventory-reports/snmp

Merci par avance,

Cordialement,

Cédric

closed with the note: Problem solved
in OCS Inventory NG server for Unix by (450 points)
closed by

12 Answers

0 votes
J'ai malheureusement déjà vérifié les users sql, et tout est OK. J'ai même essayé avec le user root sans changement.

Merci beaucoup pour ton aide dans les cas !

Cordialement,
by (450 points)
0 votes
Bonjour,

Pour information le message venait apparemment du fait du manque du mod_perl, sauf que quand je l'installais, je ne pouvais plus lancer mon apache, j'avais un message d'erreur.

J'ai donc créé un nouveau serveur, avec cette fois ci une debian, et là le mod_perl c'est bien installé, et je n'ai plus de soucis !

Merci beaucoup pour toutes tes réponses.

Cordialement,
by (450 points)
 
Powered by Question2Answer
...