PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > Apache doesn't display cgi script in the proper manner
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Apache doesn't display cgi script in the proper manner

Réponse
 
LinkBack Outils de la discussion
Vieux 05/02/2007, 16h27   #1
Phally
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Apache doesn't display cgi script in the proper manner

Hello ALL,

I used to configure the CGI script with Apache websever on Windows
platform, but when I go for Red Hat platform, it seems doesn't work
according to what I used to configure on the Windows platform. I try
to add the followin information on the httpd.conf files on /usr/local/
apache2/conf/httpd.conf path, I don't change anything during the
installation--all default setting.

<IfModule mime_module>
TypesConfig conf/mime.types
AddHandler cgi-script .cgi .pl
</IfModule mime_module>

and

<Directory />
Option FollowSymLinks +ExecCGI
Allowoverride None
</Directory>
on the directory

and

DirectoryIndex index.html index.cgi

I have created 2 directories on /var/www/html/test-1, and /var/www/
html/test-2
and all the files permission is set to all executive, read, and
write...

but I still can't run the test.cgi script, it only display all the
softcode for me when I browse through the http://localhost/test-1/
test.cgi

Thank you,

Phally

  Réponse avec citation
Vieux 05/02/2007, 22h53   #2
HansH
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache doesn't display cgi script in the proper manner

"Phally" <betterdie@gmail.com> schreef in bericht
news:1170692840.249751.253970@j27g2000cwj.googlegr oups.com...
> Hello ALL,
>
> I used to configure the CGI script with Apache websever on Windows
> platform, but when I go for Red Hat platform, it seems doesn't work
> according to what I used to configure on the Windows platform. I try
> to add the followin information on the httpd.conf files on /usr/local/
> apache2/conf/httpd.conf path, I don't change anything during the
> installation--all default setting.
>
> <IfModule mime_module>

IIRC syntax is :<IfModule mod_mime.c>

> TypesConfig conf/mime.types
> AddHandler cgi-script .cgi .pl
> </IfModule mime_module>

</IfModule> will do

Dropping <IfModule ...> and </IfModule> should not harm or prove mod_mime is
not loaded

> and
>
> <Directory />

For security avoid running scripts located outside the site:
<Directory /var/www/html/> would be better.

> Option FollowSymLinks +ExecCGI

Mixing prefixed and prefixless directive is not appriceated, try Options
FollowSymLinks ExecCGI

Check for more Option directives, they may conflict or undo this setting
> Allowoverride None
> </Directory>
> on the directory


> but I still can't run the test.cgi script, it only display all the
> softcode for me when I browse through the http://localhost/test-1/
> test.cgi

Don't let the browser's cache fool you ;-)

HansH


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h23.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07690 seconds with 10 queries