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
4
votes
3 answers
Ruby equivalent of PHP's $_GET
What is the bare minimum I need to require in Ruby (not Rails or any other framework) to easily obtain request data like GETs?
I would like to avoid having to use ruby on rails or any other framework to get this data, so the ideal answer wouldn't…

tester
- 22,441
- 25
- 88
- 128
4
votes
3 answers
Why does my Perl CGI program return a server error?
I recently got into learning cgi and I set up an Ubuntu server in vbox. The first program I wrote was in Python using vim through ssh. Then I installed Eclipse on my Windows 7 station and created the exact same Perl file; just a simple hello world…

jeffberhow
- 103
- 8
4
votes
1 answer
Cron Job - Could not open input file:
I have set up a php file to run that just echos hello.
My cron job looks like this:
/usr/local/bin/php -f “/home/username/public_html/mls/test.php”
when my script runs i get a confirmation email that says:
Could not open input…

user982853
- 2,470
- 14
- 55
- 82
4
votes
1 answer
Apache taking 20sec to start running CGI script
Any ideas as to why my Apache/2.0.49 server always waits 20 seconds from receiving a request that is executed using a cgi-bin script to starting to run that script?
The server responds immediately to normal HTTP requests that only use static…

user1462740
- 41
- 1
3
votes
1 answer
ScriptAlias configuration not working in apache2
I installed apache2 on ubuntu. I added the following to /etc/apache2/httpd.conf file
ScriptAlias /cgi-bin/ "/home/PROJECT/cgi-bin/"
I am able to open the cgi file if i copy the cgi file to /usr/lib/cgi-bin/hello.cgi[DocumentRoot directory] and…

josh
- 13,793
- 12
- 49
- 58
3
votes
2 answers
CGI not executing python - 500 internal server error
I have a few python scripts that I'd like to execute and the following configuration:
Ubuntu 10.04, Apache2, Python 2.6, mod_python and mod_wsgi installed.
I've followed the instructions on the following sites:…

user228137
- 762
- 1
- 16
- 34
3
votes
1 answer
Minimal http server for testing cgi-bin
I have developed and maintain a web application which acts as a front end for some scrips in cgi-bin which in turn call C programs on the server. The web server is Apache2, hosted both on my office Linux box for testing and on Amazon ECC for the…

James C
- 31
- 2
3
votes
1 answer
CGI script not executing but displaying content after installing mooshak
Recently, I downloaded and installed mooshak in Ubuntu 14.04. I followed all the steps given in the requirements and installation page.
When I try to access http://localhost/~mooshak, I'm being redirected to http://localhost/~mooshak/cgi-bin/execute…

Kevin
- 6,539
- 5
- 44
- 54
3
votes
2 answers
/dev/mem access denied on raspberry pi
I am working with my Raspberry Pi and I am writing a cgi python script that creates a webpage to control my gpio out pins. My script crashes when I try to import RPi.GPIO as GPIO. This is the error that I am getting:
File "./coffee.py", line 7, in…

Thomas Wetmore
- 69
- 1
- 5
3
votes
1 answer
cgi-bin directory contents: What else can be stored there, apart from the CGI scripts/executables?
What files should/should not be stored in the cgi-bin folder/directory on a web server?
Obviously, executable scripts/files that make up a web application, called from a web browser can be stored there.
But is there a common industry opinion about…

therobyouknow
- 6,604
- 13
- 56
- 73
3
votes
2 answers
My cgi script can't write to cgi-bin folder of Apache
I m working on a python version cgi script which needs to create img files (which will be shown on the web page) in cgi-bin folder.
But it fails with:
[Wed Oct 28 16:13:51 2009] [error] [client ::1] OSError: [Errno 13] Permission denied:…

Yinan
- 2,516
- 4
- 22
- 23
3
votes
0 answers
Is it possible to deploy a python script to /cgi-bin/ on a heroku cedar stack alongside my ruby on rails application?
Right now I deploy a RoR app to passenger + apache2, and because of a legacy requirement I use a python .cgi script in the apache /cgi-bin/.
Is it possible to deploy a rails app to heroku with scripts in a /cgi-bin/?
Thanks!

Spicy Pineapple
- 51
- 1
3
votes
1 answer
Redirect url just printing to screen - python
I wrote a simple python script to redirect a url once an advertisement is clicked on.
The url associated with the advertisement is http://server.example.com/redirect.py.
The code for redirect.py is shown below:
import cgi
import…

jordanskis
- 257
- 1
- 4
- 11
3
votes
1 answer
cgi-bin 403 forbidden on apache2
I'm trying to load cgi-bin and I keep getting 403 permissions errors.
When I tried to load cgi-bin/index.pl I get 404 page not found.
Project permissions are set with chmod -R 755.
The server is running debian squeeze, apache2, with php5-cgi.
This…

essefbx
- 190
- 1
- 3
- 15
2
votes
2 answers
Why can't I execute another python script using the subprocess module via a webserver
Having a problem envoking another script, by the way it works fine from the console when I just call python main.py (which then calls test3.py) but when I do it via the webserver it gives the error below which is cryptic
I can't call this (test3 is…

Sean Cav
- 133
- 1
- 14