Cgi is the common gateway interface, used for interactive webpages.
Questions tagged [cgi]
279 questions
1
vote
3 answers
Apache2 cgi's crash on odbc db access (but run fine from shell)
Problem overview (details below):
I'm having an apache2 + ruby integration problem when trying to connect to an ODBC data source. The main problem boils down to the fact that scripts that run fine from an interactive shell crash ruby on the…

Martin
- 11
- 3
1
vote
0 answers
Apache 2.4.29: cgi scripts load as text, even though cgi is enabled and .conf set up
I spent a few days searching for answers on serverfault and elsewhere, and tried them all to no avail. I'm trying to serve dynamic content using perl cgi scripts (Apache 2.4.29 on Ubuntu 18.04.2). The perl scripts are served to the browser as…

James Gawley
- 11
- 2
1
vote
1 answer
What can be a FastCGI client?
fcgiweb is a server based on FastCGI protocol.
What can be a FastCGI client? Is a CGI script a FastCGI client, or is a web server (e.g. Nginx) a FastCGI client?
Thanks.

Tim
- 1,487
- 6
- 28
- 43
1
vote
1 answer
APACHE SetEnv directive (from .htaccess) not send to CGI process
I don't understand Apache2 mecanism in this scenario :
1/ In this location : var/www/cgi-bin/ (user's group rights : www-data)
i've a CGI script (php-cgi) who will execute PHP app + VAR environement version :
#!/bin/bash
# file :…

gmini
- 21
- 1
- 5
1
vote
1 answer
how to disable a spcific cgi page in apache?
I have an Apache server that hosts multiple sites, one of them use CGI, one of them does not. While security scanning this non-CGI site was flagged in the tool for security review for a CGI page.
I am trying to block that page in Apache using the…

Diadems
- 26
- 4
1
vote
5 answers
Methods of Uploading files to apache without webdav or ftp, scp, ssh, telnet or sftp?
The company where I work has a desktop application that uploads files to a site without any of the aforementioned protocols.
They use CGI on the backend, so is it possible that they are uploading the files via a C++ cgi-script?
Is there an Apache…

leeand00
- 4,869
- 15
- 69
- 110
1
vote
0 answers
Unable to run cgi script
I've installed backuppc on a fresh Xubuntu. Everything went fine except that when I try to access the web interface, instead of running the CGI script I'm prompted to download a bin file.
I'm no apache2 expert but backuppc.conf file looks fine to…

belyid
- 331
- 1
- 4
- 14
1
vote
0 answers
Apache:How to config for php-cgi.exe
I have configured apache for using php-cgi as follows:
AllowOverride All
Options +ExecCGI
AddHandler cgi-handler .php
Action cgi-handler /local-bin/php-cgi.exe
Require all…

Mohsen Movahed
- 111
- 3
1
vote
1 answer
Apache 2.4 separate error log file for CGI scripts?
I am using Apache 2.4 on my server and I want to be able to have a separate error log file for CGI scripts, similar to how I have a separate log file for PHP errors.
Currently, I am using the following rules my virtual host config to have an Apache…

iglvzx
- 290
- 1
- 2
- 11
1
vote
3 answers
Why CGI is not working in apache
I have got url like this:
http:// ipadress/project/cgi/sessionlogin.cgi?login=usernmae&password=somepass
but when I open this url I see download action of cgi file, not a results.
I have .htaccess in folder with cgi scripts…

Сергей Илларионов
- 139
- 1
- 6
1
vote
0 answers
Set up Bugzilla on IIS 10 with FastCGI
I'm a bit of an IIS noob so apologies if this is vague. I've successfully set up Bugzilla on IIS 10 but it's pretty slow - a few seconds to load each page even on the same local machine. As I understand it I need to use FastCGI to fix this.
I…

AshleysBrain
- 111
- 2
1
vote
1 answer
Apache: Log messages from CGI to own file
I would like to have all the output from the (perl) CGIs in its own log file.
What i tried:
Setting ScriptLog /var/log/httpd/cgi.log in httpd.conf, but this had no effect. Probably something else is missing.
Any ideas?

arved
- 453
- 2
- 14
1
vote
0 answers
issue with Apache and CGI script
I have one interesting issue with Apache and CGI scripts.
When I make request to CGI script in following format: /cgi-bin/myscript.sh/myscript.params, apache firstly checks that there allowed query to /cgi-bin/myscript.sh/myscript.params - it's…

mcounad
- 11
- 1
1
vote
2 answers
Running a Python script which saves files to server with cgi and apache2 version 2.4
I have a python script (python.py) located in the /var/www/html/Python folder.
The script saves some images to another directory (/var/www/html/Data)
I have the -x file permission on the python.py script and -rw permission for all on the files where…

cachemoi
- 111
- 3
1
vote
0 answers
Clean way to run Perl CGI script on Mac?
I'm trying to run a server to serve a Perl file on my Mac, but I'd like to not use Apache and its CGI. Is there a clean way, a la Python's SimpleHTTPServer, to run Perl without mucking with Apache?

Mark Bao
- 111
- 1