|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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?" |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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 =---- |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
"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 |
|
![]() |
| Outils de la discussion | |
|
|