GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Apache and execute .cgi file (https://gfy.com/showthread.php?t=588441)

blogman9 03-19-2006 03:06 PM

Apache and execute .cgi file
 
i have apache 2.0 and I added to apache file this:

Code:

<Direcotry /var/www/mydomain>
Options +ExecCgi
AddHandler cgi-script .cgi
</directory>

But If i try execute cgi file then I have "Internal Server Error"

Error.log:
Code:

Premature end of script headers cos.cgi, refferer: http://mydomain.com/
No such file od directory: exec of '/var/www/mydomain/cos.cgi' failed

Where is my mistake ?

s9ann0 03-19-2006 03:11 PM

its your script add:
print "Content-type: text/html\n\n";

at the top or where it starts printing output

blogman9 03-19-2006 03:15 PM

Code:

#!/usr/bin/perl

print "Content-type: text/html\n\n";
print "Hello, Im a CGI script and Im gonna print You some environment variables to make You belive that Im working fine smile.gif \n";
print "<br><br>";

foreach $key (keys %ENV) {
print "$key --> $ENV{$key}<br>";
}

This is my cos.cgi :(

blogman9 03-19-2006 03:52 PM

bump for me :)

blogman9 03-20-2006 03:58 AM

bum bump

blogman9 03-20-2006 08:44 AM

uuupppppp

dziggy 03-20-2006 10:10 AM

hit me on icq

blogman9 03-20-2006 12:12 PM

Ok i found error :(

My cgi sample script:

http://kun4.protgp.com/problemik.jpg

blogman9 03-20-2006 01:30 PM

anyone ?


All times are GMT -7. The time now is 04:27 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123