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 > Simple Problem (I think)
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Simple Problem (I think)

Réponse
 
LinkBack Outils de la discussion
Vieux 27/09/2006, 11h45   #1
bpazolli@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Simple Problem (I think)

I barely know nothing about apache and wanted to get the following cgi
script to run

Content-type: text/html


#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, World.";

I put it in CGI-bin and when I type the adress in I get the 500
Internal Sever Error. The error log gives the following

C:/OpenSA/Apache2/cgi-bin/test.cgi
[Wed Sep 27 18:38:26 2006] [error] [client 192.168.2.82]
C:/OpenSA/Apache2/cgi-bin/test.cgi is not executable; ensure
interpreted scripts have "#!" first line
[Wed Sep 27 18:38:27 2006] [error] [client 192.168.2.82] (9)Bad file
descriptor: don't know how to spawn child process:
C:/OpenSA/Apache2/cgi-bin/test.cgi

>From what I gather it could be a permission thing. Where do I type in

permissions.

Please Me,
Ben Pazolli

  Réponse avec citation
Vieux 27/09/2006, 11h51   #2
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Simple Problem (I think)

On 2006-09-27, bpazolli@gmail.com <bpazolli@gmail.com> wrote:
> I barely know nothing about apache and wanted to get the following cgi
> script to run
>
> Content-type: text/html
>
>
> #!/usr/bin/perl


This must be the first line of the script.

> C:/OpenSA/Apache2/cgi-bin/test.cgi is not executable; ensure
> interpreted scripts have "#!" first line


What did I told you?

> descriptor: don't know how to spawn child process:
> C:/OpenSA/Apache2/cgi-bin/test.cgi


Also, if you are on Windows, what is /usr/bin ?

Davide

--
I used to be interested in Windows NT, but the more I see of it the more
it looks like traditional Windows with a stabler kernel. I don't find
anything technically interesting there. In my opinion MS is a lot better
at making money than it is at making good operating systems.
-- Linus Torvalds
  Réponse avec citation
Vieux 27/09/2006, 11h58   #3
bpazolli@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Simple Problem (I think)

Ok got rid of the other lines, now it is,

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, World.";

I still get the error. Now the log says

C:/OpenSA/Apache2/cgi-bin/test.cgi
[Wed Sep 27 18:56:21 2006] [error] [client 192.168.2.82] (OS 3)The
system cannot find the path specified. : couldn't create child
process: 720003: test.cgi
[Wed Sep 27 18:56:21 2006] [error] [client 192.168.2.82] (OS 3)The
system cannot find the path specified. : couldn't spawn child process:
C:/OpenSA/Apache2/cgi-bin/test.cgi

Thanks,
Ben Pazolli

  Réponse avec citation
Vieux 27/09/2006, 12h10   #4
Davide Bianchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Simple Problem (I think)

On 2006-09-27, bpazolli@gmail.com <bpazolli@gmail.com> wrote:
> [Wed Sep 27 18:56:21 2006] [error] [client 192.168.2.82] (OS 3)The
> system cannot find the path specified.


Yes, and my second question was: if you are on windows, what is it /usr/bin ?

NOTE: this has nothing to do with Apache nor Configuration.

Davide


--
Favorite Windows game: "Guess what this icon does?"
  Réponse avec citation
Vieux 27/09/2006, 12h24   #5
Mark
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Simple Problem (I think)

Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in
news:slrnehkn1g.225.davideyeahsure@fogg.onlyforfun .net:

> On 2006-09-27, bpazolli@gmail.com <bpazolli@gmail.com> wrote:
>> [Wed Sep 27 18:56:21 2006] [error] [client 192.168.2.82] (OS 3)The
>> system cannot find the path specified.

>
> Yes, and my second question was: if you are on windows, what is it
> /usr/bin ?
>
> NOTE: this has nothing to do with Apache nor Configuration.
>
> Davide
>
>


What Davide is trying to do is to make you think on your own just a bit.

/usr/bin is pretty much a standard location for the perl interpreter on a
linux installation. But, you are using it on Windows. Where is your perl
interperter on YOUR machine?



----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  Réponse avec citation
Vieux 27/09/2006, 21h43   #6
HansH
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Simple Problem (I think)

"Mark" <mtaylor*@*lrim.com> schreef in bericht
news:1159356248_42033@sp6iad.superfeed.net...
> Davide Bianchi <davideyeahsure@onlyforfun.net> wrote in
> news:slrnehkn1g.225.davideyeahsure@fogg.onlyforfun .net:
>> NOTE: this has nothing to do with Apache nor Configuration.

I´ld say, hardly nothing ...

> /usr/bin is pretty much a standard location for the perl interpreter on a
> linux installation. But, you are using it on Windows. Where is your perl
> interperter on YOUR machine?
>

Using ´scriptinterpretersource Registry´
http://httpd.apache.org/docs/2.2/mod...erpretersource
might work for you AND, by ignoring the shebang on windows,
makes it easier to keep an unmodified script running on both windows and
linux.

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 23h15.


Édité par : vBulletin® version 3.7.2
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
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10953 seconds with 14 queries