Questions tagged [cgi]
The cgi tag has no usage guidance.
39
questions
0
votes
1
answer
82
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) ...
0
votes
0
answers
45
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, ...
0
votes
0
answers
532
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 ...
0
votes
1
answer
321
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 ...
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&...
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 ...
0
votes
1
answer
450
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>...
0
votes
1
answer
315
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 ...
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 ...
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 ...
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 ...
1
vote
1
answer
98
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 ...
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
...
1
vote
0
answers
332
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
2
answers
602
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?