Questions tagged [cgi]

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

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

Webmin shows plain Perl script when try to open login page

when I try to open webmin login page "https://192.168.1.13:10000" it shows plain Perl script like below, what is problem? I'm running Ubuntu 18.04 and latest version of webmin. #!/usr/bin/perl # # ...
0
votes
0answers
29 views

Apache Reverse Proxying CGI scripts

I have a web application called routers2.cgi which I am trying to proxy via an Apache 2.4 proxy server which does not work at the moment. Direct URL to the web application server http://lab.server....
0
votes
0answers
81 views

nginx site shows blank page. No errors

Background I'm trying to get an nginx /php-fpm7 site up and running on an alpine linux server. Problem No errors appear when i navigate to it. Cert is good. And the in the /var/log/access.log ...
0
votes
0answers
20 views

Saving images uploaded to a form on the server using python cgi

I want to be able to save an image from a html form to the servers disk using python CGI script. The server is already configured to run python CGI scripts, and Im only getting the "500 Internal ...
0
votes
0answers
71 views

SuexcUserGroup owner and group “suexec policy violation” after server update

I run a server with Apache 2.2.3 (was 2.0.55) that carries perl scripts for users (all 755) in: /home/username/webapps/cgi-bin/ their VirtualHost block contains: SuexecUserGroup username groupname (...
0
votes
0answers
27 views

Python CGI Script not executing, only displays as text

I have installed an Apache2 web server. It hosts a simple website with a form, which after clicking 'subbmit' is supposed to execute a python CGI script. It only appears as text so my question is how ...
1
vote
1answer
118 views

SELinux, Nginx and fcgiWrap: how to allow access to fcgiWrap socket?

I am under Fedora 31 (linux kernel 5.4.13, Nginx 1.16.1, fcgiwrap 1.1.0) running with SELinux in enforcing mode (policy: targeted 3.14.4-44.fc31). My box hosts a server driven by Nginx. Part of it ...
0
votes
0answers
99 views

Python CGI script not displaying on the website at all. Apache 2 Debian 10

me and my friend have started up a server on Debian 10 and its running Apache2. I have written a very simple website and a python script just to test the cgi scripts. So basicly after a user completes ...
0
votes
2answers
125 views

How to implement multiple sites using same code on a single apache server?

I have a mod_cgi code "site.py" which is used to serve a website. I'm running several instances of this website on a single apache server, each instance has its own config file. Currently my apache ...
0
votes
1answer
230 views

How's hacker used cgi script on Apache2 server to hack and delete database

Today one of my server has been hacked and hacker deleted my app database. And to restore back they are asking to pay money in BTC. Well, I started investigating to Apache2 logs and found many ...
0
votes
1answer
107 views

Loading css from cgit on nginx in a subdirectory

before I start I should note that I have absolutely no experience with nginx or networking, so what I have done was thanks to searching and trying different solutions. I have a problem I struggle ...
0
votes
1answer
92 views

Differences between gateway and reverse proxy server with example in Ngnix?

https://en.wikipedia.org/wiki/Proxy_server#Types_of_proxy_servers says A proxy server may reside on the user's local computer, or at any point between the user's computer and destination servers ...
0
votes
0answers
28 views

What can I do to see CGI video in Microsoft EDGE or Internet explorer?

I have a CGI server streaming video. I can see the video in google chrome and firefox, but on internet explorer or Edge, it just giving me the option to save, save as or cancel. Is there a way to ...
0
votes
0answers
47 views

Apache misconfiguration - config works on apache 2.2 but not 2.4

I have a set of cgi scripts which run on a RHEL 6.x (with Apache 2.2) box fine. There is a cgi-bin directory containing the scripts, plus an index.html (pure html) which serves as a front end to the ...
0
votes
0answers
35 views

Debian, Apache2, CGI: AH01259 process didn't exit

Debian, Apache2, CGI: error msg AH01259 Error Message I had the following error logged in the apache2 error log file: [Mon Oct 21 11:26:29.446387 2019] [cgid:error] [pid 161295:tid 140187053057792] ...
0
votes
1answer
80 views

Enable a single CGI script for Apache within the document root?

Is it possible to enable a single CGI script stored within the Apache 2.4 document root ? I was hoping something like the following might be possible : <VirtualHost *:80> DocumentRoot "...
0
votes
1answer
54 views

Pin point 500 Error which seems to orginating from FastCGI Module

I have a php application which I have been hosting on IIS that has suddenly stopped working and returns a server 500 error. In an attempt to troubleshoot it I have added a Failed Request Tracing Rule ...
0
votes
0answers
20 views

All files in /cgi-bin as PHP

I need to configure apache so that all files in the /cgi-bin folder will be treated like php (even if they have no file extension). Does anyone know how to accomplish this? It seems like cgi-bin has ...
0
votes
1answer
72 views

Trace httpd when using cgi

I have configured httpd (apache2.4.6) cgi to run /bin/bash scripts. I would like to trace httpd calls of /bin/bash and see the actual command that is run. So far I have tried to use strace -p but for ...
0
votes
1answer
44 views

Protecting access to CGI programs via reverse proxy

I am still a noob and autodidact in the network field, so please forgive me if what I am going to ask is just wrong. I have a web application based on JavaScript and PHP and served from my Apache web ...
3
votes
1answer
60 views

Force all Perl scripts to run with `use strict`

I just went through a large legacy Perl web application (built using cgi-lib.pl and running as CGI with Apache HTTPD) and updated every script to use strict;, fixing a lot of small bugs along the way. ...
1
vote
0answers
318 views

Apache 2.4.29: cgi scripts load as text, even though cgi is enabled and .conf set up

I spent a few days searching for answers on serverfault and elsewhere, and tried them all to no avail. I'm trying to serve dynamic content using perl cgi scripts (Apache 2.4.29 on Ubuntu 18.04.2). The ...
1
vote
1answer
115 views

What can be a FastCGI client?

fcgiweb is a server based on FastCGI protocol. What can be a FastCGI client? Is a CGI script a FastCGI client, or is a web server (e.g. Nginx) a FastCGI client? Thanks.
0
votes
0answers
226 views

How can I configure Nginx to use PHP in CGI-mode?

The Nginx tutorial shows PHP 5 being used in FastCGI mode on Windows, but PHP 4 doesn't support php-cgi.exe so it must be run in traditional cgi mode, There are two ways to set up PHP to work with ...
0
votes
0answers
361 views

SetEnvIf doesnt work from htaccess

I'm trying to overcome the infamous missing Auth header problem with Apache, PHP and CGI. If I set this in a virtual host, I can successfully read the Bearer token from the Authorization header. ...
0
votes
1answer
507 views

ERROR: (gcloud.app.deploy) - python script

I am trying to deploy a python application and I am receiving the following error message: ERROR: (gcloud.app.deploy) Error Response: [4] Your deployment has failed to become healthy in the ...
0
votes
0answers
398 views

How does apache choose the executable for a cgi script?

I've been doing some experiments, and trying to understand the results. In my apache conf I have: balter@balterbox:/etc/apache2$ cat sites-enabled/000-default.conf . . . <Directory /var/...
0
votes
1answer
2k views

APACHE SetEnv directive (from .htaccess) not send to CGI process

I don't understand Apache2 mecanism in this scenario : 1/ In this location : var/www/cgi-bin/ (user's group rights : www-data) i've a CGI script (php-cgi) who will execute PHP app + VAR environement ...
1
vote
1answer
68 views

how to disable a spcific cgi page in apache?

I have an Apache server that hosts multiple sites, one of them use CGI, one of them does not. While security scanning this non-CGI site was flagged in the tool for security review for a CGI page. I ...
0
votes
0answers
79 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 ...
0
votes
1answer
391 views

Different PHP modes for Apache Virtual Hosts

I got LAMP stack installed on Centos 7. Also I have three CMS up and running on httpd virtual hosts: WordPress, Joomla and OpenCart. The question: how to configure different PHP modes, CGI and FCGI ...
0
votes
1answer
657 views

How to configure .htaccess to run JavaScript with node as CGI

I'm testing this on my linux localhost. This is what I'm trying: balter@spectre:/var/www/html$ cat .htaccess Action cgi-node "/usr/bin/env node" AddHandler cgi-node .js balter@spectre:/var/www/html$...
-1
votes
2answers
650 views

.htaccess vs php.ini in mod_php and CGI

As far as I know, mod_php can be configured either by means of php.ini or .htaccess files while, for CGI, .htaccess files cannot be used. Does the fact that mod_php can use .htaccess files makes it ...
4
votes
1answer
763 views

Nginx and fcgiwrap, incremental output problems

When I run a cgi script under Apache any output is rapidly sent to the client. However when I run it under nginx with fcgiwrap it seems nothing is sent to the client until the script either finishes ...
-3
votes
1answer
67 views

Issue with high server load centos

I'm having some major issues with one of my servers. Server load is extremely high: load average: 142.28, 144.80, 139.6 The server is running Centos 6 and has a Perl image sharing script running on ...
1
vote
0answers
128 views

Unable to run cgi script

I've installed backuppc on a fresh Xubuntu. Everything went fine except that when I try to access the web interface, instead of running the CGI script I'm prompted to download a bin file. I'm no ...
0
votes
2answers
109 views

Why is Apache returning characters “MZ” for any .lc URLs

I have just installed Apache 2.4 on Windows Server 2016 Datacenter (AWS EC2 instance). Web server seems to be working fine, I can access 'http://localhost/' and get the 'It Works!' page. Location: C:\...
0
votes
1answer
807 views

CGI stopped working on setting Nginx as reverse proxy for apache

So I am running a site www.example.com. Initially, I was using apache and any hit to my site would be redirected to www.example.com/path. Now this redirection is defined in my httpd.conf like: ...
1
vote
0answers
484 views

Apache:How to config for php-cgi.exe

I have configured apache for using php-cgi as follows: <Directory "c:/wamp64/cgi-bin"> AllowOverride All Options +ExecCGI AddHandler cgi-handler .php Action cgi-handler /local-...
-1
votes
1answer
696 views

How does Apache spool STDOUT from a CGI script?

As part of a content management system I'm developing I have a script which retrieves image files (JPEG, GIF, PNG etc) in response to the browser GETing a URL like http://myserver/getimage.cgi/virtual/...
1
vote
1answer
974 views

Apache 2.4 separate error log file for CGI scripts?

I am using Apache 2.4 on my server and I want to be able to have a separate error log file for CGI scripts, similar to how I have a separate log file for PHP errors. Currently, I am using the ...
0
votes
2answers
1k views

CGI errors (Can't open perl script / Permission denied)

OS: CentOS 7 / Apache: 2.4 I'm upgrading machines and software, part of which has involved upgrading from Apache 2.2.x to Apache 2.4.x. A good portion of it works okay, inlcuding PHP scripts, and ...
0
votes
2answers
2k views

Why CGI is not working in apache

I have got url like this: http:// ipadress/project/cgi/sessionlogin.cgi?login=usernmae&password=somepass but when I open this url I see download action of cgi file, not a results. I have ....
2
votes
1answer
2k views

Returning HTTP status 204 for GET /generate_204 using uhttpd?

To deal with the Android captive portal detection for my specific setup, I need to return an HTTP status code 204 whenever I get a GET request for /generate_204. I currently use uhttpd as my webserver,...
1
vote
0answers
350 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 ...
0
votes
1answer
795 views

Apache: Log messages from CGI to own file

I would like to have all the output from the (perl) CGIs in its own log file. What i tried: Setting ScriptLog /var/log/httpd/cgi.log in httpd.conf, but this had no effect. Probably something else is ...
0
votes
2answers
1k views

Calling CGI python script as root from a web form

I'm having difficulty getting a web form to run a CGI script that needs to perform a command with root permission. The form is: <form class="mainform" action="./py/print_msg.py" method="POST"> ...
0
votes
1answer
1k views

Centos trying to execute hello.cgi script fails

I'm trying to execute a simple hello world cgi script in the html directory but it fails. Error log: [Tue May 17 14:56:15.744954 2016] [cgi:error] [pid 29997] [client 192.168.1.1:16151] End of ...
1
vote
0answers
205 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 ...
1
vote
2answers
1k 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
2 3 4 5 6