Questions tagged [cgi]
Cgi is the common gateway interface, used for interactive webpages.
280
questions
0
votes
1
answer
1k
views
ExecCGI turned off in this directory
I'm trying to run a python cgi script on my Mac's web server. Everytime I visit the file @ localhost/site.py I get a 403 forbidden error.
I'm looking in my Apache's error log, and it says:
[Mon Jun ...
0
votes
1
answer
3k
views
Nginx + fastcgi to run PHP script , but it kept telling me "File not found"
Here's part of config in the server block:
I was unable to execute any php script , I placed a file named test.php under /var/html , but when I point to http://localhost/test.php , I got a result:
...
3
votes
1
answer
754
views
Suexec, group-writeable files
I am running an Apache server with Suexec. However, I get an internal server error if I try to execute a CGI script that is group-writeable (if I chmod g-w , the script runs fine)
However, I want the ...
0
votes
2
answers
1k
views
CGI script fails to open a socket (CentOS 6.2/Apache2)
I have a webserver running CentOS 6.2 and the latest Apache from repositories. Todey I encountered a problem when running an executable program via CGI on Apache. The program is supposed to connect to ...
0
votes
1
answer
371
views
Compiling FastCGIWrap fails on slackware (nginx cgi support)
I'm currently trying to get nginx to work with cgit which uses cgi.
I know nginx doesn't support cgi directly but it appears you can support it indirectly via FastCGIWrap.
The link above is pretty ...
1
vote
1
answer
1k
views
libidn.so exists, but a cgi can't find it
I have a Debian 6 server, 64 bits...
I checked ldconfig, ldconfig path, symbolic links... , rebooted and so on... but still a cgi can't find libidn.so.11. The package libidn11 is installed (...
0
votes
1
answer
3k
views
Apache Server CGI Error 500
I am trying to set up a server for the "cgit" web-ui for GIT. I have downloaded the source code from the developer's website and correctly compiled it per the instructions.
My default-server.conf ...
1
vote
0
answers
558
views
Unreadable error using FCGI
I recently installed mod_fcgi on to Amazon EC2 64bit Linux AMI and using Movable Type 5.13 with it. Here is my error log.
[warn]mod_fcgid: error reading data, FastCGI server closed connection, ...
0
votes
1
answer
116
views
Modify apache 2 to use different Perl instance
I have 2 installed Perl on the OS, now my cgi script need to run the module on newly installed Perl, I've already set played the PERL5LIB, @INC to include the new instance but it doesn't work.
Any ...
0
votes
2
answers
263
views
Is this script nefarious?
This is sitting in my web site's cgi-bin. Should I be concerned about it?
#!/usr/bin/perl
print <<HTML;
Content-type: text/html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 ...
3
votes
2
answers
3k
views
Apache: Include Virtual SSI not working for CGI script
I have the following Server Side Includes within an .html file called test.html...
<!--#include virtual="/cgi-bin/myScript.cgi"-->
<!--#include virtual="/includes/myFile.html"-->
When I ...
0
votes
1
answer
12k
views
Enable Windows Authentication on website, allow only some users
I am investigating this problem. I have a CGI application that I publish through a website published in IIS7.
EDIT:
I changed the web.config to use url authorization. This is the web.config of a ...
0
votes
1
answer
206
views
Munin isn't showing graph history
I'm setting up my new Ubuntu 10.04 server and installed munin to view my machine's stats. It was working for a while, then I changed a couple of things (PHP spawn-fcgi to PHP FPM, reinstalled nginx) ...
1
vote
2
answers
2k
views
Is there any equivalent to php5-cgi for python?
nginx doesn't allow to directly execute external programs, so to run CGIs you need to run an standalone fcgi backend and connect to it with the fastcgi_pass directive.
For php it's easy, e.g. using ...
2
votes
1
answer
1k
views
Unable to SSI include some CGI scripts
I have a page site.shtml on an Apache server in which I am trying to include a few CGI scripts, like so:
<p><pre><!--#include virtual="files/testfile" --></pre></p>
...
3
votes
3
answers
2k
views
Can advanced web servers be faster than basic web servers?
A bsic web server such as python SimpleHTTPServer or THTTPD reads static files with least process; thus is quite fast. Normally, adding more features to create an advanced web server (but still ...
1
vote
1
answer
4k
views
Bugzilla CGI not working under Apache on Windows 7 [closed]
I am trying to install Bugzilla on my Windows 7 machine. I have only been able to get the apache,mysql,perl stack operational by installing XAMPP. Apache works well for php, and mysql seems quite ...
1
vote
2
answers
1k
views
Centos 5.5 - run cgi scripts from multiple locations
I want to be able to run cgi scripts from other locations besides /var/www/cgi-bin, examples:
/var/www/folder1/cgi-bin
/var/www/folder2/cgi-bin
/var/www/folder3/cgi-bin
How do I go about configuring ...
4
votes
2
answers
5k
views
How do I properly disable cgi scripts e.g. guestbook.cgi on WHM [closed]
After a PCI scan identified guestbook.cgi as a risk, I want to disable the cgi-scripts installed by WHM (v11, running on CentOS5). I would like to do this "properly" using the WHM Web interface if ...
3
votes
1
answer
2k
views
Changing server API from CGI to FastCGI
I have a server set up on CentOS and I need to change the API from CGI to FCGI (Someone else set this up initially) for x-cache to work (we need this as we have a TV appearance on monday and are ...
1
vote
1
answer
157
views
Redirecting a non-existent file in cgi-bin
We are using RHLE 5.6. I am fairly new with linux and apache. We currently have a website using an archaic exe file in the cgi-bin directory for a shopping cart (on Windows). We are migrating this ...
2
votes
1
answer
262
views
How to serve php requests through a single persistent php-cgi instance?
How to set up PHP Version 5.2.17 on Apache/2 to serve php requests through a single persistent php-cgi instance?
2
votes
3
answers
4k
views
Munin graphing by CGI
I have Munin working just fine, but any time I try to do cgi graphing - it just stops graphing... no errors in the log, nothing. I've followed the instructions here: http://munin-monitoring.org/wiki/...
2
votes
0
answers
946
views
Force Apache to kill its children after lost connection ("stop button" pressed)
How can I make Apache kill the CGI's that it has spawned, after the client (browser) has closed the connection?
I got a couple of CGI's that perform long-running operations and send output every 15 ...
0
votes
1
answer
1k
views
How to switch from CGI/FastCGI Server API to DSO?
Apache: How to switch from CGI/FastCGI Server API to DSO?
I want to switch back and forth. I found this answer for the reverse step, but I need the the first part:
Apache: How to switch to CGI/...
-3
votes
1
answer
84
views
Display static pages with a RAND seed, expiry? [closed]
In Apache, is there any way (using scripts like CGI and PHP, etc.) that will fetch all static content (html, images, and files within a specified size range) and send it to the user as a randomized ...
1
vote
2
answers
338
views
Scaling Python CGI scripts [closed]
I have Apache running on a quad-core Ubuntu server on a 384kbps ADSL. Files are uploaded by users via a web-form and processed by various Python programs running as CGI scripts. Some scripts are CPU ...
3
votes
1
answer
5k
views
Execute CGI script as specific user with Apache
I want to run a specific (perl) CGI script on my webserver. This works reasonable, but it would work immensely better if the CGI script would be running as the currently authenticated user.
Is there ...
0
votes
2
answers
4k
views
Problem with cgi-bin directory
I want to execute cgi files from /var/www/html/cgi-bin and /var/www/html/s1/cgi-bin. I currently have this in my httpd.conf
Options Indexes FollowSymLinks ExecCGI
ScriptAlias /cgi-bin/ "/var/www/html/...
2
votes
3
answers
1k
views
How to get rid of TCP or lighttpd 4KB buffering on CGI output?
I have a stock lighttpd install on a Amazon Linux AMI running on EC2. The only config changes I did is to enable CGI support.
Then there is a custom CGI tool (written in C) put in /cgi-bin/ that is ...
0
votes
2
answers
1k
views
CGI script not working properly on new web server
I have a simple CGI script that is working now in production that returns a json object, and so it returns a content type of application/x-javascript. In internet explorer, this file is asked to be ...
0
votes
2
answers
1k
views
Apache mapping URL to CGI script
In Apache I would like a URL "/myscript" or "/myscript?param=myparam" to execute a CGI script located at:
/usr/local/scripts/custom.pl
I have tried:
Action custom-action /usr/local/scripts/custom....
0
votes
1
answer
204
views
C CGI invoked by apache 2.2 on Windows 7 cannot read environment variable
I have a C CGI that is invoked by Apache, both running as SYSTEM.
The CGI relies on the setting of WINDIR and TEMPLATES environment variables. It gets the value of WINDIR without any problems but ...
3
votes
3
answers
199
views
Are there benefits in using CGI in a large scale Apache2 server or should I just use FASTCGI?
I have a web product done in PHP that theoretically should support a lot of users. Problem is, I just left the apache as it is and found out its just running as CGI. Is this very wrong and I should do ...
1
vote
2
answers
267
views
Apache Mod_Rewrite: Aliases and CGI
I am trying to get Apache to run a cgi executable in my "project" directories. It should respond to HTTP requests at:
localhost/packages
localhost/packages/
However, it should not respond to http ...
3
votes
2
answers
954
views
how to spawn php-cgi automatically when it exits?
I am using php-cgi on ubuntu(with nginx), and the command to start it is:
spawn-fcgi -a 127.0.0.1 -p 9100 -f /usr/bin/php-cgi -P /var/run/fastcgi-php.pid
but sometimes the php-cgi process will exit ...
4
votes
3
answers
2k
views
Windows Apache 2.2 painfully slow executing CGI
I've recently set up Apache 2.2 and git on one of our Windows XP PCs for gitweb access using the setup at https://git.wiki.kernel.org/index.php/MSysGit:GitWeb
As noted on the wiki, the only version of ...
4
votes
3
answers
986
views
Generate TFTP Content on the fly?
I know this isn't the purpose of TFTP, but I'm working in an environment where a lot of different types of devices pull provisioning info from a TFTP server. What I'm developing is a provisioning ...
1
vote
1
answer
565
views
Installing Redmine with apache in localhost slackware 13.1
I just installed Redmine in slackware 13.1 I followed the instructions and test of the installation works fine using webrick:
ruby script/server webrick -e production
However, I now want to use it ...
1
vote
0
answers
233
views
lamp php ubuntu 10.04 with cgi I get accesses to '/var/www/...' instead of '/usr/lib/cgi-bin/...'
I have a basic php cgi configuration problem on top of the apache web server in Ubuntu 10.04 . I am trying to setup cgi so as to answer one of the urls localhost/cgi-bin/index.php or localhost/index....
3
votes
2
answers
815
views
PHP as a CGI binary vs. PHP as an Apache module
What are the benefits of running PHP as a CGI binary compared to running PHP as an Apache module? Are there:
Security benefits?
Stability benefits?
Performance benefits?
I've always installed and ...
0
votes
1
answer
197
views
access cgi script from a subdomain with nicer URL
I want to access this page (working)
http://stats.example.com/cgi-bin/awstats.pl?config=www.example.com
via
http://stats.example.com/?config=www.example.com
<VirtualHost *:80>
...
1
vote
3
answers
3k
views
"svn update" on a remote machine
I need an ability to run "svn update" on a remote machine for a non-technical user, how would I go about it?
Our non-techincal users are using Windows XP and have Tortoise SVN client installed.
I'm ...
1
vote
3
answers
6k
views
Should apache ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ line be removed in production?
Here is the part of my current apache config that refers to cgi-bin stuff. This info was included in the default configuration in debian. Should this be removed on a live/production machine?
...
2
votes
3
answers
5k
views
Apache CGI Script Can Cannot Overwrite a File in a Directory it has full permissions to
Having a weird problem on a Solaris 10 box. I have a cgi script (perl) which needs to overwrite a file. We do not have suexec running on Apache so the destination directory has full (777) access so ...
1
vote
1
answer
684
views
PHP CGI for apache virtual host
I'm using PHP5.3 as module for Apache2.2(Windows). For one virtual host i need use PHP4 as CGI for .php files.
This is my config
<VirtualHost *:80>
DocumentRoot "E:\projects\php\wp\dev"
...
2
votes
2
answers
2k
views
How does nginx support cgi?
With apache ,I just put my binary under cgi-bin,how about nginx?
Does it support cgi at all?
0
votes
2
answers
20k
views
How do you give execute permissions to Apache2 user and NOT to everyone else?
I have Ubuntu Server running and I am setting up a separate directory as a cgi-bin. I have the directory ready and I changed the file for the site. However, to get it to work, I need to change the ...
0
votes
1
answer
868
views
Git Server on Shared Hosting
Are there any revision control systems (git preferred) that could run on shared hosting server presumably by being launched as CGI scripts?
0
votes
1
answer
1k
views
Can't configure trac to work with Apache2
I've been trying to set up trac to be deployed with apache for a little while now and I'm running into a wall.
This is the response I'm receiving from my server
Internal Server Error
The server ...