You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by da...@kiner.com on 2008/01/16 00:11:37 UTC

[users@httpd] cgi script ==> error 500

hi,
i use apache 2.2.2 on fedora 5

I have a form mail script file .cgi which is not working.
I have an 500 error.

here the logs:
[Wed Jan 16 00:50:32 2008] [error] [client 82.228.130.65] (2)No such file or
directory: exec of '/home/http/mazone/cgi-bin/nogala.cgi' failed, referer:
http://www.mazone.org/gala-2008/nogala1.php
[Wed Jan 16 00:50:32 2008] [error] [client 82.228.130.65] Premature end of
script headers: nogala.cgi, referer:
http://www.mazone.org/gala-2008/nogala1.php

the directory /home/http/mazone/cgi-bin/ is in chmod 755
the file nogala.cgi is in chmod 755

here the mail form: <form action="http://www.mazone.org/cgi-bin/nogala.cgi"
method="post">
here the cgi script: http://www.mazone.org/cgi-bin/nogala.txt

here the httpd.conf:
<VirtualHost *:80>
    DirectoryIndex /gala-2008/accueil-gala.htm
    DocumentRoot /home/http/mazone/
    ErrorDocument 404 /editorial.php
    ServerName www.mazone.org
<Directory /home/http/mazone/cgi-bin>
    Options +ExecCGI
    Allow from all
</Directory>
ErrorLog /var/log/httpd/mazone-error.log
CustomLog /var/log/httpd/mazone-access.log "combined"
</VirtualHost>

I have search over internet but didn't find any solution
Thanks for you help.

David KINER

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] cgi script ==> error 500

Posted by David Kiner <da...@kiner.com>.
ok, 

I fixed my problem.

When i send: ./nogala.cgi
 -bash: ./nogala.cgi: /usr/bin/perl^M: bad interpreter: Aucun fichier ou
répertoire de ce type 

the end of line UNIX ^M was not correct on LINUX

thanks

-----Message d'origine-----
De : Boyle Owen [mailto:Owen.Boyle@swx.com] 
Envoyé : mercredi 16 janvier 2008 09:16
À : users@httpd.apache.org
Objet : RE: [users@httpd] cgi script ==> error 500

> -----Original Message-----
> From: david@kiner.com [mailto:david@kiner.com]
> Sent: Wednesday, January 16, 2008 12:12 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] cgi script ==> error 500
> 
> hi,
> i use apache 2.2.2 on fedora 5
> 
> I have a form mail script file .cgi which is not working.
> I have an 500 error.
> 
> here the logs:
> [Wed Jan 16 00:50:32 2008] [error] [client 82.228.130.65] (2)No such 
> file or
> directory: exec of '/home/http/mazone/cgi-bin/nogala.cgi' 
> failed, referer:
> http://www.mazone.org/gala-2008/nogala1.php
> [Wed Jan 16 00:50:32 2008] [error] [client 82.228.130.65] Premature 
> end of script headers: nogala.cgi, referer:
> http://www.mazone.org/gala-2008/nogala1.php
> 
> the directory /home/http/mazone/cgi-bin/ is in chmod 755 the file 
> nogala.cgi is in chmod 755
> 
> here the mail form: <form
> action="http://www.mazone.org/cgi-bin/nogala.cgi"
> method="post">
> here the cgi script: http://www.mazone.org/cgi-bin/nogala.txt
> 
> here the httpd.conf:
> <VirtualHost *:80>
>     DirectoryIndex /gala-2008/accueil-gala.htm
>     DocumentRoot /home/http/mazone/
>     ErrorDocument 404 /editorial.php
>     ServerName www.mazone.org
> <Directory /home/http/mazone/cgi-bin>
>     Options +ExecCGI
>     Allow from all
> </Directory>
> ErrorLog /var/log/httpd/mazone-error.log CustomLog 
> /var/log/httpd/mazone-access.log "combined"
> </VirtualHost>
> 
> I have search over internet but didn't find any solution

If you look in apache docs, you'd find:

http://httpd.apache.org/docs/2.2/howto/cgi.html#troubleshoot

Read from "Internal server error"...

If, after reading and trying the things on this page, you are still stuck -
post back with more details.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 




> Thanks for you help.
> 
> David KINER
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
 
 
This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. If you receive
this message in error, please notify the sender urgently and then
immediately delete the message and any copies of it from your system. Please
also immediately destroy any hardcopies of the message. The sender's company
reserves the right to monitor all e-mail communications through their
networks.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] cgi script ==> error 500

Posted by Boyle Owen <Ow...@swx.com>.
> -----Original Message-----
> From: david@kiner.com [mailto:david@kiner.com] 
> Sent: Wednesday, January 16, 2008 12:12 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] cgi script ==> error 500
> 
> hi,
> i use apache 2.2.2 on fedora 5
> 
> I have a form mail script file .cgi which is not working.
> I have an 500 error.
> 
> here the logs:
> [Wed Jan 16 00:50:32 2008] [error] [client 82.228.130.65] 
> (2)No such file or
> directory: exec of '/home/http/mazone/cgi-bin/nogala.cgi' 
> failed, referer:
> http://www.mazone.org/gala-2008/nogala1.php
> [Wed Jan 16 00:50:32 2008] [error] [client 82.228.130.65] 
> Premature end of
> script headers: nogala.cgi, referer:
> http://www.mazone.org/gala-2008/nogala1.php
> 
> the directory /home/http/mazone/cgi-bin/ is in chmod 755
> the file nogala.cgi is in chmod 755
> 
> here the mail form: <form 
> action="http://www.mazone.org/cgi-bin/nogala.cgi"
> method="post">
> here the cgi script: http://www.mazone.org/cgi-bin/nogala.txt
> 
> here the httpd.conf:
> <VirtualHost *:80>
>     DirectoryIndex /gala-2008/accueil-gala.htm
>     DocumentRoot /home/http/mazone/
>     ErrorDocument 404 /editorial.php
>     ServerName www.mazone.org
> <Directory /home/http/mazone/cgi-bin>
>     Options +ExecCGI
>     Allow from all
> </Directory>
> ErrorLog /var/log/httpd/mazone-error.log
> CustomLog /var/log/httpd/mazone-access.log "combined"
> </VirtualHost>
> 
> I have search over internet but didn't find any solution

If you look in apache docs, you'd find:

http://httpd.apache.org/docs/2.2/howto/cgi.html#troubleshoot

Read from "Internal server error"...

If, after reading and trying the things on this page, you are still
stuck - post back with more details.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 




> Thanks for you help.
> 
> David KINER
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. The sender's company reserves the right to monitor all e-mail communications through their networks.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org