Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#26 Le 27/10/2020, à 17:26

Wiltiph

Re : [Résolu] Problème accès Dolibarr localhost 502 Bad Gateway

Oui ça marche, j'obtiens une page de présentation de php 7.4.3 smile

Hors ligne

#27 Le 27/10/2020, à 17:32

bruno

Re : [Résolu] Problème accès Dolibarr localhost 502 Bad Gateway

Ok, le PHP est bien interprété. Ce n'est donc pas logique que cela t'affiche le code quand tu vas sur dolibarr…

Montre :

cat /etc/apache2/conf-available/dolibarr.conf

Pour Wordpress au vu de ta configuration tu dois y accéder avec http://wordpress

En ligne

#28 Le 27/10/2020, à 17:41

Wiltiph

Re : [Résolu] Problème accès Dolibarr localhost 502 Bad Gateway

cat /etc/apache2/conf-available/dolibarr.conf

# Apache config file for Dolibarr
<IfModule mod_alias.c>
Alias /dolibarr /usr/share/dolibarr/htdocs
</IfModule>

# You can also use dolibarr as a VirtualHost
# <VirtualHost *:*>
#     ServerName mydolibarrhostname.com
#     ServerAdmin root@example.com
#     DocumentRoot /usr/share/dolibarr/
#     ErrorLog logs/ldap.example.com-error.log
#     CustomLog logs/ldap.example.com-access.log common
#
#	<IfVersion >= 2.3>
#	Require all granted
#	</IfVersion>
#	<IfVersion < 2.3>
#	Order allow,deny
#	Allow from all
#	</IfVersion>
#
# </VirtualHost>

# Directory for web pages
<Directory /usr/share/dolibarr/htdocs>
	<IfVersion >= 2.3>
	Require all granted
	</IfVersion>
	<IfVersion < 2.3>
	Order allow,deny
	Allow from all
	</IfVersion>

    DirectoryIndex index.php
    Options +FollowSymLinks +Indexes

    ErrorDocument 401 /dolibarr/public/error-401.php
    ErrorDocument 404 /dolibarr/public/error-404.php

    <IfModule mod_php5.c>
      php_flag magic_quotes_gpc Off
      php_flag register_globals Off
    </IfModule>

    # OPTIMIZE: To use cache on static pages (A259200 = 1 month).
    # Note that you must also enable the module mod_expires.
    #ExpiresActive On
    #ExpiresByType image/x-icon A2592000
    #ExpiresByType image/gif A2592000
    #ExpiresByType image/png A2592000
    #ExpiresByType image/jpeg A2592000
    #ExpiresByType text/css A2592000
    #ExpiresByType text/javascript A2592000
    #ExpiresByType application/x-javascript A2592000
    #ExpiresByType application/javascript A2592000
</Directory>

Hors ligne

#29 Le 27/10/2020, à 17:52

bruno

Re : [Résolu] Problème accès Dolibarr localhost 502 Bad Gateway

Cela me semble correct. Je ne vois pas d'où vient le problème.
Il faudrait examiner les logs d'erreur dans /var/log/apache2/error.log

En ligne

#30 Le 27/10/2020, à 18:04

Wiltiph

Re : [Résolu] Problème accès Dolibarr localhost 502 Bad Gateway

Bah j'ai regardé mais je vois rien de bien intéressant :

[Tue Oct 27 12:45:28.713177 2020] [mpm_event:notice] [pid 15154:tid 140642488056896] AH00489: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Oct 27 12:45:28.713237 2020] [core:notice] [pid 15154:tid 140642488056896] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 27 13:00:28.743982 2020] [mpm_event:notice] [pid 15154:tid 140642488056896] AH00493: SIGUSR1 received.  Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Tue Oct 27 13:00:28.746642 2020] [mpm_event:notice] [pid 15154:tid 140642488056896] AH00489: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Oct 27 13:00:28.746647 2020] [core:notice] [pid 15154:tid 140642488056896] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 27 14:12:32.136036 2020] [mpm_event:notice] [pid 15154:tid 140642488056896] AH00491: caught SIGTERM, shutting down
[Tue Oct 27 14:12:32.178740 2020] [mpm_event:notice] [pid 33876:tid 140245629533248] AH00489: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Oct 27 14:12:32.178801 2020] [core:notice] [pid 33876:tid 140245629533248] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 27 14:13:30.956413 2020] [mpm_event:notice] [pid 33876:tid 140245629533248] AH00491: caught SIGTERM, shutting down
[Tue Oct 27 14:13:59.293830 2020] [mpm_event:notice] [pid 1155:tid 140460895935552] AH00489: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Oct 27 14:13:59.295467 2020] [core:notice] [pid 1155:tid 140460895935552] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 27 14:16:33.430510 2020] [mpm_event:notice] [pid 1155:tid 140460895935552] AH00493: SIGUSR1 received.  Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Tue Oct 27 14:16:33.433315 2020] [mpm_event:notice] [pid 1155:tid 140460895935552] AH00489: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Oct 27 14:16:33.433320 2020] [core:notice] [pid 1155:tid 140460895935552] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 27 14:17:03.767611 2020] [mpm_event:notice] [pid 1155:tid 140460895935552] AH00493: SIGUSR1 received.  Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Tue Oct 27 14:17:03.770254 2020] [mpm_event:notice] [pid 1155:tid 140460895935552] AH00489: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Oct 27 14:17:03.770259 2020] [core:notice] [pid 1155:tid 140460895935552] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 27 14:31:09.465392 2020] [mpm_event:notice] [pid 1155:tid 140460895935552] AH00493: SIGUSR1 received.  Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Tue Oct 27 14:31:09.468101 2020] [mpm_event:notice] [pid 1155:tid 140460895935552] AH00489: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Oct 27 14:31:09.468120 2020] [core:notice] [pid 1155:tid 140460895935552] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 27 14:31:15.005469 2020] [mpm_event:notice] [pid 1155:tid 140460895935552] AH00493: SIGUSR1 received.  Doing graceful restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Tue Oct 27 14:31:15.008056 2020] [mpm_event:notice] [pid 1155:tid 140460895935552] AH00489: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Oct 27 14:31:15.008061 2020] [core:notice] [pid 1155:tid 140460895935552] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 27 14:32:26.680591 2020] [mpm_event:notice] [pid 1155:tid 140460895935552] AH00491: caught SIGTERM, shutting down
[Tue Oct 27 14:32:26.723117 2020] [mpm_event:notice] [pid 5146:tid 139853721828416] AH00489: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Oct 27 14:32:26.723177 2020] [core:notice] [pid 5146:tid 139853721828416] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 27 14:53:10.823392 2020] [mpm_event:notice] [pid 5146:tid 139853721828416] AH00491: caught SIGTERM, shutting down
[Tue Oct 27 14:53:10.865319 2020] [mpm_event:notice] [pid 6350:tid 140487155493952] AH00489: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Oct 27 14:53:10.865378 2020] [core:notice] [pid 6350:tid 140487155493952] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 27 15:38:43.432938 2020] [mpm_event:notice] [pid 6350:tid 140487155493952] AH00491: caught SIGTERM, shutting down
[Tue Oct 27 15:38:43.506981 2020] [mpm_prefork:notice] [pid 9012] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Oct 27 15:38:43.507046 2020] [core:notice] [pid 9012] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 27 15:39:09.670497 2020] [mpm_prefork:notice] [pid 9012] AH00169: caught SIGTERM, shutting down
[Tue Oct 27 15:39:09.747153 2020] [mpm_prefork:notice] [pid 9129] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Oct 27 15:39:09.747186 2020] [core:notice] [pid 9129] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 27 17:00:42.707125 2020] [mpm_prefork:notice] [pid 9129] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Tue Oct 27 17:00:42.735244 2020] [mpm_prefork:notice] [pid 9129] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Oct 27 17:00:42.735254 2020] [core:notice] [pid 9129] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 27 17:01:10.944175 2020] [mpm_prefork:notice] [pid 9129] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Tue Oct 27 17:01:10.963313 2020] [mpm_prefork:notice] [pid 9129] AH00163: Apache/2.4.41 (Ubuntu) configured -- resuming normal operations
[Tue Oct 27 17:01:10.969713 2020] [core:notice] [pid 9129] AH00094: Command line: '/usr/sbin/apache2'

Je ne vois pas de solution sad

Hors ligne

#31 Le 27/10/2020, à 18:25

Wiltiph

Re : [Résolu] Problème accès Dolibarr localhost 502 Bad Gateway

Youpiii ! j'ai trouvé, en fait j'ai essayé http://127.0.1.1/dolibarr/ et miracle ça fonctionne !
C'est visiblement le lien entre localhost et l'adresse locale qui pose problème !

Merci Bruno !

Hors ligne

#32 Le 27/10/2020, à 19:07

bruno

Re : [Résolu] Problème accès Dolibarr localhost 502 Bad Gateway

Oui ou simplement le cache du navigateur web qui a conservé la page affichant le code.

En ligne