Questions tagged [cgi]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
119 views

Returning error code with CGI script in Status header does not redirect to ErrorDocument

I'm playing around with apache2 and CGI scripts for a personal home page and I'd like to have subdomains. I've run into the issue, that if I'd want to return an error code, more specifically I've ...
0 votes
0 answers
272 views

Losing my mind trying to get a CGI script to execute instead of download using Nginix and Ubuntu 20.04

I cannot get a CGI script to execute itself instead of opening up a download window, do I need to add something indicating it should be inline? I've been trying for about two days and I'm stuck so ...
0 votes
1 answer
141 views

Apache2 won't run cgi files based on shebang

I'm trying to use Python as the server-scripting language instead of PHP. I've configured localhost and php files run fine under it. If I create a file .../localhost/temp/test.cgi (making it ...
0 votes
1 answer
45 views

Can be cgi execution be conditioned to ServerName?

I configured several VirtualHost entries. <VirtualHost *:80> ServerName subdomain1.domain.tld [...] DocumentRoot /var/www/html/subdomain1 [...] </VirtualHost&...
  • 74
0 votes
1 answer
2k views

PermissionError: [Errno 13] Permission denied gets thrown when starting the script in CGI, but not in bash

I have a python script on my HTTP server(CentOS 7) responsible for responding to the client browser, it works fine in bash, but when I try to access it via cgi, it just throws an error. It works fine ...
  • 101
0 votes
1 answer
293 views

lighttpd and slow pages

We have a long and slow cgi-script. Hypothetical example script: #!/bin/sh echo "<p>1<p/>" sleep 1 echo "<p>2<p/>" sleep 1 echo "<p>3<p/>" sleep 1 echo "<p>...
  • 225
0 votes
1 answer
268 views

Why is apache not passing Location header from cgi script back to client

I have an existing cgi web app which used to work fine, but whose behaviour has changed. One of the cgi programs (under certain conditions) returns a Location header, to cause a redirect. The ...
1 vote
1 answer
4k views

XAMPP apache setup on Windows to run .py Python files : ScriptInterpreterSource Registry-Strict

I've got my installation of the newest XAMPP version (w/PHP 7.2.2) setup and running apache just fine on my Windows 10 laptop for my PHP programming class. I was able to get CGI working to run .py ...
0 votes
0 answers
62 views

A script runs via localhost but not via 127.0.0.1

I am trying to migrate some software from apache 2.2 to 2.4. I have it working - almost. When accessing the server via address localhost things work, but when trying to access via 127.0.0.1 some ...
  • 101
1 vote
1 answer
797 views

Net::OpenSSH error module

I am new to CGI scripting I am trying to connect to another server using Net::OpenSSH but giving the following error #!/tools/openbin/perl/5.16.3/sparc-sun-solaris8/bin/perl use strict; use ...
1 vote
1 answer
81 views

Distributing Python programs with Apache while avoiding CGIWrap

I want to publish Python programs on the web, not execute them. When I put one in my web directory, CGIWrap jumps up and says: "CGIWrap Error: Execution of this script not permitted" What ...
0 votes
1 answer
1k views

Running PHP as CGI script on Mongoose in Windows

So I have downloaded mongoose-5.0.exe on my Win7. I followed the How to setup PHP from here and copied php-cgi.exe and php5.dll to my root directory and set the config files: mongoose.conf ...
1 vote
0 answers
301 views

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 ...
  • 181
0 votes
2 answers
530 views

How can perl cgi scripts can be executed in ubuntu

I am using Apache 2 server. Can anyone please tell me where to put cgi files in ubuntu Please explain the steps to execute the cgi scripts through the browser?
0 votes
1 answer
278 views

Why CGi scripts do not read headers from STDIN

Following recent vulnerabilities related to CGI, I read a little about it and have a question. Please note that I've never used CGI myself and that I don't code in PHP or Perl, so there maybe ...
  • 121
1 vote
0 answers
84 views

Linux filter which convert data coming from pipe to chunked transfer encoding

I usually use Open3.popen3 in my Ruby CGI scripts to start a Linux command, parse its standard output and converting the bytes to the chunked transfer encoding ( https://en.wikipedia.org/wiki/...
3 votes
1 answer
127 views

In which protocol web server talks to CGI?

I'm wondering what protocol is used for communication between web server, e.g. Apache, Nginx and CGI, e.g. FCGI, UWSGI?
0 votes
1 answer
608 views

Nginx serving C++ cgi script: response is binary format

I am trying to run C++ CGI script on nginx. I am using FCGIWrap with script from nginx website. The program code is like this: #include <iostream> using namespace std; int main () { cout &...
1 vote
1 answer
36 views

CGI scripts or other? [closed]

So it is my first time writing scripts. Here is the scenario: On our companies web server there are tools written in javascript that can verify user's accounts, change people passwords, and things ...
0 votes
0 answers
228 views

OSX Lion I cannot access localhost from my browser

I am running mac osx 10.7.5 (My computer won't allow an upgrade). And apache 2.2.26. I am trying to learn cgi programming with c++ (because I'm already familiar with cpp), but cannot access localhost ...
  • 1
1 vote
0 answers
411 views

Controlling a Canon Powershot with a CGI/Bash Script

I am trying to control my camera through the program chdkptp by using a CGI/Bash script. I have successfully controlled the camera by typing in the commands by hand: pi@camerapi /var/www/chdkptp $ ...
0 votes
1 answer
361 views

What are MINIMAL necessary reqirements to run Perl CGI scripts on Apache server?

I have my Apache showing perl scripts as plaint text, not executing them. Googling and playing with settings made me frustrating, because there are numerous and long samples, which are mostly ignored ...
  • 2,513
0 votes
0 answers
868 views

cgi-script script not found or unable to stat xampp

I have a cgi script in the cgi-bin of my htdocs directory that gives the "script not found or unable to stat" message on the Apache error log. I have other cgi scripts in the same directory that work ...
0 votes
1 answer
837 views

Wrong apache configuration. Perl scripts cannot execute

I've got wrong apache configuration. My script don't want to be executed and browser trying to download it as a file. <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName president.com ...
0 votes
1 answer
143 views

How to download a bash cgi headline http://?

Sometime in the cgi bash was able to see the whole web address with http: "$VAR"$HTTP_HOST$REQUEST_URI $VAR=http:// ← I do not remember as it is called a variable that showed http:// I searched ...
0 votes
1 answer
590 views

tc packetloss cgi script via webpage throws AH01215: Illegal “loss percent”

Using the following tutorial to run CGI commands, and after fixing a small issue executing sudo /sbin/tc qdisc add dev eth0 root netem loss 1% returns an error AH01215: Illegal "loss percent" (at ...
0 votes
2 answers
5k views

Apache 2.2->2.4 Upgrade, cgi no longer working

I'm running ArchLinux, and have recently upgraded Apache from 2.2 to 2.4, and updated my config (by manually merging in the changes from the new default config file). My CGI scripts that were ...
  • 183
0 votes
0 answers
910 views

How to set up cgi-bin properly in apache2?

I just set up a fresh apache2 with these Options for CGI: ScriptAlias /cgi-bin/ /var/www/cgi-bin <Directory "/var/www/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +...
1 vote
1 answer
3k views

Can't get computer to reboot via script

I need to reboot an embedded system via a local network webpage (a CGI script). I have the page built, and it calls a script on the station (which is the (apache) host of the webpage). This script is ...
  • 169
2 votes
3 answers
2k views

OpenBSD 'device not configured' error in chroot-ed environment

I have asked this question on StackOverflow but given the comment there it seems like it fits here better. This is almost certainly a system configuration issue—you didn't set up the jail right—...
  • 166
0 votes
0 answers
580 views

Launch application with GUI from CGI script

Is it possible to launch application with GUI from CGI script (on Windows 7)? Let's say that I want to launch Video Lan (VLC). How can I do it? 1st attempt: I tried to use exec function in Perl. My ...
  • 1,481
0 votes
0 answers
822 views

Is my apache installation in windows ok?

I am trying to use Apache2 in Vista. I downloaded it and installed it. I did not install it as a service though. I see in the Start a Start Apache in console new button that seems to work. I.e. when I ...
  • 387
0 votes
1 answer
861 views

Guide me to run a perl cgi program in browser,i am using windows7 and installed strawberry perl

Please help me for this request, I am a beginner at CGI and Perl I tried to install Perl, but I am getting the following error: HTTP Error 404.3 - Not Found The page you are requesting cannot ...
user avatar
2 votes
3 answers
2k views

Apache "70007 timeout errors"

I'm sporadically getting Apache 70007 timeout errors from (I think) Perl CGI scripts. I thought the problem was my scripts were exceeding the Apache's TimeOut value, but I wrote a sleep script that ...
0 votes
1 answer
148 views

CG Modeling - Rhino - TSplines

What are the downsides of using TSplines with Rhino? Are there any as opposed to using Poly Surfaces and NURBS? Pardon the stupid question, but do they render the same way? Are there any ...
0 votes
1 answer
3k views

how to download afile that is behind CGI request using CLI?

I want to download a mp3 file from an online course. But the file is behind a CGI redirect. The URL is: "http://openmedia.yale.edu/cgi-bin/open_yale/media_downloader.cgi?file=/courses/fall08/chem125/...
0 votes
1 answer
722 views

How to customize directory for python cgi script on mountain lion

I start to learn Python tonight...When I put python cgi script file under ~/Sites/, they can be executed via localhost/~USER_NAME/SCRIPT_FILE_NAME.py! But my project root is not under Sites/, so every ...
user avatar
1 vote
1 answer
2k views

Apache CGI lp: Permission Denied

I moved a Perl CGI script from an old RedHat Linux box to a more recent CentOS Linux box and certain system commands no longer work. for example system("ls -l filename"); works OK, but system("lp -d ...