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

Ubuntu Lucid, cgi-bin, and MathTex

So I have several dedicated servers out there running Ubuntu Lucid server. They primarily run WordPress sites - LAMP. However, one of my original sites is a controls engineering site that uses MathTex to render the equations. MathTex is pretty…
Gabe Spradlin
  • 1,937
  • 4
  • 23
  • 47
2
votes
3 answers

mod_python with apache2, (Re)importing module error

I'm trying to get mod-python to work with apache2 but not having any success. I've followed a few tutorials for getting mod-python working but I can't see what I'm doing wrong. When I visit http://site.example.com/cgi-bin/test.py I actually get my…
Tom Viner
  • 6,655
  • 7
  • 39
  • 40
2
votes
1 answer

CGI script does not receive parameters if they contain equals sign

I have a CGI script (compiled C program) that outputs its command line arguments (argv[0], argv[1] etc.). If I try http://ajf.me/c/?abc I get "abc" as the second parameter. However, if I try http://ajf.me/c/?a=bc I do not get any second…
Andrea
  • 19,134
  • 4
  • 43
  • 65
2
votes
0 answers

Apache, PHP7 Error :Script not found or unable to stat

I am getting a new series of error in an error log file. I do not have any of these files at the mentioned location. Is it any sort of attack on the server ? I did some research relate to error but did not find how to prevent or fix this…
Maher
  • 363
  • 2
  • 5
  • 18
2
votes
1 answer

BDE inmem000.rem access/sharing violation

I have this proprietary web CGI executable which opens a connection to a BDE Thingy each time a page is requested. I do know nothing of the workings of that compiled exe, nor of BDE, but I observed that during each page request BDE generates a…
Berzemus
  • 3,618
  • 23
  • 32
2
votes
3 answers

Security precautions for running python in cgi-bin

I've been writing python scripts that run locally. I would now like to offer a service online using one of these python scripts and through the webhosting I have I can run python in the cgi-bin. The python script takes input from an html form filled…
greye
  • 8,921
  • 12
  • 41
  • 46
2
votes
1 answer

How to execute a shell script in cgi-bin?

OK first of all, I am a PHP programmer but I have never done anything with CGI and don't know what it is. I know it stands for Common Gateway Interface, but I do not know what it does or what its for. I was just told that I can upload a shell script…
JD Isaacks
  • 56,088
  • 93
  • 276
  • 422
2
votes
1 answer

How can i prevent cgi-bin of being automatically created?

A cgi-bin folder was automatically created in the directory for my site. I don't use that folder at all because I don't need it. I don't know how to permamently delete it. How can I achieve that? It creates itself every now and then.
Josip Ivic
  • 3,639
  • 9
  • 39
  • 57
2
votes
1 answer

ImportError while running cgi-bin on localhost - undefined symbol: lo_truncate64

I'm trying to run a cgi-bin site on localhost. And I get the following error: : /usr/local/lib/python2.7/dist-packages/psycopg2/_psycopg.so: undefined symbol: lo_truncate64 My current PostgreSQL version is 9.4.5. How…
yusuf
  • 3,591
  • 8
  • 45
  • 86
2
votes
0 answers

Adding a cgi-bin directory to OpenShift?

I am trying to add a cgi-bin directory to an OpenShift project, it should be simple, but I think I am missing something. I have created a cgi-bin directory under my /data/ directory, and did a chmod 755 on it. I moved a "hello_world.pl" file to the…
user1399233
  • 73
  • 1
  • 8
2
votes
0 answers

running pandoc from python returns error when run from web but not when run from console

I'm running the following python code to test the automation of the production of epub/html files from pandoc's variant of markdown. When I run this from the web (i.e. using python and cgi), I get a fail and a return code of 83. When I run this from…
user3892196
  • 161
  • 1
  • 5
2
votes
1 answer

CGI script showing as plain text

I have done the following checks: shebang line file extension .cgi script is executable restarted apache I've done the following in my project.conf file on Vagrant under /sites-enabled: Options…
a7omiton
  • 1,597
  • 4
  • 34
  • 61
2
votes
2 answers

Cgi-bin script to cat a file owned by a user

I'm using Ubuntu server and I have a cgi-bin script doing the following . . . #!/bin/bash echo Content-type: text/plain echo "" cat /home/user/.program/logs/file.log | tail -400 | col -b > /tmp/o.txt cat /tmp/o.txt Now if I run this script with I…
Matt3324
  • 21
  • 2
2
votes
2 answers

CGI-script not executing or invoking by .sh script

I have started a small project just for my practice in home. I am using a raspberry pi with debian linux,installed apache webserver 2 on the board,i have no idea on webserver but some how managed to create html page with button on it and cgi script…
user3232919
  • 83
  • 1
  • 6
2
votes
2 answers

How can I increase gateway timeout for one PERL script?

I have a PERL script in cgi-bin and delivered via apache that creates a PDF file from a set of XML files. Long story short... it takes a little while and my browser reports a 504 Gateway Time-out error before it completes. I don't want to increase…
Octopus
  • 8,075
  • 5
  • 46
  • 66
1 2
3
17 18