Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [cgi]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
78 views

CGI program gives 405 error on shared hosting

I have moved the website a few weeks back, its was working fine the previous hosting now its gives 405 error. I have perl installed on linux server. This is perl 5, version 26, subversion 3 (v5.26.3) ...
raman's user avatar
  • 1
0 votes
0 answers
43 views

PHP website getting hacked - dir names changed

I'm new to PHP and Apache. I come from Node.js/Java backends and I'm new to this tech stack (PHP, CGI, Apache etc). My site currently uses ckeditor to handle user uploads and has high traffic. Often, ...
Leonardo Santos's user avatar
0 votes
0 answers
505 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 ...
Confused and stuck's user avatar
0 votes
1 answer
300 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 ...
mike rodent's user avatar
0 votes
1 answer
48 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&...
174140's user avatar
  • 94
0 votes
1 answer
3k 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 ...
Xyz's user avatar
  • 101
0 votes
1 answer
434 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>...
SKi's user avatar
  • 235
0 votes
1 answer
309 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 ...
Nikki Locke's user avatar
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 ...
Maleko48's user avatar
0 votes
0 answers
64 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 ...
Dženan's user avatar
  • 101
1 vote
1 answer
1k 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 ...
Hemant Chowdary's user avatar
1 vote
1 answer
97 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 ...
Aaron Brick's user avatar
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 ...
Jan Turoň's user avatar
1 vote
0 answers
329 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 ...
user12007's user avatar
  • 181
0 votes
2 answers
593 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?
Krishna Priya's user avatar
0 votes
1 answer
391 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 ...
xaxa's user avatar
  • 131
1 vote
0 answers
98 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/...
Konstantin's user avatar
3 votes
1 answer
166 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?
micgeronimo's user avatar
0 votes
1 answer
729 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 &...
Junchao Gu's user avatar
1 vote
1 answer
38 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 ...
cool_ruler's user avatar
0 votes
0 answers
231 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 ...
ihoff's user avatar
  • 1
1 vote
0 answers
417 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 $ ...
Chris2fourlaw's user avatar
0 votes
1 answer
436 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 ...
Suzan Cioc's user avatar
  • 2,603
0 votes
0 answers
1k 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 ...
groengoen's user avatar
0 votes
1 answer
966 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 ...
tregnas's user avatar
0 votes
1 answer
146 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 ...
user2435244's user avatar
0 votes
1 answer
625 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 ...
didinino's user avatar
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 ...
lvc's user avatar
  • 193
1 vote
0 answers
1k 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 +...
Finn-Lennart Heemeyer's user avatar
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 ...
SSumner's user avatar
  • 169
3 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—...
TDrabas's user avatar
  • 186
0 votes
0 answers
612 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 ...
patryk.beza's user avatar
  • 1,561
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 ...
user65971's user avatar
  • 397
0 votes
1 answer
911 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 ...
Tim Nelson's user avatar
0 votes
1 answer
149 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 ...
stackOverFlew's user avatar
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/...
Beaker McChemist's user avatar
0 votes
1 answer
761 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 ...
RedGrittyBrick's user avatar