Disfonctionnement cgi-bin

Résolu/Fermé
titiplanti Messages postés 22 Date d'inscription jeudi 27 septembre 2007 Statut Membre Dernière intervention 8 septembre 2013 - 27 sept. 2007 à 15:17
 benland - 25 mars 2010 à 19:19
Bonjour,
Je n'arrive pas à faire fonctionner un programme mimetex.cgi. Quand je le charge avec le navigateur, j'ai un message d'erreur de configuration apache : Internal Server Error.

J'ai vérifié ma configuration.
Extraits de mon fichier httpd.conf :
<IfModule mod_alias.c>


    ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"

    <Directory "/usr/local/apache/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    </Directory>

</IfModule>

...

<VirtualHost 91.121.79.159>
ServerAdmin webmestre@mathforu.com
        DocumentRoot /home/mathforu/www
        User mathforu
        Group users
ServerName www.mathforu.com
ServerAlias mathforu.com
        CustomLog logs/mathforu-access_log combined
ScriptAlias /cgi-bin/ /home/mathforu/cgi-bin/
</VirtualHost>


Et voici ce que je lis dans mes logs :

httpd/error_log
[Thu Sep 27 15:06:51 2007] [error] [client 90.1.60.227] Premature end of script headers: /home/mathforu/cgi-bin/mimetex.cgi


cgi.log
[2007-09-27 14:34:19]: info: (target/actual) uid: (mathforu/mathforu) gid: (users/users) cmd: mimetex.cgi
[2007-09-27 14:34:19]: error: file has no execute permission: (/home/mathforu/cgi-bin/mimetex.cgi)


Le problème est-il là ? Pouvez-vous m'aider à configurer correctement ou à trouver l'origine de mon problème ?
A voir également:

22 réponses

J'ai le même problème que toi avec mon cgi "Premature end of script headers: index.cgi" comment a tu résolu le problème?? Merci!
0
Bonjour,

J'ai eu la même erreur. J'y ai passé 2 heures, alors en fait il faut s'assurer que les droits sur le repertoire cgi-bin et le fichier à executer sont en 755 , et qu'ils appartiennent au meme groupe et user
Donc il faut taper les commandes suivantes:
chmod -R 0755 cgi-bin
chown -R monuser:mongrp cgi-bin
0