|
|
|
|
Configuration: systeme d'exploitation
Salut,
Plusieurs points à vérifier : - tu utilises bien une url qui passe par ton serveur apache ? - ton apache autorise le lancement des CGI pour le dossier contenant ton script ? - ton apache est configuré pour lancer les cgi ? - ton script à un nom correct (extension .cgi) et est exécutable ? Dans ton fichier httpd.conf (sa localisation dépend de ta distribution) : # permet le lancement de script cgi par apache si ils ont extension .cgi AddHandler cgi-script .cgi # pour un dossier particulier (et les sous-dossiers) autoriser le lancement # des cgi seul le +ExecCGI est important Alias /test/ "/le_dossier_en_question/" <Directory "/le_dossier_en_question"> Options -Indexes FollowSymLinks MultiViews +ExecCGI AllowOverride None Order allow,deny Allow from all </Directory> Si ton cgi s'appelle premier.cgi, et est localisé dans /le_dossier_en_question l'url à mettre dans ton navigateur (sur la même machine) : http://localhost/test/premier.cgi A+, crabs ..., I think Slackware sounds better than 'Microsoft,' -- Patrick Volkerding - founder and maintainer of Slackware |
Salut,
le scipt apparait telle que il est Tu veux dire que c'est le code qui s'affiche? Peut être tu as oublié d'ajouté un en tête #! /usr/bin/perl -wT use strict; print "Content-Type: text/html\n\n"; # en-tête print <<HTML; <html> <head> <title>Bonjour</title> </head> <body> <p>Paragraphe 1</p> </body> </html> HTML Dans l'explications de crabs tu as la configuration de httpd.conf pour accepter les scripts cgi avec l'extension .cgi. Une autre possibilité c'est d'utilser la directive ScriptAlias # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # #ScriptAlias /cgi-bin/ "/usr/local/httpd/cgi-bin/" ScriptAlias /cgi-bin/ "/home/usercgi/cgi-bin/" # # # # # "/usr/local/httpd/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # #<Directory "/usr/local/httpd/cgi-bin"> <Directory "/home/usercgi/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> Les options d'origine je les ai mis en commentaires. Exemple: <form action=/cgi-bin/script.pl .........> ou dans le navigateur http://localhost/cgi-bin/script.pl Tu n'est pas obligé de mettre une extension. <form action=/cgi-bin/script .........> ou dans le navigateur http://localhost/cgi-bin/script lami20j |
| 14/11 17h09 | Installation rapide de LAMP (Apache+MySql+php) sous Linux | Debian |
| 07/04 00h43 | Configurer apache pour créer un hôte virtuel | Webmaster |
| 14/04 10h45 | Filtrer les logs / Logging conditionnel | Apache |
| 10/05 16h27 | [Infographie] Utiliser une police TrueType sans l'installer | Infographie |
| 15/03 15h14 | Installer un firewall sous Ubuntu | Ubuntu |
| 11/04 12h37 | Installé apache 2.0.63 / php 4.3.9 et mysql | 8 |
| 29/03 22h58 | Installation Apache et plus d'accès internet | 1 |
| 03/03 22h57 | PB installation apache | 6 |
| 28/10 11h53 | Installation apache-php-mysql sous Mandriva | 4 |
| 24/09 20h11 | je veux installer apache | 4 |
![]() | Windows Installer - Microsoft Windows Installer est un service d'installation et de configuration d'application, permettant de gérer les... | Catégorie: Librairies (DLL) Licence: Freeware/gratuit |
![]() | Windows Installer - Microsoft Windows Installer est le service permettant d'installer des applications au format MSI, c'est-à-dire packagées... | Catégorie: Librairies (DLL) Licence: Freeware/gratuit |
![]() | WAMP 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 |
![]() | Multi Install - En créant un CD ou CDRom, vous voudriez bien y ajouter un menu pour son lancement et une meilleure navigation. Muti Install... | Catégorie: Vidéo Licence: Freeware/gratuit |
![]() | Team Apache | Catégorie: Jeu vidéo PC | |
![]() | Apache Longbow | Catégorie: Jeu vidéo PC | |
![]() | Enemy Engaged : Apache | Catégorie: Jeu vidéo PC |