rss
Rechercher : dans
Par : Pertinence Date Nom d'utilisateur
Statut : Non résolu

Erreur script cgi avec Apache

Posté par Adrael, le jeudi 26 juillet 2007 à 00:05:27
Bonjour,

j'utilise Apache avec Ubuntu. (Apache/2.2.3 (Ubuntu) PHP/5.2.1)

Je voudrais tester l'exécution du script cgi suivant : salut.cgi, qui est dans /usr/lib/cgi-bin

#!/bin/sh

cat << EndFile
Content-type: text/html

<HTML>
<HEAD><TITLE>Mon premier script CGI</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF">
<BR><BR><BR><BR>
<CENTER>
<H1>Salut &agrave; tous<p>voici mon premier script CGI</H1>
</CENTER>
</BODY>
</HTML>

EndFile


Hors, lorsque je tape dans firefox : http://localhost/cgi-bin/salut.cgi

J'obtiens :

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
 webmaster@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.2.3 (Ubuntu) PHP/5.2.1 Server at localhost Port 80</address>
</body></html>


Et je ne comprens pas pourquoi il y a cette erreur...Je précise que dans mon fichier de conf dans sites-enabled, j'ai :


ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>


Pourquoi mon script n'est pas bien lu par le navigateur ?
Configuration: Linux
Firefox 2.0.0.5
Répondre à Adrael  Signaler ce message aux modérateurs Aller au dernier message

1


  • Ce message vous semble utile, votez !
  • Signaler ce message aux modérateurs
 goji, le jeudi 30 août 2007 à 14:01:26
Salut,

si ton pb n'est pas résolu, il faut probablement modifier les droits d'execution de ton script.
Un sudo chmod 755 salut.cgi devrait le faire fonctionner.
Configuration: Windows XP
Firefox 2.0.0.6
Répondre à goji
Discussions pertinentes trouvées dans le forum
27/12 20h38Comptes d'utilisateurs erreur script3
20/09 19h00Erreur script php8
25/06 18h23Erreur svchost avec apache3
26/03 10h25Erreur script php61
Plus de discussions sur « Erreur script cgi avec Apache »
Logiciels pertinents trouvés dans les téléchargements
Télécharger All In One Video Script 1.0All In One Video Script - All In One Video Script est un script pour l'extension GreaseMonkey pour le navigateur Firefox permettant de détecter la...Catégorie: Vidéo
Licence: Freeware/gratuit
Télécharger WAMP Server 2.0cWAMP Server - WAMP5 (WAMP signifiant Windows Apache Mysql PHP) est une plateforme de développement Web sous Windows. Il vous permet de...Catégorie: Serveurs
Licence: Freeware/gratuit
Télécharger GreaseMonkey 0.8.20080609.0GreaseMonkey - GreaseMonkey permet de bidouiller à la volée les pages web que vous consultez. C'est à dire qu'il va modifier la page...Catégorie: Extensions Firefox
Licence: Open Source
Télécharger OpenOffice.org 2.4.1OpenOffice.org - OpenOffice est une suite bureautique complète entièrement gratuite, compatible avec la suite Microsoft Office. Elle...Catégorie: Suite bureautique
Licence: Open Source
Plus de logiciels gratuits sur « Erreur script cgi avec Apache »