Questions tagged [cgi]

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

279 questions
0
votes
2 answers

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/cgi-bin/" # # "/var/www/cgi-bin" should be…
Matthew Hui
  • 261
  • 8
  • 19
0
votes
2 answers

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 downloaded, but i can successfully download…
Roy Rico
  • 612
  • 2
  • 9
  • 20
0
votes
2 answers

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.pl SetHandler…
PP.
  • 3,316
  • 6
  • 27
  • 31
0
votes
1 answer

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 getenv("TEMPLATES") always returns NULL. TEMPLATES…
SpacedMonkey
  • 101
  • 2
0
votes
1 answer

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 ServerName stats.example.com DocumentRoot…
Moak
  • 734
  • 3
  • 10
  • 31
0
votes
2 answers

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 permissions of the Python script I have in the…
Lenny K
  • 101
  • 1
  • 1
  • 4
0
votes
1 answer

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?
Eric Pruitt
  • 413
  • 1
  • 4
  • 10
0
votes
1 answer

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 encountered an internal error or misconfiguration and…
Casey Flynn
  • 217
  • 4
  • 13
0
votes
1 answer

To what extent does mod_suexec interact with Passenger?

On a shared server (specifically a DreamHost shared server running Debian, but I don't know if this matters) with mod_suexec activated and with PHP and Python forced to use CGI or FastCGI, would you expect Passenger processes to be run as the Apache…
user61015
0
votes
1 answer

Prevent CGI Timeout in Apache with PHP

I have a PHP process which the user runs in the browser, but tends to take a fairly long time - upwards of 5 minutes. We just switched to a new server, and when we try to run the script now, it consistently times out at 4 minutes exactly, sending to…
Aaron Marks
  • 3
  • 1
  • 3
0
votes
1 answer

Debian, Apache2, CGI: paths issue

I have a perl form email script on the servers cgi-bin directory ( /usr/lib/cgi-bin ). /etc/apache2/sites-enabled/000-default ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AllowOverride None Options +ExecCGI…
Bubnoff
  • 415
  • 7
  • 18
0
votes
1 answer

404 Not Found for a PL script that exists!

I make a GET request to a CGI script and I get a 404 error. However, I am 100% sure that script is present and it has permissions: -rwxr-xr-x 1 apache apache 6520 Sep 7 03:01 uu_ini_status_audios.pl The request URL…
Abs
  • 1,559
  • 5
  • 19
  • 32
0
votes
1 answer

Lighttpd passing url as argument to perl cgi script instead of trying to find file

So I am running lighttpd and am in the process of hacking together a simple pastebin-like scipt. I have set up pb.domain.blah to run a perl cgi script (it is set in index-file.names) and was wondering if it would be possible to have something like…
cjh
  • 103
  • 3
0
votes
1 answer

CGI file executes only on local machine, not online

I've got a CGI script written in python (starts with #!/usr/bin/env python) that executes fine on the server. I type in /home/company/server/root/adam/code.cgi and it outputs the right output. I go to www.myserver.com/adam/code.cgi and all I see is…
Adam
  • 101
0
votes
1 answer

Setting up thttpd to run vqadmin or qmailadmin...keep getting 404s

I run nginx for my web server but wanted to quickly toss up thttpd so I could do some maintainenace using either vqadmin or qmailadmin. Those files are located at: /usr/local/apache/cgi-bin/qmailadmin and…
Ian
  • 251
  • 2
  • 10