- Nom de domaine : (multiples: tekarena.fr, extein.fr, etc… par exemple)
- Mon hébergement/serveur : OVH VPS vps2020-essential-2-4-80 sous débian 10
Bonjour à toutes et à tous,
Mes domaines notés ci-dessus sont sous Debian 11 avec Apache 2.4 et php8.1 fpm.
Je rencontre la problématique suivante:
Depuis moins d'une semaine j'ai par moment des erreurs 403 dans la zone admin des WordPress.
Depuis hier, ces 403 sont devenus permanents tous zones d'utilisations de Wordpress, admin ou non.
Je pense que l'un des modules est coupable, sans savoir ce qu'il a pu profondément toucher.
Bien entendu tous 12 domaines fonctionnent comme cela depuis plusieurs années sans soucis.
Des ces problèmes, j'ai tenté de désactiver le module de iThemes Better Security que je pense être à l'origine. (J'ai lu pas mal de chose à ce sujet sur les FAQ de la communauté, mais là c'est assez profond comme problème.)
Les droits des fichiers sont en pratiquement en 755 et avec www-data assez classiques et qui n'ont pas changés.
J'ai beau désactiver le module sur un site, j'y ai perdu complètement la main sur tous les sites !
après avoir chercher un peu partout, (désactivation du .htaccess, desactivation d'AppArmor, du Firewall OVH, du Fail2ban, rien à faire)
J'ai tenté de faire un simple phpinfo … rien
Renvoyer le phpinfo vers un html … rien
J'ai donc désinstallé les suite apache, php et tous les modules fpm et cie, avec l'option "purge" pour être sur… J'ai supprimé les fichiers de modules restant dans apache.
Après réinstallation d'apache et la suite php8.1+fpm … idem.
Désactivation des sites et activation du site par défaut d'Apache, idem
Arrêt d'Apache et installation de Nginx pour tenter d'isoler si c'est apache…Résultat identique.
Interrogation auprès d'OVH, rien de négatif.
J'ai aussi tenté de changer le port d'un des sites en 8181, même résultat.
Là je sèche.
Le problème semble être entre l'OS et les services http et https. Certainement dans un paramétrage lié à la sécurité réseau.
Alors avant de tous casser après avoir fait un snapshot, est-ce quelqu'un à une idée ?
Bonjour,
Que disent les log access et error d'Apache ?
Bonjour
Ah oui , j'ai oublié …
Toujours les mêmes erreurs AH00035.
Exemple du test d'une page html:
[Tue Jul 12 15:08:34.372141 2022] [core:error] [pid 7606:tid 140151612274432] (13)Permission denied: [client 82.65.165.87:61304] AH00035: access to /test.html denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path
C'est toujours des AH00035:
Logs Errors:
[Tue Jul 12 15:02:56.828242 2022] [core:error] [pid 4932:tid 140151208498944] (13)Permission denied: [client 5.188.62.76:65102] AH00035: access to /xmlrpc.php denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path
[Tue Jul 12 15:04:07.116496 2022] [core:error] [pid 4932:tid 140151604733696] (13)Permission denied: [client 82.65.165.87:1333] AH00035: access to / denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path
[Tue Jul 12 15:04:07.208571 2022] [core:error] [pid 4932:tid 140151604733696] (13)Permission denied: [client 82.65.165.87:1333] AH00035: access to /favicon.ico denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path, referer: https://www.tekarena.fr/
[Tue Jul 12 15:04:17.534858 2022] [core:error] [pid 4932:tid 140151604733696] (13)Permission denied: [client 82.65.165.87:31838] AH00035: access to / denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path
[Tue Jul 12 15:04:17.807314 2022] [core:error] [pid 4932:tid 140151604733696] (13)Permission denied: [client 82.65.165.87:31838] AH00035: access to /favicon.ico denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path, referer: https://www.1rando.org/rando.org/
[Tue Jul 12 15:05:35.371091 2022] [core:error] [pid 4932:tid 140151604733696] (13)Permission denied: [client 185.119.81.104:45452] AH00035: access to /wp-login.php denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path
[Tue Jul 12 15:05:57.495875 2022] [core:error] [pid 4932:tid 140151275640576] (13)Permission denied: [client 154.160.22.208:18989] AH00035: access to /xmlrpc.php denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path
[Tue Jul 12 15:08:34.372141 2022] [core:error] [pid 7606:tid 140151612274432] (13)Permission denied: [client 82.65.165.87:61304] AH00035: access to /test.html denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path
Logs Access:
5.188.62.76 - - [12/Jul/2022:15:02:56 +0200] "GET /xmlrpc.php HTTP/1.1" 403 4996 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36"
82.65.165.87 - - [12/Jul/2022:15:04:07 +0200] "GET / HTTP/2.0" 403 383 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0"
82.65.165.87 - - [12/Jul/2022:15:04:07 +0200] "GET /favicon.ico HTTP/2.0" 403 383 "https://www.tekarena.fr/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0"
82.65.165.87 - - [12/Jul/2022:15:04:17 +0200] "GET / HTTP/2.0" 403 387 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0"
82.65.165.87 - - [12/Jul/2022:15:04:17 +0200] "GET /favicon.ico HTTP/2.0" 403 387 "https://www.1rando.org/rando.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0"
185.119.81.104 - - [12/Jul/2022:15:05:35 +0200] "GET /wp-login.php HTTP/2.0" 403 381 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36"
154.160.22.208 - - [12/Jul/2022:15:05:57 +0200] "GET /xmlrpc.php HTTP/1.1" 403 634 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36"
82.65.165.87 - - [12/Jul/2022:15:08:34 +0200] "GET /test.html HTTP/2.0" 403 381 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0"
J'oublie Les logs access:
5.188.62.76 - - [12/Jul/2022:15:02:56 +0200] "GET /xmlrpc.php HTTP/1.1" 403 4996 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36"
82.65.165.87 - - [12/Jul/2022:15:04:07 +0200] "GET / HTTP/2.0" 403 383 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0"
82.65.165.87 - - [12/Jul/2022:15:04:07 +0200] "GET /favicon.ico HTTP/2.0" 403 383 "https://www.tekarena.fr/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0"
82.65.165.87 - - [12/Jul/2022:15:04:17 +0200] "GET / HTTP/2.0" 403 387 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0"
82.65.165.87 - - [12/Jul/2022:15:04:17 +0200] "GET /favicon.ico HTTP/2.0" 403 387 "https://www.1rando.org/rando.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0"
185.119.81.104 - - [12/Jul/2022:15:05:35 +0200] "GET /wp-login.php HTTP/2.0" 403 381 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36"
154.160.22.208 - - [12/Jul/2022:15:05:57 +0200] "GET /xmlrpc.php HTTP/1.1" 403 634 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36"
82.65.165.87 - - [12/Jul/2022:15:08:34 +0200] "GET /test.html HTTP/2.0" 403 381 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0"
C'est toujours des erreurs AH00035
Logs Access
5.188.62.76 - - [12/Jul/2022:15:02:56 +0200] "GET /xmlrpc.php HTTP/1.1" 403 4996 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36"
82.65.165.87 - - [12/Jul/2022:15:04:07 +0200] "GET / HTTP/2.0" 403 383 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0"
82.65.165.87 - - [12/Jul/2022:15:04:07 +0200] "GET /favicon.ico HTTP/2.0" 403 383 "https://www.tekarena.fr/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0"
82.65.165.87 - - [12/Jul/2022:15:04:17 +0200] "GET / HTTP/2.0" 403 387 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0"
82.65.165.87 - - [12/Jul/2022:15:04:17 +0200] "GET /favicon.ico HTTP/2.0" 403 387 "https://www.1rando.org/rando.org/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0"
185.119.81.104 - - [12/Jul/2022:15:05:35 +0200] "GET /wp-login.php HTTP/2.0" 403 381 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36"
154.160.22.208 - - [12/Jul/2022:15:05:57 +0200] "GET /xmlrpc.php HTTP/1.1" 403 634 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36"
82.65.165.87 - - [12/Jul/2022:15:08:34 +0200] "GET /test.html HTTP/2.0" 403 381 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0"
Logs error
[Tue Jul 12 15:02:56.828242 2022] [core:error] [pid 4932:tid 140151208498944] (13)Permission denied: [client 5.188.62.76:65102] AH00035: access to /xmlrpc.php denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path
[Tue Jul 12 15:04:07.116496 2022] [core:error] [pid 4932:tid 140151604733696] (13)Permission denied: [client 82.65.165.87:1333] AH00035: access to / denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path
[Tue Jul 12 15:04:07.208571 2022] [core:error] [pid 4932:tid 140151604733696] (13)Permission denied: [client 82.65.165.87:1333] AH00035: access to /favicon.ico denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path, referer: https://www.tekarena.fr/
[Tue Jul 12 15:04:17.534858 2022] [core:error] [pid 4932:tid 140151604733696] (13)Permission denied: [client 82.65.165.87:31838] AH00035: access to / denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path
[Tue Jul 12 15:04:17.807314 2022] [core:error] [pid 4932:tid 140151604733696] (13)Permission denied: [client 82.65.165.87:31838] AH00035: access to /favicon.ico denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path, referer: https://www.1rando.org/rando.org/
[Tue Jul 12 15:05:35.371091 2022] [core:error] [pid 4932:tid 140151604733696] (13)Permission denied: [client 185.119.81.104:45452] AH00035: access to /wp-login.php denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path
[Tue Jul 12 15:05:57.495875 2022] [core:error] [pid 4932:tid 140151275640576] (13)Permission denied: [client 154.160.22.208:18989] AH00035: access to /xmlrpc.php denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path
[Tue Jul 12 15:08:34.372141 2022] [core:error] [pid 7606:tid 140151612274432] (13)Permission denied: [client 82.65.165.87:61304] AH00035: access to /test.html denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path
Merci,
Ce message :
denied (filesystem path '/var/www/www.extein.fr') because search permissions are missing on a component of the path
Est typique d'un problème de droits pour entrer dans les répertoires.
Pouvez vous contrôler que tous les dossiers de votre path (/var/www/www.extein.fr) ont bien une permission d'exécution (x) ?
ET oui c'est bien que l'on pourrait penser, mais pourtant:
-rwxr-xr-x. 1 www-data www-data 405 11 juin 2020 index.php
-rwxr-xr-x. 1 www-data www-data 19 11 juil. 15:46 phpinfo.php
-rwxr-xr-x. 1 www-data www-data 8852 6 juil. 18:37 readme.html
-rwxr-xr-x. 1 www-data www-data 67 6 juil. 18:37 robots.txt
-rwxr-xr-x. 1 www-data www-data 37644 11 juil. 18:42 test.html
-rwxr-xr-x. 1 www-data www-data 7165 6 juil. 18:37 wp-activate.php
drwxr-xr-x. 10 www-data www-data 4096 6 juil. 18:37 wp-admin
-rwxr-xr-x. 1 www-data www-data 351 6 juil. 18:37 wp-blog-header.php
-rwxr-xr-x. 1 www-data www-data 2338 6 juil. 18:37 wp-comments-post.php
-rw-r–r–. 1 www-data www-data 4100 11 juil. 15:20 wp-config.php
-rw-r–r–. 1 www-data www-data 3538 6 juil. 18:37 wp-config-sample.php
drwxr-xr-x. 13 www-data www-data 4096 11 juil. 15:14 wp-content
-rwxr-xr-x. 1 www-data www-data 3943 6 juil. 18:37 wp-cron.php
-rwxr-xr-x. 1 www-data www-data 627 6 juil. 18:37 wp-cron-rm.php
drwxr-xr-x. 26 www-data www-data 12288 6 juil. 18:37 wp-includes
-rwxr-xr-x. 1 www-data www-data 2494 6 juil. 18:37 wp-links-opml.php
-rwxr-xr-x. 1 www-data www-data 3973 6 juil. 18:37 wp-load.php
-rwxr-xr-x. 1 www-data www-data 48498 6 juil. 18:37 wp-login.php
-rwxr-xr-x. 1 www-data www-data 8577 6 juil. 18:37 wp-mail.php
-rwxr-xr-x. 1 www-data www-data 23706 6 juil. 18:37 wp-settings.php
-rwxr-xr-x. 1 www-data www-data 32051 6 juil. 18:37 wp-signup.php
-rwxr-xr-x. 1 www-data www-data 4748 6 juil. 18:37 wp-trackback.php
-rwxr-xr-x. 1 www-data www-data 3236 6 juil. 18:37 xmlrpc.php
La commande stat:
Accès : (0755/drwxr-xr-x) UID : ( 33/www-data) GID : ( 33/www-data)
Autre piste à écarter, je pense c'est le WAF Apache, que j'ai désactivé. (mod_security)
Avec ou sans c'est pareil.
Bonjour,
vous avez quoi comme droit sur :
- /var/www/www.extein.fr
- /var/www/
Cordialement, janus57
Bonjour
Fichier : /var/www
Accès : (0644/drw-r–r–) UID : ( 0/ root) GID : ( 0/ root)
Fichier : /var/www/www.extein.fr
Accès : (0755/drwxr-xr-x) UID : ( 33/www-data) GID : ( 33/www-data)
Bien vu. c'était la racine qui à changé. Bizarre bizarre…
ça fonctionne ! ouf !
Merci à six yeux c'est mieux !![]()
Bonjour,
de rien, pour info dans un cas comme ça faut pas se limiter au dossier mentionné par le(s) log(s), bien souvent cela se trouve au dessus.
Cordialement, janus57