Accueil › Forums › Gestion d’un serveur WIMS › Administration d’un serveur WIMS › Problème du script apache-config
- Ce sujet contient 6 réponses, 3 participants et a été mis à jour pour la dernière fois par
Olivier, le il y a 9 années et 7 mois.
-
AuteurMessages
-
-
2 mars 2014 à 20:14 #2045
Julien
Modérateur::Bonjour,
Suite à une mise à jour de ma debian sid, l’adresse http://127.0.0.1/wims/ n’est plus joignable. J’ai relancé le script ./bin/apache-config qui me renvoit le message suivant :
./bin/apache-config ./bin/apache-config: 28: ./bin/apache-config: httpd: not found ./bin/apache-config: 29: ./bin/apache-config: apache: not found [Sun Mar 02 20:00:25.157107 2014] [core:warn] [pid 24070] AH00111: Config variable ${APACHE_PID_FILE} is not defined [Sun Mar 02 20:00:25.160834 2014] [core:warn] [pid 24070] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Sun Mar 02 20:00:25.164722 2014] [core:warn] [pid 24070:tid 139750234134400] AH00111: Config variable ${APACHE_RUN_DIR} is not defined [Sun Mar 02 20:00:25.165984 2014] [core:warn] [pid 24070:tid 139750234134400] AH00111: Config variable ${APACHE_LOG_DIR} is not defined AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.0.16. Set the 'ServerName' directive globally to suppress this message (2)No such file or directory: AH02291: Cannot access directory '/etc/apache2/${APACHE_LOG_DIR}/' for main error log AH00014: Configuration check failed dirname: opérande manquant Saisissez « dirname --help » pour plus d'informations. Unknown web server. Version too early? Please first update your web server to Apache >=1.3.
Vos idées sont les bienvenues ou les anciens fichiers de conf du serveur apache
-
Ce sujet a été modifié le il y a 9 années et 7 mois par
Julien.
-
Ce sujet a été modifié le il y a 9 années et 7 mois par
-
3 mars 2014 à 21:04 #2047
bernadette
Maître des clés::Le début du script cherche à savoir où placer les informations.
Visisiblement httpd et apache n’existent pas. Il essaie donc
apache2 -V
Que donne cette commande sur ton ordinateur ?
Est-ce que l’adresse http://127.0.0.1 donne quelque chose ?
Il faut d’abord qu’un serveur web soit ouvert.Sinon, il semble y avoir des questions de ce type sur internet, je ne
suis pas sûre que cela soit un « problème wims » en entrant
Config variable ${APACHE_RUN_DIR} is not definedBernadette
-
4 mars 2014 à 18:49 #2048
Julien
Modérateur::apache2 -V renvoit le message d’erreur ci-dessus.
Apache est donc bien lancé. Le problème vient des changements de conf qu’on doit réaliser au niveau d’apache en sid. Pour info la page http://127.0.0.1 renvoit le message d’informations ci-dessous.
J’ai passé la config apache de wims dans le fichier apache2.conf mais cela n’est pas suffisant. Le répertoire http://127.0.0.1/wims/ n’est toujours pas accessible.
You don’t have permission to access /wims/ on this server.Si quelqu’un à une solution je suis toujours preneur.
Debian Logo Apache2 Debian Default Page
It works!This is the default welcome page used to test the correct operation of the Apache2 server after installation on Debian systems. If you can read this page, it means that the Apache HTTP server installed at this site is working properly. You should replace this file (located at /var/www/html/index.html) before continuing to operate your HTTP server.
If you are a normal user of this web site and don’t know what this page is about, this probably means that the site is currently unavailable due to maintenance. If the problem persists, please contact the site’s administrator.
Configuration OverviewDebian’s Apache2 default configuration is different from the upstream default configuration, and split into several files optimized for interaction with Debian tools. The configuration system is fully documented in /usr/share/doc/apache2/README.Debian.gz. Refer to this for the full documentation. Documentation for the web server itself can be found by accessing the manual if the apache2-doc package was installed on this server.
The configuration layout for an Apache2 web server installation on Debian systems is as follows:
/etc/apache2/
|– apache2.conf
| `– ports.conf
|– mods-enabled
| |– *.load
| `– *.conf
|– conf-enabled
| `– *.conf
|– sites-enabled
| `– *.confapache2.conf is the main configuration file. It puts the pieces together by including all remaining configuration files when starting up the web server.
ports.conf is always included from the main configuration file. It is used to determine the listening ports for incoming connections, and this file can be customized anytime.
Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/ directories contain particular configuration snippets which manage modules, global configuration fragments, or virtual host configurations, respectively.
They are activated by symlinking available configuration files from their respective *-available/ counterparts. These should be managed by using our helpers a2enmod, a2dismod, a2ensite, a2dissite, and a2enconf, a2disconf . See their respective man pages for detailed information.
The binary is called apache2. Due to the use of environment variables, in the default configuration, apache2 needs to be started/stopped with /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not work with the default configuration.Document Roots
By default, Debian does not allow access through the web browser to any file apart of those located in /var/www, public_html directories (when enabled) and /usr/share (for web applications). If your site is using a web document root located elsewhere (such as in /srv) you may need to whitelist your document root directory in /etc/apache2/apache2.conf.
The default Debian document root is /var/www/html. You can make your own virtual hosts under /var/www. This is different to previous releases which provides better security out of the box.
Reporting ProblemsPlease use the reportbug tool to report bugs in the Apache2 package with Debian. However, check existing bug reports before reporting a new bug.
Please report bugs specific to modules (such as PHP and others) to respective packages, not to the web server itself.
-
5 mars 2014 à 16:24 #2049
bernadette
Maître des clés::Peux tu donner juste la réponse à la commande
apache2 -V
ou apache -V
ou
httpd -V
(enfin celui que tu penses utiliser) faite dans le terminal (je n’arrive pas à voir si tu l’as écrit).
Le script cherche dans la réponse la valeur de SERVER_CONFIG_FILEChez moi, c’est httpd -V qui donne la réponse (j’ai coupé)
Server version: Apache/2.2.26 (Unix) Server built: Dec 10 2013 22:06:35 Server's Module Magic Number: 20051115:33 Server loaded: APR 1.4.5, APR-Util 1.3.12 Compiled using: APR 1.4.5, APR-Util 1.3.12 Architecture: 64-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE ...... -D SERVER_CONFIG_FILE="/private/etc/apache2/httpd.conf"
Bernadette
-
Cette réponse a été modifiée le il y a 9 années et 7 mois par
bernadette.
-
Cette réponse a été modifiée le il y a 9 années et 7 mois par
-
5 mars 2014 à 17:54 #2051
Julien
Modérateur::apache2 -V donne ce résultat :
[Wed Mar 05 17:57:23.802994 2014] [core:warn] [pid 3438] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined [Wed Mar 05 17:57:23.803103 2014] [core:warn] [pid 3438] AH00111: Config variable ${APACHE_PID_FILE} is not defined [Wed Mar 05 17:57:23.803150 2014] [core:warn] [pid 3438] AH00111: Config variable ${APACHE_RUN_USER} is not defined [Wed Mar 05 17:57:23.803161 2014] [core:warn] [pid 3438] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined [Wed Mar 05 17:57:23.803184 2014] [core:warn] [pid 3438] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Wed Mar 05 17:57:23.807160 2014] [core:warn] [pid 3438:tid 139774541744000] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Wed Mar 05 17:57:23.807377 2014] [core:warn] [pid 3438:tid 139774541744000] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Wed Mar 05 17:57:23.807403 2014] [core:warn] [pid 3438:tid 139774541744000] 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}
Voili voilou
-
Cette réponse a été modifiée le il y a 9 années et 7 mois par
Julien.
-
6 mars 2014 à 10:53 #2058
Olivier
Maître des clés::Qu’y a-t-il dans le fichier apache2.conf à la ligne 74 ? car il semble qu’il y ai une erreur à corriger…
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf: Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
EDIT :
visiblement c’est en effet un problème sur Apache et ubuntu, il faudrait se renseigner avec eux.
Peut être ce post amènera quelques pistes :
http://www.spinics.net/lists/apache-users/msg107465.html-
Cette réponse a été modifiée le il y a 9 années et 7 mois par
Olivier.
Olivier Bado-Faustin / Université Côte d’Azur
-
Cette réponse a été modifiée le il y a 9 années et 7 mois par
-
Cette réponse a été modifiée le il y a 9 années et 7 mois par
-
5 mars 2014 à 18:57 #2057
bernadette
Maître des clés
-
-
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.