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 a l'installation

Bonjour,

Je découvre Linus sous Ubuntu est je tente d'installer OSC server, mais je rencontre un probléme.

J'ai télécharger le fichier d'installation et lance le setup.

Le probléme arrive au niveau CHECKING for Apache main configuration file...

J'ai l'erreur:

+----------------------------------------------------------+
| Checking for Apache main configuration file...           |
+----------------------------------------------------------+

[Thu Dec 25 11:00:50.795784 2014] [core:warn] [pid 5042] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Thu Dec 25 11:00:50.795951 2014] [core:warn] [pid 5042] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Thu Dec 25 11:00:50.795988 2014] [core:warn] [pid 5042] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Thu Dec 25 11:00:50.796007 2014] [core:warn] [pid 5042] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Thu Dec 25 11:00:50.796036 2014] [core:warn] [pid 5042] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu Dec 25 11:00:50.810716 2014] [core:warn] [pid 5042] AH00111: Config variable ${APACHE_LOG_DIR} is not defined

[Thu Dec 25 11:00:50.811206 2014] [core:warn] [pid 5042] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu Dec 25 11:00:50.811239 2014] [core:warn] [pid 5042] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
[Thu Dec 25 11:00:50.863492 2014] [core:warn] [pid 5048] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Thu Dec 25 11:00:50.863635 2014] [core:warn] [pid 5048] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Thu Dec 25 11:00:50.863670 2014] [core:warn] [pid 5048] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Thu Dec 25 11:00:50.863689 2014] [core:warn] [pid 5048] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined

[Thu Dec 25 11:00:50.863718 2014] [core:warn] [pid 5048] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu Dec 25 11:00:50.877692 2014] [core:warn] [pid 5048] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu Dec 25 11:00:50.878183 2014] [core:warn] [pid 5048] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Thu Dec 25 11:00:50.878218 2014] [core:warn] [pid 5048] AH00111: Config variable ${APACHE_LOG_DIR} is not defined

AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}

Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
Where is Apache main configuration file [] ?
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
Where is Apache main configuration file [] ?
 

Je ne trouve pas d'ou viens l'erreur, et si le chemin de configuration Apche2 est bien /etc/apache2/apache2.conf.

Si je continu l'installation plus d'action a partir de:

+----------------------------------------------------------+
| Checking for Apache Include configuration directory...   |
+----------------------------------------------------------+
 

Qui pourrai me venir en aide, je ne trouve pas la solution.

Merci d'avance.
in OCS Inventory NG server for Unix by (120 points)

1 Answer

0 votes

Bonjour,

Pour apache 2.4 sur Ubuntu, il faut préciser en fichier de configuration /etc/apache2/apache2.conf et comme répertoire de configuration /etc/apache2/conf-available (ne pas tenir compte des erreurs, elles ne sont pas bloquantes).

Il faut ensuite modifier dans le fichier de conf ocsinventory-reports.conf les variables sous <Directory /usr/share/ocsinventory-reports/ocsreports>

Order deny,allow

Allow from all
 
par :

Require all granted

et rajouter une directive directory en dessous de Alias /download /var/lib/ocsinventory-reports/download

<Directory /var/lib/ocsinventory-reports/download>
    Require all granted
</Directory>

Ensuite il faut activer la configuration :

sudo a2enconf ocsinventory-reports

sudo a2enconf z-ocsinventory-server

sudo service apache2 reload

Un petit tour sur la doc d'apache pour comprendre la diff entre 2.2 et 2.4:http://httpd.apache.org/docs/trunk/fr/upgrading.html

by (280 points)

Bonjour,

Merci de votre aide, mais hélas cela ne fonctionne pas.

 

L'installation c'est bien réaliser, mais apres vos indications pour les modifications dans le fichier ocsinventory-reports.conf.


J'ai une erreur a l'activation des configurations avec les commandes:

sudo a2enconf ocsinventory-reports

sudo a2enconf z-ocsinventory-server

ERROR: Conf ocsinventory-reports does not exist!
ERROR: Conf z-ocsinventory-server does not exist!

J'ai bien les deux fichiers a la racine du disque, il n'existe pas d'apres le retour des deux commandes

La je crois que je vais laisser tomber cela devient complex a mon niveau, un probléme en amene un autre.

Linux trop complex pour un débutant.

Domage ce programme m'aurai bien servie.


Merci quand même.

Cordialement,

 

Il faut mettre les fichiers z-ocsinventory-server.conf et ocsinventory-reports.conf dans le répertoire /etc/apache2/sites-available, ensuite taper les commandes suivantes:

sudo a2ensite z-ocsinventory-server

sudo a2ensite ocsinventory-reports
 
Powered by Question2Answer
...