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
-1
votes
1 answer
Apache Perl 500 “Internal Server Error” - malformed header from script. Bad header=
I'm getting an Apache "500 Internal Server Error" even after installing Perl. Running the file from the terminal works fine (perl hello.pl).
Perl Mod setup with Apache everything is configured correctly (chmod the file…

K-G
- 2,799
- 4
- 26
- 42
-1
votes
1 answer
How do I solve a 500 internal server error on a cgi file trying to run python
I want to run a python script on a website which is hosted by Strato (.nl), and I'm trying to do this with a CGI file.
My code: cgi file, python file and a dependencies file to add something to the PATH
This is what the folders look like in the…

Heligas
- 1
- 2
-1
votes
1 answer
Unable to redirect from index.html to a Perl script
My web server directories are:
/var/www/cgi-bin
/var/www/example.com/public_html
In my sites-enabled conf file I have:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
Options +ExecCGI
AddHandler cgi-script .cgi
…

oldprogrammer84
- 63
- 5
-1
votes
2 answers
What do I need to configure to run Python on a browser?
I have worked with Python for a while, but this is my first time that I have to install it and use it on a VPS server.
I have the following script hello.py:
#!/usr/bin/python
# -*- coding: iso-8859-1 -*-
print '''
…

mauguerra
- 3,728
- 5
- 31
- 37
-1
votes
1 answer
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC ... Trouble connecting to mysql database from perl script
I am trying to use MAMP to develop locally but my perl scripts are failing to connect to my mysql database. When I review the apache log I see "install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC".
When I run > which perl I get the…

Archie Archbold
- 179
- 1
- 2
- 8
-1
votes
1 answer
Apache2 cgi-bin location not updating
First of all thanks for the help. I'm trying to port a website to a new version of linux (Raspian Jessie), and am having a few issues, apache2 is version 2.4.10. Mainly with getting the cgi-bin folder to update correctly. I've updated the default…

dbsEE
- 3
- 2
-1
votes
1 answer
Apache Queuing CGI-BIN functions
I am running an Apache Server and I have placed a script to generate a report within the CGI-BIN which I can then start running from link in simple webpage I put together.
The script works no problem. What I have noticed though is that if I attempt…

Sam Little
- 21
- 4
-1
votes
1 answer
read /etc/named.conf in shell script and get domains
i need to read etc/named.conf file , and get the domains
i want just the domains , and Order the domains line up line
zone "example.org" {
type master;
file "/var/named/example.org.db";
};
zone "example.com" {
type master;
file…

saba
- 35
- 1
- 10
-1
votes
1 answer
2 tuples equal the same when printed and are in unicode but when compared they dont match Python 2.7
I am trying to get data out of a sqlite3 database which I know returns a tuple using cursor.fetchone() but for some reason when the user on the other program which is a CGI script submits the data and I take it in and print it the 2 match up as in…

russel johnson
- 11
- 5
-1
votes
1 answer
xmlhttpRequest to pass URL in xmlhttp.open()
I am in a scenario where I have to pass a URL in xmlhttp.open to another server.I know that xmlhttp.open can be used to pass a URL on the same server. I want this URL to be passed on to another server and get the response back to the calling…

Nagaraju
- 1,853
- 2
- 27
- 46
-1
votes
1 answer
How many requests per seconds can Linux hosting support
I am writing network game.
Suppose there are 500 users.
Each user sends one HTTP Get request each 5 seconds.
So I have 100 requests per second.
Is it a big digit?
Ansi C Linux cgi-bin program works on the server side.
Each request reads/writes about…

nms
- 577
- 1
- 10
- 27
-2
votes
1 answer
How to have 2 graphs in one webpage (PERL)
I am completelyy new to perl and i am not sure if I'll phrase my question right so please reply if any clarification needed.
So I have a perl script that works just fine in plotting charts. The only issue is that I can only plot one chart at a time…

PerlBeginner
- 1
- 2
-2
votes
1 answer
why is my single jquery .ajax GET call showing up multiple times in apache log?
I am having a problem where my single call to .ajax is being repeated every 60 seconds until the remote side returns. As I write out my problem this way it makes me think of some kind of long-response call - but I have not done anything to set that…

Al Joslin
- 765
- 10
- 14
-2
votes
2 answers
Perl split csv line into variables
I need split a csv line into variables
# sample data
"100-001","Bla Bla, Bla, Bla","","",0.00000,"W1",6.000,0.000
I tried this but the numerical fields does not have "" so it would not work...
($var0,$var1,$var2,$var3,$var4,$var5,$var6,$var7,$var8)…

user1483404
- 17
- 1
-3
votes
1 answer
CGI Script Wont Create Directories
I have a perl CGI script that I am accessing from a URL. I've checked the syntax using perl -wc, and it seems to be ok. However none of the commands to create directories are executing correctly. The permission is set to 755.
Does anyone know how to…

Stephan Walters
- 343
- 2
- 13