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

learn more… | top users | synonyms

0
votes
1answer
32 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
14 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
13 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
19 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
26 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
27 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
22 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
16 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
18 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
25 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
29 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
26 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
223 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
138 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 ...
0
votes
0answers
71 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
53 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
22 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
122 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
404 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
2k 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 ...
0
votes
0answers
331 views

nginx + fastcgiwrap = 502 Bad Gateway

I'm trying to execute a cgi script on my web server. I'm running Debian 7.8 (wheezy), with nginx 1.8.0 and fastcgiwrap 1.0.3-3 (both installed via aptitude). Here are my nginx settings (taken from ...
1
vote
1answer
435 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
0answers
85 views

How to use AppCmd on Windows Server for IIS with a site

I came across this ServerFault Article entitled show PHP error message on IIS 7, which was expanded a bit by Anton Staykov. I also searched a couple of other articles, such as this one by Microsoft. ...
0
votes
1answer
22 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 ...
0
votes
0answers
61 views

uwsgi error when serving git repo over http

I am trying to serve my git repo over HTTP on CentOS using uwsgi and nginx. However, when I try and clone the repo, my uswgi log says:- unavailable modifier requested: 9 I think that this means ...
0
votes
0answers
14 views

Perl CGI loging everything in error_log using virtualhosts

I have a problem with Apache and Perl CGI (I'm not using mod_perl) I'm using virtual hosts for different sites and one of them is running perl cgi scripts, even when the virtual host has the ...
2
votes
1answer
260 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 ...
0
votes
0answers
108 views

how to set per site php mode (mod_php5, cgi, fastcgi) in apache

i have 3 sites which are stored in /etc/httpd/conf.d/ site1.conf site2.conf site3.conf here's one <VirtualHost *:80> ServerName site1.ru ServerAlias www.site1.ru DocumentRoot ...
1
vote
0answers
100 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
155 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
136 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
224 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
203 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
106 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
111 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
54k 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
103 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
3k 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
351 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
45 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
169 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
91 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
335 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 ...
1
vote
1answer
720 views

What am I leaving out in enabling CGI execution under Apache 2.2?

I have a fresh Debian installation (if that's not an oxymoron), with Apache 2.2.x which I am migrating to after using Ubuntu Saucy and Apache 2.4.x, and I'm pulling my hair out about why ...
1
vote
0answers
52 views

nginx can't find cgi two levels deep

Typically, I want to serve an index.html file when http://mysite.com/ and any other directory is requested. The following, in nginx.conf, does that for /test: location /test { try_files $uri.html ...
1
vote
1answer
58 views

Supporting embedded PHP on a CGI app with IIS

We have a CGI pageserver (.exe) written in Delphi running on IIS. We'd like to be able to embed PHP in these pages at some point in the near future--say, for a captcha or CMS integration--but are ...