Cgi is the common gateway interface, used for interactive webpages.

learn more… | top users | synonyms

1
vote
0answers
15 views

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 ...
0
votes
0answers
21 views

Unrecognized access to cgi-bin with error message 'script not found or unable to stat' on Apache

I checked my Apache 2.4 error.log and found some unrecognized access on my server, which is a Windows platform. Here are those error log, the IP 31.184.195.114 is not belongs to anyone I know. ...
1
vote
2answers
36 views

Getting permission denied on a python cgi script [closed]

I am trying to run a python script which produces graphs and saves them to a folder. I am running apache 2.4 on Ubuntu and my script works fine on the command line. The cgi module is enabled. I have ...
1
vote
2answers
35 views

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 ...
1
vote
0answers
10 views

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?
0
votes
1answer
48 views

Moving cgi script from Apache 2.2 to 2.4 results in a 403 error

My configuration is as follows: #Include for LinuxStat (http://lstat.sf.net) Alias /lstat/ "/usr/local/lstat/www/" <Directory "/usr/local/lstat/www/"> #for execute CGI files Options ExecCGI ...
0
votes
0answers
7 views

Lighttpd fails to serve cgi over unsecure http when compiled with --with-openssl

I'm setting up lighttpd on an ARM embedded linux platform. This is so bizarre. 2016-02-22 11:49:04: (log.c.194) server started mod_cgi.c.913: assertion failed: s 2016-02-22 11:49:13: ...
0
votes
1answer
43 views

VirtualHost DocumentRoot cgi goes to `/var/www`

I have an apache based web server I am called to do some maintenance on a few times a year. For this purpose I keep a local mirror so I can do what's required then upload the changes. I haven't used ...
0
votes
1answer
292 views

Run Perl CGI Scripts On CentOS 7 With Apache/Httpd

My CGI Perl scripts CentOS 7 are not running correctly, they are either showing up as plain text or I am getting a server error. I've been placing my scripts into the default /var/www/cgi-bin ...
0
votes
0answers
35 views

Script not found or unable to stat, in “.cgi” script in some location

I have many errors in directadmin "appache error log" like this: [Wed Jan 27 15:46:26.972238 2016] [cgi:error] [pid 15176] [client 135.83.212.120:18585] AH02811: script not found or unable to stat: ...
0
votes
1answer
26 views

Apache 2.4 Ubuntu access denied for cgi-bin

I have the following apache configuration: DocumentRoot "/var/www/html" ScriptAlias /cgi-bin/ /var/www/cgi-bin <Directory "/var/www/cgi-bin"> AllowOverride None AddHandler ...
1
vote
0answers
21 views

Simultaneously enable gzip and $STR_REPLACE in CGI in apache

I have a code in my CGI script for text replacement (for example replace 'red' with 'blue') $STR_SEARCH='red' $STR_REPLACE='blue' I am using the below code in .htaccess for enable replace function: ...
1
vote
1answer
38 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 ...
2
votes
1answer
29 views

Modify file before sending to cgi handler

I'm making a portable installation of Apache to run Bugzilla. This installation has a portable version of Perl and it's the one I want mod_cgi to use. However, mod_cgi doesn't have any way to ...
0
votes
0answers
32 views

iptables, Apache2 and cgi

I'm running Perl cgi script providing some reports on Apache webserver on a host behind DSL modem doing port forwarding. Overview: net <-> DSL_Modem (192.168.1.254) <-> Ap2host ...
0
votes
0answers
18 views

Random newlines in CGI warnings written to the Apache error log

Since upgrading a server from Debian 7.8 to 8.2 (64-bit) the Apache upgrade (to 2.4.10) has introduced a very strange fault: random newlines in error_log. Example: [Mon Nov 16 13:29:54.388526 2015] ...
0
votes
1answer
21 views

Forbidden Access. CGI -apache

I am trying to run a cgi script using apache but when I input in the browser https://localhost/cgi-bin/(anything) it says "You don't have permission to access /cgi-bin/(anything) on this server. I ...
1
vote
0answers
38 views

restart apache instances using cgi shell script [closed]

I'm trying to restart my apache instances in the server from my browser. For this I'm using shell script with cgi. Below is my code snippet. echo '<FORM METHOD="GET" ACTION="">' ...
0
votes
0answers
18 views

Nginx php5-fpm and Server interaction

I am running an Nginx web server with php5-fpm and a cms on a Debian and I'm not much experienced with web. I want to run cgi scripts on it. For example, I want to have a shut.cgi and when I type to ...
0
votes
0answers
38 views

lighttpd cgi.conf applying script path rather than documents path to returned data

I have an application that has both static html files and dynamic html file created using perl. The static pages are in a directory /usr/local/domain/htdocs with a number of sub-directories ...
0
votes
0answers
31 views

Executables run as CGI served by EasyPHP

I am trying to compile C program and run it as CGI script on EasyPHP server on Windows. I followed this tutorial, read how to run CGI scripts and how to config Apache to run CGI scripts. I tested a ...
0
votes
0answers
345 views

CGI document downloads instead of executing on Apache2 Mac OS X

I am new to manually configuring Apache servers and I'm trying to set up a an Apache 2.4 server on a Mac OS X. I am experimenting with a C++ and CGI and I'm trying to generate an html page via the C++ ...
0
votes
0answers
188 views

nginx with perl fastcgi-wrapper not working after reboot

I am configuring perl/CGI with Nginx on CGI shopping cart site. (I have other sites on different directory, php-fpm running on socket. ) My goal is to successfully set up perl-fastcgi running on ...
1
vote
0answers
85 views

Inconsistent “unable to open database file” error from a CGI program using SQLite

I've been running a task program for a psychology experiment on my virtual private server with lighttpd 1.4.28 and Ubuntu 12.04. The experiment is a CGI program written in Perl using a Perl module I ...
0
votes
0answers
69 views

IIS-8 - Python CGI needs to access a library outside of the web directory structure

I've got a python script that calls a dll in a directory off of C:\ (ctypes module). When I access the script, the errror I get back is in <module> mydll = ...
1
vote
1answer
23 views

mod_rewrite not working on web root dir

With the Apache/mod_rewrite config below i get a 403 forbidden error for any CGI scripts on the root /var/www/ I don't get any error for static files. Scripts out of root dir i.e. ...
0
votes
0answers
168 views

PHP5 FastCGI too slow Page loading

My Websites loading time is really terrible (too slow) so I started a Benchmark to check what is going on. The CPU is running 100% and Memory usage seems to be good. Read a lot of Documentations and ...
3
votes
2answers
497 views

Can I detect when a client has disconnected from a CGI?

I have a rather resource intensive CGI that takes quite a long time to start sending data. We've seen quite a few cases where impatient people reload a couple of times, which then triggers additional ...
4
votes
2answers
3k views

Apache: Permission denied: exec of '/var/www/html/cgi-test/first.pl' failed

So, I'm new to CGI / Perl, I'm trying to move a perl-based web app to a new server. My new server is CentOS 7, which runs Apache HTTPD 2.4.6. I'm trying to get a basic Perl CGI working from an HTTP ...
1
vote
1answer
507 views

uwsgi configuration with Nginx, with python scripts as cgi - 502 Bad Gateway

This is my .ini file to run the uwsgi "pyApp.py" [uwsgi] plugins = cgi socket = 127.0.0.1:9010 cgi = /=/usr/share/test/ cgi-allowed-ext = .py cgi-helper = .py=python i have a file "firstapp.py" at ...
1
vote
0answers
21 views

Possible that Apache start a script before AuthType is loaded?

I would like to run a script before the apache basic authentication is loaded. Example: I type a url in my browser, get the basic authentication (Username Password) field, and at this point the ...
0
votes
1answer
23 views

CGI not supported in a server…is it possible? [closed]

Goodmorning. I'm very new to web developing. I made a website whit a massive use of CGI, then I started to search for an host. Once I found my host I started to search for the configuration files of ...
2
votes
1answer
291 views

How do I prevent Apache2 from trying to execute a file as a script?

So basically, I followed this guide about iptraf monitoring and rrdtool to the letter. I put it in /usr/lib/cgi-bin/ as usual for cgi scripts. Then, when I visit it from a browser, the images it makes ...
1
vote
0answers
113 views

Git Pull on CGI and Command Line have different results

I have an "after push" webhook on GitHub that calls a CGI script to update a Jekyll website. The script: user@server [~/_repo]# cat cgi-bin/githook.cgi #!/bin/bash echo Content-type: text/plain echo ...
1
vote
2answers
2k views

hacking to my apache using cgi script

I newbie to web programming, so I setup an apache2 sever for my practice. It seems that someone succeeded to hack my apache server. I have notice in my access.log the following line: 81.169.174.52 - ...
1
vote
2answers
189 views

php servers without apache/nginx/cgi stack

In many languages, you build web frameworks from the ground up (i.e. from unix sockets) and layer on abstractions. If I want to build a web framework from scratch in OCaml or C, I first build a socket ...
1
vote
1answer
150 views

Allowing a CGI-EXE app to access the registry

I have an exe app that I run on IIS (from C:\inetpub\wwwwroot in DefaultAppPool) and needs to access the registry, but it doesn't work, it seems like it doesn't have permission. What's weird is I ran ...
1
vote
0answers
255 views

Is my site getting hacked (Bluehost)?

I'm running a simple website off of Bluehost, and I needed to use custom Python scripts so I created a cgi-bin folder in my site's directory and added my cgi python files there. Everytime I tried to ...
1
vote
1answer
228 views

CentOS 7 acl not working for apache

I want to access a user's directory from a cgi script. I set the acl on the directory successfully but the script still gets "Permission denied" when trying to access that directory. I su'd to ...
1
vote
0answers
119 views

Does OPcache work when PHP is running in CGI mode?

Does PHP 5.5s OPcache work with PHP running in CGI mode? Or does that even make sense, since it forks and kills PHP for each request?
0
votes
0answers
2k views

Apache Server 2.4 on EC2 “caught SIGTERM shutting down ”

I'm using amazon linux on an m3.large instance on EC2. I had these logs before my apache server was shut down: [Sun Sep 28 18:54:31.679261 2014] [cgi:error] [pid 32422] [client 67.211.230.58:58937] ...
1
vote
0answers
119 views

Perl doesn't work without warnings in CGI

For some reason I can't get a perl script to run in the cgi-bin folder. I haven't made these files and we've uploaded them to another server and they work fine. However I've used the following ...
71
votes
6answers
55k views

How to test if my server is vulnerable to the ShellShock bug?

How can I ensure my Bash installation is not vulnerable to the ShellShock bug anymore after the updates?
0
votes
1answer
107 views

Injecting Response Headers based on logic in apache

I've been searching everywhere for a solution to do this, as well as trying many different things, and none of which so far work. Here's my problem. On an Apache server I need to process every html ...
0
votes
3answers
4k views

Apache 2.4 replies with “403 Forbidden” for a CGI script, my configuration looks ok

I installed a CGI script on a fresh installation of Apache 2.4 on Ubuntu server 14.04. Apache keeps replying with 403 Forbidden also if, to me, the configuration file is ok. The CGI is the Monitorix ...
1
vote
0answers
392 views

cgit only works on command line, but not with nginx

Like many times, I used a virtual machine to test something. This is the reason why the configuration is maybe a bit dirty. I just try to get cgit running with nginx. I created a directory /git ...
0
votes
1answer
48 views

How to to use a cgi file without an extension as index in Apache

I'm using WebMin to administer an Apache server and am having trouble getting Apache to use a python CGI file without an extension (named "home") as my index. The file is executable and works OK if I ...
1
vote
1answer
185 views

CGI Script not running in PHP file

I have a CGI script in the server called script.cgi and I have added the following code to the domain vhost: Action add-footer /cgi-bin/script.cgi AddHandler add-footer .htm .html I have ...
0
votes
1answer
97 views

CGI scripts are not working on lighttpd with SSL

CGI scripts worked perfectly, while I was using HTTP. Then I set redirecting for all traffic through https and now CGI doesn't work at all (404 - not found). I use lighttpd server. Here is the part ...
1
vote
1answer
363 views

IIS Won't Let Python Script Set Headers

I am trying to get Python working with IIS 7.5. I have added a script handler for Python: Python itself doesn't seem to be the problem. I have ran scripts on the command line with no problem. The ...