500 erreur interne du serveur
Résolu/Ferméameb2908 Messages postés 89 Date d'inscription jeudi 17 mars 2022 Statut Membre Dernière intervention 25 novembre 2024 - 20 sept. 2023 à 11:28
- 500 erreur interne du serveur
- Erreur 0x80070643 - Accueil - Windows
- Erreur 500 - Guide
- Changer serveur dns - Guide
- Play store erreur de serveur ✓ - Forum Free mobile
- Formate pour taxer client 500€ ✓ - Forum Consommation & Internet
6 réponses
19 sept. 2023 à 11:58
Bonjour,
Comment as été fait ce site ?
Codé entièrement à la main en php ?
Ou en utilisant un CMS genre WORDPRESS ?
Si CMS.. as tu bien fais les modifications dans les fichiers de configurations et/ou en base de données pour que ça fonctionne en local ?
Si code php que tu as fais toi même... quel est le code php concerné ?
Modifié le 19 sept. 2023 à 14:26
Codé entièrement à la main
--- File cleaned up by Wampserver installation or update ---
[Mon Sep 18 17:33:48.255651 2023] [mpm_winnt:notice] [pid 9588:tid 328] AH00455: Apache/2.4.54 (Win64) PHP/8.0.26 mod_fcgid/2.3.10-dev configured -- resuming normal operations
[Mon Sep 18 17:33:48.255651 2023] [mpm_winnt:notice] [pid 9588:tid 328] AH00456: Apache Lounge VS16 Server built: Nov 2 2022 10:09:33
[Mon Sep 18 17:33:48.255651 2023] [core:notice] [pid 9588:tid 328] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.54.2\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.54.2'
[Mon Sep 18 17:33:48.263685 2023] [mpm_winnt:notice] [pid 9588:tid 328] AH00418: Parent: Created child process 496
[Mon Sep 18 17:33:48.587934 2023] [mpm_winnt:notice] [pid 496:tid 172] AH00354: Child: Starting 64 worker threads.
[Mon Sep 18 17:35:25.092326 2023] [mpm_winnt:notice] [pid 9588:tid 328] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Mon Sep 18 17:35:27.123270 2023] [mpm_winnt:notice] [pid 496:tid 172] AH00364: Child: All worker threads have exited.
[Mon Sep 18 17:35:27.449232 2023] [mpm_winnt:notice] [pid 9588:tid 328] AH00430: Parent: Child process 496 exited successfully.
[Mon Sep 18 17:35:29.638203 2023] [mpm_winnt:notice] [pid 15404:tid 324] AH00455: Apache/2.4.54 (Win64) PHP/8.0.26 mod_fcgid/2.3.10-dev configured -- resuming normal operations
[Mon Sep 18 17:35:29.638203 2023] [mpm_winnt:notice] [pid 15404:tid 324] AH00456: Apache Lounge VS16 Server built: Nov 2 2022 10:09:33
[Mon Sep 18 17:35:29.638203 2023] [core:notice] [pid 15404:tid 324] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.54.2\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.54.2'
[Mon Sep 18 17:35:29.645735 2023] [mpm_winnt:notice] [pid 15404:tid 324] AH00418: Parent: Created child process 9420
[Mon Sep 18 17:35:29.910486 2023] [mpm_winnt:notice] [pid 9420:tid 368] AH00354: Child: Starting 64 worker threads.
[Mon Sep 18 17:46:29.760428 2023] [http:error] [pid 9420:tid 1268] [client ::1:50339] AH02429: Response header name 'Location ' contains invalid characters, aborting request, referer: http://localhost/sitedudev/site2/index.php
[Mon Sep 18 17:49:33.499431 2023] [http:error] [pid 9420:tid 1272] [client ::1:50396] AH02429: Response header name 'Location ' contains invalid characters, aborting request, referer: http://localhost/sitedudev/site2/index.php
[Mon Sep 18 17:51:08.835181 2023] [http:error] [pid 9420:tid 1272] [client ::1:50418] AH02429: Response header name 'Location ' contains invalid characters, aborting request, referer: http://localhost/sitedudev/site2/index.php
[Mon Sep 18 18:06:07.952457 2023] [http:error] [pid 9420:tid 1268] [client ::1:50667] AH02429: Response header name 'Location ' contains invalid characters, aborting request, referer: http://localhost/sitedudev/site2/index.php
[Mon Sep 18 18:06:29.359311 2023] [http:error] [pid 9420:tid 1268] [client ::1:50675] AH02429: Response header name 'Location ' contains invalid characters, aborting request, referer: http://localhost/sitedudev/site2/index.php
[Mon Sep 18 18:08:43.207072 2023] [http:error] [pid 9420:tid 1268] [client ::1:50759] AH02429: Response header name 'Location ' contains invalid characters, aborting request, referer: http://localhost/sitedudev/site2/index.php
[Mon Sep 18 18:14:32.254082 2023] [http:error] [pid 9420:tid 1264] [client ::1:50887] AH02429: Response header name 'Location ' contains invalid characters, aborting request, referer: http://localhost/sitedudev/site2/index.php
[Mon Sep 18 18:18:17.641107 2023] [mpm_winnt:notice] [pid 15404:tid 324] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Mon Sep 18 18:18:19.664251 2023] [mpm_winnt:notice] [pid 9420:tid 368] AH00364: Child: All worker threads have exited.
[Mon Sep 18 18:18:21.577921 2023] [mpm_winnt:notice] [pid 15404:tid 324] AH00430: Parent: Child process 9420 exited successfully.
[Tue Sep 19 09:29:02.519966 2023] [mpm_winnt:notice] [pid 10660:tid 324] AH00455: Apache/2.4.54 (Win64) PHP/8.0.26 mod_fcgid/2.3.10-dev configured -- resuming normal operations
[Tue Sep 19 09:29:02.519966 2023] [mpm_winnt:notice] [pid 10660:tid 324] AH00456: Apache Lounge VS16 Server built: Nov 2 2022 10:09:33
[Tue Sep 19 09:29:02.519966 2023] [core:notice] [pid 10660:tid 324] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.54.2\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.54.2'
[Tue Sep 19 09:29:02.535597 2023] [mpm_winnt:notice] [pid 10660:tid 324] AH00418: Parent: Created child process 448
[Tue Sep 19 09:29:02.786800 2023] [mpm_winnt:notice] [pid 448:tid 180] AH00354: Child: Starting 64 worker threads.
[Tue Sep 19 09:55:07.022277 2023] [http:error] [pid 448:tid 1224] [client ::1:53278] AH02429: Response header name 'Location ' contains invalid characters, aborting request, referer: http://localhost/sitedudev/site2/index.php
[Tue Sep 19 10:36:42.271665 2023] [http:error] [pid 448:tid 1264] [client ::1:53469] AH02429: Response header name 'Location ' contains invalid characters, aborting request, referer: http://localhost/sitedudev/site2/index.php
[Tue Sep 19 10:37:05.237538 2023] [http:error] [pid 448:tid 1264] [client ::1:53473] AH02429: Response header name 'Location ' contains invalid characters, aborting request, referer: http://localhost/sitedudev/site2/index.php
[Tue Sep 19 10:37:22.189814 2023] [http:error] [pid 448:tid 1264] [client ::1:53488] AH02429: Response header name 'Location ' contains invalid characters, aborting request, referer: http://localhost/sitedudev/site2/index.php
[Tue Sep 19 11:45:02.665701 2023] [mpm_winnt:notice] [pid 10660:tid 324] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[Tue Sep 19 11:45:04.692253 2023] [mpm_winnt:notice] [pid 448:tid 180] AH00364: Child: All worker threads have exited.
[Tue Sep 19 11:45:05.517555 2023] [mpm_winnt:notice] [pid 10660:tid 324] AH00430: Parent: Child process 448 exited successfully.
19 sept. 2023 à 16:18
Tu n'as plus qu'à nous montrer le code du fichier
http://localhost/sitedudev/site2/index.php
19 sept. 2023 à 17:34
<?php session_start(); require('include/inc-connexion.php'); if(isset($_SESSION['pseudo_form'])) { $var = 'Bonjour ' . $_SESSION['pseudo_form']; }else { $var = 'Bonjour à tous !'; } ?> <!doctype html> <html lang="fr"> <head> <title>Accueil</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous"> </head> <body> <nav class="navbar navbar-expand-lg bg-body-tertiary"> <div class="container-fluid"> <a class="navbar-brand" href="index.php">Accueil</a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarNavAltMarkup"> <div class="navbar-nav"> <?php if(!isset($_SESSION['pseudo_form'])) { ?> <a class="nav-link" href="inscription.php">Inscription</a> <a class="nav-link" href="connexion.php">Connexion</a> <?php } else { ?> <a class="nav-link" href="deconnexion.php">Déconnexion</a> <?php } ?> </div> </div> </div> </nav> <h1><?= $var ?></h1> <footer> </footer> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script> </body> </html>
19 sept. 2023 à 18:42
Et le fichier
include/inc-connexion.php ?
Modifié le 19 sept. 2023 à 19:47
<?php $host = 'mysql:host=localhost; charset=utf8mb4; dbname=site2'; $user = 'root'; $pass = '*********'; try { $db = new PDO($host, $user, $pass); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); }catch(PDOException $e) { echo 'Une erreur est survenue lors de la connexion ' . $e->getMessage(); }
19 sept. 2023 à 20:18
A quel moment remplis tu la variable
$_SESSION['pseudo_form']
?
Dans le code du fichier concerné par cette variable, n'utiliserais tu pas une instruction
header('Location
?
Si oui, assures toi de ne pas mettres d'espaces AVANT le mot Location ni entre ce mot est les deux points
// header('Location : index.php'); //ERREUR header('Location: index.php'); // OK
Si le souci persiste,
Pense à vérifier que tes fichiers sont bien encodés en UTF8 ( chapitre 1 du lien suivant https://forums.commentcamarche.net/forum/affich-37584944-php-html-caracteres-accentues-et-l-utf8 )
Et postes nous le code du fichier contenant le remplissage de tes variables de $_SESSION
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question20 sept. 2023 à 10:08
ça y est, ça marche bien maintenant. Merci beaucoup. Mais maintenant la fonction password_verif ne fonctionne pas. Je rentre un mauvais mot de passe & je suis dirigé comme même vers index.php.
20 sept. 2023 à 11:28
Au final tout fonctionne finalement. Merci beaucoup & bonne journée.
19 sept. 2023 à 11:59
Ah.. et... qu'y a t'il dans le fichier error.log de ton apache ?