Jump to content
Sign in to follow this  
saninx

erreur serveur 500

Rate this topic

Recommended Posts

Bonjour, 

Je suis nouveau dans l'administration de serveur apache et j'ai un soucis après avoir mis an ligne mon application web.

La page d'accueil marche correctement , avec le code ci-dessous :

<!DOCTYPE html>
<html>
	<head>
		<title>Accueil</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http - equiv ="X-UA-Compatible " content ="IE= edge">
        <meta name =" viewport " content =" width =device -width , initial-scale =1.0">
        <link rel="shortcut icon" href="../img/LogoScribe.jpg">
		<!--Inclusion Bootstrap CSS-->
		<link rel="stylesheet" type="text/css" href="../bootstrap/dist/css/bootstrap.css">
		<link rel="stylesheet" type="text/css" href="../styles/style.css">
		<!--Inclusion Bootstrap JS-->
		<script src="bootstrap/assets/js/html5shiv.js"></script>
        <script src="bootstrap/assets/js/respond.min.js"></script>
	</head>
	<body>
 
			<header class="header_container">
				<?php require_once ('HautPage.php'); ?>
			</header>
			<div class="row">
			<div class="col-sm-3" id="barre1">Accueil</div>
			<div class="col-sm-9" id="barre2">&nbsp</div>
			</div>
			<div class="separateur-small">&nbsp</div>
			<div class="container">
			<div class="row">	
				<div class="col-sm-12"><H2 class="titre"></H2></div>
			</div>
			<div class="row" id="divcrpidx">	
				<div class="col-sm-offset-2 col-sm-8 col-sm-offset-2">
					<ul class="ca-menu">
                    <li>
                        <a href="ImprimChq.php">
                            <span class="ca-icon">b</span>
                            <div class="ca-content">
                                <h3 class="ca-main">Chèques</h3>
                                <h5 class="ca-sub">Imprimer un Chèque</h5>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span class="ca-icon">@</span>
                            <div class="ca-content">
                                <h3 class="ca-main">Lettres Chèques</h3>
                                <h5 class="ca-sub">Imprimer des lettres chèques</h5>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span class="ca-icon">a</span>
                            <div class="ca-content">
                                <h3 class="ca-main">Conditions Particulières</h3>
                                <h5 class="ca-sub">Imprimer des Conditions Particulières</h5>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <span class="ca-icon">K</span>
                            <div class="ca-content">
                                <h3 class="ca-main">Conventions</h3>
                                <h5 class="ca-sub">Rédiger une Convention</h5>
                            </div>
                        </a>
                    </li>
                    </ul>
				</div>
			</div>
		</div>	
		<footer>
			<?php //include "PiedPage.php"; ?>
		</footer>
 
		<script src="../js/jquery.js" </script>
		<script src="../bootstrap/dist/js/bootstrap.min.js"></script>
 
	</body>
</html>

Cependant lorsque je clic sur le liens imprimChq.php qui se trouve dans le même dossier que la page d'accueil, j'ai une erreur serveur 500. 
code ImprimChq.php
 

<?php include '../fonctions/connexion.php'; ?>
 
<!DOCTYPE html>
<html>
	<head>
		<title>Impression Chèque</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http - equiv ="X-UA-Compatible " content ="IE= edge">
        <meta name =" viewport " content =" width =device -width , initial-scale =1.0">
		<!--Inclusion Bootstrap CSS-->
		<link rel="shortcut icon" href="../img/LogoScribe.jpg">
		<link rel="stylesheet" type="text/css" href="../bootstrap/dist/css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" href="../styles/style.css">
 
	</head>
	<body>
 
		<?php 
 
			if(isset($_POST) && !empty($_POST))
				{
					extract($_POST);
					header("Location: Chq.php?Montant=".$Mont."&destinataire=".$dest."&ville=".$ville."&jour=".$jour."&banque=".$bq);
				}
 
    	?>
			<header class="header_container">
				<?php require_once ('HautPage.php'); ?>
			</header>
			<div class="row">
				<div class="col-sm-12" id="barre">Accueil > Chèques > Impression chèque</div>
			</div>
			<div class="row">	
				<div class="col-sm-offset-10 col-sm-2"><h5><a href="Accueil.php" class="LienAcl">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accueil<img src="../img/accueil.jpg" alt="icône papyrus" class="IconeAcl"></a></h5></div>
			</div>
			<div class="container">
			<div class="row">	
				<div class="col-sm-12"><H2 class="titre"></H2></div>
			</div>
			<div class="row">	
				<div class="col-sm-offset-1 col-sm-10 col-sm-offset-1" style="">
					<form action="" method="post" class="form-horizontal col-sm-12"> 
						<fieldset>
							<legend class="entete">Informations Chèque</legend>
							<div class="form-group">
								<label class="col-sm-3">Banque :</label>
								<div class="col-sm-3">
									<select id="select" name="bq" class="form-control" required>
										<option value="" selected="selected"></option>
										<?php 
											$sql = "SELECT Code_Banque, Lib_Banque FROM paramcheque ORDER BY Lib_Banque ASC";
											$req = $DB->query($sql);
											while ($donne = $req->fetch()) 
											{
											 	?><option value="<?php echo $donne['Code_Banque']; ?>" ><?php echo $donne['Lib_Banque']; ?></option>
										<?php
											 } 
										?>
									</select>
								</div>	
							</div>
							<div class="form-group">
								<label class="col-sm-3">Montant :</label>
								<div class="col-sm-3">
									<input type="number" name="Mont" class="form-control" />
								</div>	
								<label class="col-sm-3">A l'ordre de :</label>
								<div class="col-sm-3">
									<input type="text" name="dest" class="form-control" />
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3">Fait à :</label>
								<div class="col-sm-3">
									<input type="text" name="ville" class="form-control" />
								</div>	
								<label class="col-sm-3">Date :</label>
								<div class="col-sm-3">
									<input type="Date" name="jour" class="form-control" />
								</div>
							</div>
						</fieldset>	
						<div class="separateur">&nbsp</div>
							<div class="form-group">
								<div class="col-sm-offset-3 col-sm-3">
									<input type="submit" value="Générer Chèque" class="btn btn-primary btn-block" id="generer">
								</div>	
								<div class="col-sm-3">
									<input type="reset" value="Annuler" class="btn btn-primary btn-block">
								</div>
							</div>
						<div class="separateur">&nbsp</div>				
					</form>				
				</div>
			</div>	
		</div>
		<footer class="row col-sm-12">
 
		</footer>
	</body>
</html>

 

Share this post


Link to post
Share on other sites

Tu vas trouver la raison de cette erreur 500 dans les logs d'apache .... tout simplement ;)

 

Share this post


Link to post
Share on other sites

Effectivement après recherche dans le fichier log je me suis rendu conte d'une erreur au niveau de mon username , merci pour votre aide.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...