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.
Questions tagged [cgi-bin]
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…

user1822599
- 21
- 1
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: