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

learn more… | top users | synonyms

-1
votes
1answer
22 views

Apache: how can i alias document root to /cgi-bin? [closed]

I would like to have DocumentRoot "/var/www/" to load and execute files on /usr/lib/cgi-bin/. So instead of site.com/cgi/script.pl i can type site.com/script.pl I tried to set my ScriptAlias from ...
-2
votes
0answers
12 views

Apache: How do i point /cgi-bin to /cgi-bin/index.pl? [closed]

How do i point /cgi-bin to /cgi-bin/index.pl just like index.html is loaded to DocumentRoot ? I tried DirectoryIndex index.pl on the cgi dir but it does not work. <VirtualHost *:80> ...
1
vote
0answers
14 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
0answers
7 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 ...
1
vote
0answers
23 views

How to write a file from Apache CGI in a user home directory on CentOS

I made a CGI in Python and it works unless I try to write to a file in a user's home. I activated allow_httpd_anon_write and allow_http_sys_script_anon_write to true with graphical tool for ...
0
votes
0answers
22 views

Using FastCGI can bypass the Lighttp POST cache?

I'm building a web service to configure an embedded device, and it should support firmware upload. That said, I have very limited RAM and storage to upload a file that's nearly 30% of the whole flash. ...
0
votes
3answers
51 views

Most efficient way to serve less than 10 http requests per day using cgi

Our company manages over one hundred servers and we would like to "ask" these servers for basic usage info once or twice a day using http. The usage info can be easily found with a perl cgi script ...
0
votes
1answer
93 views

how is it possible to configure uwsgi in emperor-mode with cgi-plugin + heartbeat in combination with nginx

After having the migration from fcgiwrap to uWSGI (which also brings plenty of other benefits that I'm planning to use) on my ToDo-list for some time I finally managed to setup a debian-wheezy ...
0
votes
1answer
33 views

removing process (and child process) access to file systems? [closed]

is there a unix-type free OS that allows me to remove all disk access for a specific process and any of its children? #!/usr/bin/perl -w use strict; use Perl6::Slurp; my $infile= ...
0
votes
0answers
36 views

Allow empty basic auth credentials, but check if supplied

I have an Apache 2.4 server with several webservices that all use form-based login + cookies. I want to unify my set-up with an LDAP authentication using Apache's AuthType Basic and AuthBasicProvider ...
0
votes
0answers
35 views

Get unused Nagios both services and commands

I have a monitoring server, based on Nagios 3.2.3, installed via source code, and using GroundWork Monitor Architect for managing Nagios configurations. My question is if possible (and how to) get a ...
0
votes
1answer
36 views

Performance issues on IIS7 and CGI (versus IIS6)

My company is upgrading the app/web server from Windows 2003 to Windows 2008 (mainly because hosting companies don't offer 2003 anymore, and we need new hardware to gain performance). Our app is ...
0
votes
0answers
35 views

mod_cgi disabled in apache but php-cgi still running

We recently experienced a hacker attack, writing directly to the server through php cgi. I have afterwards made a number of security updates, most importantly disabled mod_cgi in Apache2 which ...
0
votes
0answers
60 views

google site map generator can't login admin console

I installed Google Sitemap Generator for linux x86_64 CentOS 6 But when I try to login to the admin console using this link myserverip:8181 and my password nothing happened. After refreshing I ...
1
vote
2answers
89 views

Get full list of host and services from Nagios

I need to get a full list of hosts and services from Nagios, to make a decision table. I think there is two methods, querying the Nagios CGI, and parsing the Nagios cfg files. But... Nagios cfg ...
-1
votes
1answer
36 views

perl script running only once on IIS 7 server

I am on Windows 7 (IIS 7). When I run a perl script it works fine once and returns the output to any browser. It takes input from html form and prints the input as text. Upon reload or second run, the ...
0
votes
1answer
92 views

Free Perl for IIS

I'd like to use awstats for website statistics. Is there some free Perl distribution that plays nicely with IIS 7? This is what I've tried: Googling for perl iis yields a lot of tutorials, all of ...
1
vote
0answers
129 views

How to debug CGI over fcgiwrap/nginx

I serve executable scripts (mainly in C) through fcgiwrap connected with nginx. Since the scripts are complied, I can get the coding errors during compilation, but sometimes I receive CGI errors ...
1
vote
0answers
43 views

tomcat server not running after uncommenting servlet tags in web.xml

I am running tomcatserver and i need to execute a perl script. I searched online and found out that i need to uncomment in conf/web.xml <servlet> ...
1
vote
1answer
39 views

lighttpd rate limits per directory

I'm creating a site with a large number of small tools. One is a tool which uses a Python cgi-script that interacts with the Natural Language Toolkit (nltk), which is disk and CPU intensive. I have ...
0
votes
1answer
118 views

Unable to execute a cgi

First of all, sorry for my english ;). I want to execute a CGI on my server, but i have an issue run-detectors: unable to find an interpreter for /media/FTP/outils/cgi-bin/monitorCGI.cgi, ...
0
votes
0answers
23 views

Webdav server-side write event script

I need to run a script on the server every time a file is written through WebDAV. Constraints: unix (but not Linux, so I don't have inotify) Apache mod_dav large folder structure, so having a ...
4
votes
1answer
3k views

Options ExecCGI is off in this directory: /var/www/index.py

I have looked at alot of posts with a similar question but none seem to work for me i have the following /etc/apache2/httpd.conf file: <Directory /var/www/index.py> Options +ExecCGI ...
0
votes
0answers
13 views

Cgi 2.4 does not display headers

With Cgi 2.4, I am facing a problem of displaying headers which does not respect the standart norme. If I put a header with this format: X-xxxx is accepeted but X_xxx does not. any solution? thanks
1
vote
1answer
45 views

Pause Nagios reloading in web interface

Is there any option how could I turn off reloading of web page in Nagios web interface? Many times I checked many services and I needed the webpage to stay static and don't reload. One solution come ...
-3
votes
2answers
79 views

Can I use a .py file as a stylesheet for html5 [closed]

I have python generating my stylesheets in my html4 site (random background). Now I'm wanting to convert to html5 and I'm wondering if I can use a .py file in my css link <link rel = "stylesheet" ...
0
votes
0answers
34 views

cgi-bin for virtualhosts in apache

Let's assume that I have 2 virtualhosts running for the domains domain1.com and domain2.com. For these domains I set the documentroot to c:\server\htdocs\user\domains\domain1.com and ...
0
votes
1answer
202 views

Apache: permission error while opening file

I have a cgi script that opens a file (using python). The cgi script runs fine but when I try to open this file, I get a permission error: Traceback (most recent call last): File ...
1
vote
1answer
463 views

nginx + fcgiwrap: how come order of fastcgi_param matters?

I'm running Debian 6.0.3 (squeeze), nginx-0.7.67, fcgiwrap-1.0-1+squeeze1. Here is the test script: #!/usr/bin/perl use 5.010; use warnings; use strict; use Data::Dumper; print "Content-Type: ...
2
votes
1answer
141 views

CGI permissions with NGINX & FastCGI

I'm running GitWeb (which is essentially a CGI script) on a server which also runs GitLab. My aim is to provide reaad-only access to GitLab repositories without registering people. I've pointed ...
-1
votes
1answer
370 views

Options ExecCGI is off in this directory: /home/ec2-user/public_html/cgi-bin/

When I tried to access the http://host-ip/~ec2-user/cgi-bin/try.cgi, I got 403 Forbidden error, error_log shows Options ExecCGI is off in this directory: /home/ec2-user/public_html/cgi-bin/try.cgi. If ...
0
votes
1answer
118 views

Permission denied with mv under apache

I have a bash cgi script called by apache which should move one file in /var/www/html to another in the same directory. I've set up the relevant permissions with selinux (e.g. chcon to ...
0
votes
0answers
255 views

Apache - 70007 The timeout specified has expired

I am 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 ...
1
vote
0answers
50 views

ps x shows weird command: -f html/index.php

Just went to check one of my websites and was greeted by the message: "CGIWrap Error: Real UID could not be changed!". Went in via SSH and tried "ps x" which showed me tons of processes that that ...
0
votes
1answer
200 views

IIS 7.5 + CGI + SSL - How to increase the upload limit?

I'm hitting a really annoying problem with IIS 7. I've setup my web.config by the books as follows: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> ...
0
votes
1answer
42 views

Awstats over cgi does not show historical data

I have awstats for several virtualhosts, runned via cgi. One of them does not show historical data. It shows just data for this month. But runned on command line generates html with correct data. ...
0
votes
1answer
138 views

cgi and python script files are downloading from server instead of executing there

I kept some cgi,python files under /var/www/cgi-bin and trying to execute I followed all the steps in: http://webpython.codepoint.net/cgi_tutorial Still i am not able to execute. when i enter ...
0
votes
0answers
65 views

Nginx + fcgirap + spaw-fcgi + multiwatch madness

I'm trying to setup CGit with Nginx, but for this to work I need to setup fcgi support. According to some google results and Arch's wiki this is possible ( ...
1
vote
0answers
163 views

NGINX and CGit configuration

I?m trying to setup CGit and NGINX. I'm almost there but I have a problem with the rewrite rule in my NGINX's conf file. Currently I have this: server { listen 80; server_name ...
0
votes
2answers
257 views

FCGI and upload_tmp_dir PHP directive are not working correctly

I run PHP as FCGI! I'm setting upload_tmp_dir option as value /home/domain.com/tmp. When executed phpinfo() for double-check it's confirmed that the settings above are correct. Nevertheless, when ...
1
vote
1answer
130 views

Retrieve Windows Username via SSPI + CGI Perl

I need to retrieve the username of the windows user logged in currently when he is accessing my intranet page. I am trying to authenticate my webpage using SSPI(mod_auth_sspi.so) on Windows Server ...
0
votes
2answers
161 views

Where to find the mod_cgi.c script

Where is the mod_cgi.c script, or where are all the modules in the apache software? I have a problem with the RLimitNProc settings on my server, because this settings don't work properly. I've found ...
1
vote
1answer
44 views

Apache2 server not executing CGI script

I have a local Apache2 server (installed with LAMP). The Apache2 directory is /etc/apache2 and my document root is /var/www. Under the doc root, there's a /cgi-bin directory, in which my script ...
0
votes
1answer
467 views

Setup CGI exe in IIS 7 - Will Always Download as .exe file instead of executing

Trying to install a legacy CGI.exe file on a new Windows 2008 R2 server. I added the exe path to the CGI and ISAPI restriction list (it is set to allowed). The handler mapping for the .exe in the ...
1
vote
1answer
112 views

Mod Rewrite for cgi-bin

So i want to rewrite the following url structure mysite.com/cgi-bin/shop/shop.cgi/ to mysite.com/+ I have this as a rule and it works, but it doesn't force the url to print in the ...
0
votes
1answer
192 views

Server Showing Default CGI page on my VPS hosting

I am getting default cgi [http://xx.xxx.xxx.xxx/cgi-sys/defaultwebpage.cgi]page even after placing index.php in the root/public_html folder. The Httpd Conf on my VPS have the following entry ...
1
vote
1answer
157 views

perl app on apache and cgi behaves terribly with 504 gateway timeouts

Note: This question is about my server configuration giving 504 timeouts. I made a project here http://www.tryperl.com/ (requires auth with GitHub to sign in). Please be kind, I'm working on to learn ...
2
votes
2answers
165 views

How to execute (some) CGI commands as root

I want to put a simple CGI script in my APACHE server. I'd like to write it possibly in C (but also in PERL, if I want). The problem is that it must contain some lines that can be executed only by ...
0
votes
1answer
279 views

deploying perl dancer on apache with a virtual host

Forgive my lack of knowledge I'm just learning linux administration here. A week ago I read this article about setting up virtual hosts, I then installed and setup mod_perl and my perl Catalyst ...
0
votes
1answer
250 views

Chrooted nginx, fastcgi, and cgit

I'm running a Debian server with nginx chrooted in /var/chroot/nginx. It works wonderfully, but I'd like to be able to run cgit and host my gitolite repositories. When it was out of the chroot it ...