| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.  You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Dec 2005 
				
				
				
					Posts: 1,261
				 
				
				
				
				 | 
	
	
	
	
		
			
			 
				
				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> 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  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Sep 2001 
				Location: Boston 
				
				
					Posts: 4,873
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 its your script add: 
		
	
		
		
		
		
		
	
	print "Content-type: text/html\n\n"; at the top or where it starts printing output  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Dec 2005 
				
				
				
					Posts: 1,261
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 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>";
}
 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Dec 2005 
				
				
				
					Posts: 1,261
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 bump for me  
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Dec 2005 
				
				
				
					Posts: 1,261
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 bum bump 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Dec 2005 
				
				
				
					Posts: 1,261
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 uuupppppp 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Registered User 
			
		
			
			
			Join Date: Sep 2005 
				
				
				
					Posts: 68
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 hit me on icq 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Dec 2005 
				
				
				
					Posts: 1,261
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Ok i found error  
		
	
		
		
		
		
		
	
	My cgi sample script: ![]()  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Join Date: Dec 2005 
				
				
				
					Posts: 1,261
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 anyone ? 
		
	
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |