Questions tagged [cgi-bin]

cgi-bin is a special folder in web server's files and folder structure, designed to contains executable scripts written in CGI (Common Gateway Interface). These folders has often a specific properties, i.e. might be auto re-created once deleted or may be blocked from deletion.

258 questions
2
votes
1 answer

Python cgi script not opening a html file in local directory

I have a simple python module that generates a web page containing a list of links. This page is automatically opened in a browser through webbrowser.open('file://' + file.name): no problems here. From this web page, when clicking on on a link…
Faabiioo
  • 89
  • 1
  • 10
2
votes
1 answer

MySQLDB import error in CGI python Script

I write following script in cgi-bin while if I run this script from browser by entering URL then script gives an 500 internal server error. #!/usr/bin/python import MySQLdb import cgi print "Content-type: text/html" print print "" print…
Noor
  • 1,351
  • 8
  • 27
2
votes
2 answers

What's the cgi-bin equivalent of getRequestDispatcher("/myURL").forward(request, response)?

I'm using #!/bin/sh as my language.
Chris B
  • 764
  • 1
  • 7
  • 19
2
votes
1 answer

how to upload and compile cpp for cgi-bin on WHM/cPanel?

I am brand new to C++. I am creating AJAX files in the cgi-bin for maximum speed vs PHP. My host is no help, I can find no docs on this, and searches return nothing (probably because of my limited vocabulary on the subject). I want to upload cpp…
user1382306
2
votes
2 answers

Passing CGI arguments to an executable in Apache on Windows

I was under the impression that I could put any old executable program in the cgi-bin directory of Apache and have it be used as a CGI script. Specifically, if I have a C# program static class TestProg { static void Main(string[] args) { …
Eli Courtwright
  • 186,300
  • 67
  • 213
  • 256
2
votes
1 answer

AWS beanstalk cgi-bin permissions

I am having an issue with aws's beanstalk and running my webapp. I have set everything up the same way as my last hosting account but I am getting a permissions error in the cgi-bin in var/www/cgi-bin/server.pl when trying to run the script. There…
2
votes
4 answers

Delete all *.jpg in folder

How do I delete files within a temp folder at only have the .jpg extension. Here is what I tried; unlink("../httpdocs/Temp/*.jpg);
Blnukem
  • 173
  • 3
  • 13
2
votes
2 answers

CGI script not executing every page visit

I have a CGI script that generates a file on the server and then redirects the browser to that newly generated file. #!/bin/bash printf "Content-type: text/html\n\n"; cat /myspecialdir/foo > /httpd/foo.html echo "" echo "
cigarman
  • 635
  • 6
  • 15
2
votes
2 answers

Git production release

I've setup Git to manage our code. Say server 'live-server' is our production server with 'project.git' as a bare repository. Everyone pushes to that 'project.git' and when all the testing is done - what is the proper way to move from project.git to…
user629034
  • 659
  • 2
  • 11
  • 30
2
votes
2 answers

Steps in order to pass data from HTML form to Perl script

I have created a simple HTML, which contains the form below:

Submission…

john john
  • 79
  • 1
  • 1
  • 5
2
votes
1 answer

Redirecting from domain.co.uk/cgi-bin/ to homepage

i have lots of links which i cant get changed going to old directories on my site. These directories are all ihn the cgi-bin directory. One such link which no longer exists…
2
votes
1 answer

Standards for infrastructure in cgi-bin directory

I'm maintaining some CGI web applications, which I'm migrating to a new Linux web server, on which I have a non-admin account, say www_maintainer. So I am installing the CGI applications inside /home/www_maintainer/, and I'd like to take the…
user1069609
  • 863
  • 5
  • 16
  • 30
1
vote
3 answers

Why is my stdout interfering with my webpage in python?

Really simple code that just fires one pcap (packet) using scapy, If I just want to do simple cgi-bin POSTS to myself to run a set of 10 easy tests why is this just kicking back as text (rather than a website). If I comment out the line sendp(a,…
Sean Cav
  • 133
  • 1
  • 14
1
vote
0 answers

internal server errors - Premature end of script headers: cgi_wrapper

My website is getting random internal server errors only on php pages. In the log it says this is being caused by 'Premature end of script headers: cgi_wrapper'. This issue is completely random, but consistently occuring. One second a page will…
pete
  • 41
  • 1
  • 2
  • 4
1
vote
2 answers

Perl files in Virtualhosts cgi-bin are always downloaded (Debian 6 and Apache2)

I have been tearing my hair out trying to get this working but no matter what I do I can't get .pl files to execute in the cgi-bin of my virtual directory. I have been searching for solutions for the past 4 hours and have tried everything I have…
user1222302
  • 31
  • 2
  • 7