0
votes
1answer
21 views

Parsing Cookies in bash cgi scripts [closed]

I am trying to transfer from less of query strings and more of cookies. So i need to make a script that parses the cookies from the HTTP_COOKIE request header. The format of the cookies is: ...
0
votes
0answers
13 views

How to run pythontutor on apache webserver?

does anybody know how to make pythontutor (http://www.pythontutor.com/ , https://github.com/pgbovine/OnlinePythonTutor/) work on a home LAN with apache2 webserver? I tried to play with the default ...
0
votes
0answers
35 views

403 Forbidden CGI script

i'm trying to execute .cgi file on my server but return the following error 403 Forbidden You don't have permission to access /run/test.cgi on this server. Apache/2.0.64 (Win32) Server at localhost ...
1
vote
0answers
55 views

Apache: help understand Action and AddHandler directives

I'm trying to puzzle out Apache handlers. The official documentation has the following example: The following directives will cause requests for files with the html extension to trigger the launch ...
0
votes
0answers
33 views

Apache2 tried to execute non cgi file

My apache2 server executes .cgi files without any problem. However, it seems that the server also treat other files as a script. For example, I failed to load an image that stores in cgi-bin. I have ...
-3
votes
2answers
53 views

excuting perl from the web?

I have a Perl script, Main.pl, that reads in a text and outputs an XML document. When I SSH into my Unix server and run the script from the command line, it outputs the right XML; but when I visit ...
0
votes
1answer
16 views

Apache configuration to route only example.com and example.com/ but not example.com/something

I am using php and python based pages on my website. I want my root page example.com and example.com/ to be served using python and remaining all the pages by php say (example.com/url). If I add a ...
1
vote
1answer
160 views

What is the best way to execute CGI scripts with root privileges?

As the title says, I'm looking for a method to run a CGI script (running on APACHE on Ubuntu) with root privileges. In particular, some commands of the script can be executed by the current user ...
0
votes
1answer
210 views

Invalid Content-Lenght and HTTP 413 error?

I'm stack because all the websites on my linux apache2 webserver which have a form to fulfil are returning 413 Request Entity Too Large Error only after first fulfil (refresh makes it working). Error ...
2
votes
1answer
59 views

Can't run a c++ cgi on Kubuntu 10. Checked all apache configurations+exec+cgi-bin+api

I'm trying to compile my 1st c++ cgi Programm on kubuntu 10 with Apache2 but nothing. I've Put it to the cgi-bin folder checked the config files, run the programm on command, changed privileges to ...
0
votes
0answers
47 views

Apache removes preceeding slash (not trailing slash) from requests

I'm doing a clean install of Bugzilla 4 onto a new Ubuntu 12.4 server. I've already installed MediaWiki on the server without incident. Bugzilla, on the other hand, is being a bastard. When I go to ...
5
votes
3answers
861 views

sys_get_temp_dir in shared hosting environment

Note: This could also fit in superuser. I am setting up PHP 5.3.10 on a shared host with apache2 mpm itk and open_basedir in a way, that each user may not see or change the files of another user. In ...
1
vote
1answer
132 views

Spawn external process from a CGI script

I've searched and found several very similar questions to mine but nothing in those answers have worked for me yet. I have a perl CGI script that accepts a file upload. It looks at the file and ...
0
votes
0answers
58 views

Custom 404 response in ruby (not rails) cgi script info?

I came across a PHP script that points apache to it when it 404s, so it can do rewrites on URLS that mod_rewrite can't do, like checking version and doing other things mod_rewrite just can't do... I ...
0
votes
2answers
2k views

Can't locate Connection.pm in @INC (@INC contains: /usr/local/lib/perl/5.14.2 /etc/perl /usr/local/share/perl/5.14.2 …) at ./select.cgi at line

I am trying my hands for the first time in -> Apache - Perl (CGI) on Ubuntu. The Apache server is working fine in the folder /var/www for the default index.html file. But since I want to run a CGI ...
0
votes
0answers
79 views

my php request in apache is not displaying anything

I am trying to execute a simple php file within my cgi-bin folder in my apache path as follows: <html> <head> <title>PHP Test<title> <meta ...
1
vote
0answers
31 views

htaccess: Check whether the Server is executing PHP as CGI

Is there a way to restrict destrictives in a .htaccess file to be only executed when the server is running PHP (or something else) as CGI? Something similiar to this maybe?: <IfModule ...
3
votes
3answers
366 views

Why does my Perl CGI program return a server error?

I recently got into learning cgi and I set up an Ubuntu server in vbox. The first program I wrote was in Python using vim through ssh. Then I installed Eclipse on my Windows 7 station and created the ...
0
votes
0answers
29 views

why the browser doesn't show the date on page but download the date as files?

I use xmlhttprequest to "get" one part of data on the server, instead of showing the data on browser, the browser let me to download it and it tells me it's a PL file. Then I try to get some other ...
0
votes
0answers
526 views

Cannot execute php or perl scripts on home web server [closed]

When I point my browser toward the domain of either a .php script or a .pl script on my home-hosted web server, the file downloads rather than executing in the browser. I am running ubuntu server ...
0
votes
1answer
177 views

How to make WEB cgi script for system information (Based on BASH scripting lang)

So how can i get: All system information from Bash cgi script to web site?
0
votes
0answers
178 views

Apache2 fails to execute Perl CGI script (called in JS)

I have attempted to configure my Apache2 install on Ubuntu 12.04 so that it will execute CGI scripts, and, unfortunately, something somewhere has failed to do so. The specific things I have done ...
1
vote
2answers
906 views

Execute Python CGI from /cgi-bin/ folder

I have a standard Apache2 installation on an Ubuntu server. The default settings use ScriptAlias to refer /cgi-bin/ to /usr/lib/cgi-bin/. If I place my Python CGI script in /usr/lib/cgi-bin/ it ...
1
vote
2answers
131 views

CGI C output correct when executing from the command line, but not from web-request

Code: #include <unistd.h> #include <stdio.h> typedef struct hddinfo { char szDevice[4]; char szMfg[64]; char szModel[64]; int nTemp; } hddinfo; int main( int argc, char ...
0
votes
2answers
54 views

CGI Script that prints out an incoming param

I am trying to write out a python cgi script that will redirect me to a page that prints out one of the incoming params. The rewrite rule looks like this: RewriteRule ^(.*)$ ...
0
votes
1answer
171 views

apache2 python cgi misconfiguration

I am having problems with executing a python script from a browser. My script is simple as follows, cameron_toll.py #!/usr/bin/env python print "Content-type: text/html\n\n"; import mapnik print ...
0
votes
1answer
185 views

Errors running Perl CGI scripts under PerlRun

I am trying to run a Perl CGI web application under mod_perl 2.0 using PerlRun. After making a few simply changes to the scripts everything seems to work. However, the Apache error_log is getting ...
1
vote
3answers
5k views

apache (2)No such file or directory: exec of '/usr/lib/cgi-bin/fst.cgi' failed

I am working in ubuntu 10.10 and runnig my cgi script to apache..but it showing me following error... [Sat errorNo such file or directory: exec of '/usr/lib/cgi-bin/fst.cgi' failed [Sat Oct 22 ...
2
votes
1answer
355 views

Do CGI and mod_perl play nicely together?

I've got an apache web server (without mod_perl) that's been running just fine for a long time. It has been suggested that we use mod_perl to improve the performance of some scripts. I want to go ...
1
vote
1answer
454 views

Handle uploaded file with cgi c++ on apache2

Can we handle uploaded file from a html form with cgi c++ on apache2?
0
votes
2answers
239 views

Config cgi on apache2

I need my apache web server to run c++ compiled binary files. I've done everything I'm told in different tutorials to set my cgi-bin directory but nothing has helped! I've added to apache config ...
0
votes
0answers
62 views

Config cgi on apache2 [closed]

I need my apache web server to run c compiled binary files. I've done everything I'm told in different tutorials to set my cgi-bin directory but nothing has helped! please...
0
votes
1answer
237 views

Cannot display the image in web browser provided by Python via Apache Server

I am trying to display an image file in web browser via the Apache server by Python. I am using: windows 7 apache http server 2.2 python 2.7 Configuration in httpd.conf: DocumentRoot ...
0
votes
2answers
172 views

Output of command in Bash script to Drop-down box?

First off, I appreciate any and all help in answering this question. I have a command in a bash script that will output the following: 255 254 253 252 ... 7 6 5 4 3 2 1 It is a specific list of ...
2
votes
1answer
617 views

Error installing Perl CGI module from cpan

I get the following results when doing cpan install CGI on Ubuntu 10.4. Test Summary Report ------------------- t/tmpdir.t (Wstat: 0 Tests: 9 Failed: 0) TODO passed: 3, 6, 8 t/url.t ...
0
votes
1answer
67 views

File operation slower when excuted by mod_perl than when executed in CGI

I have an application which runs on cgi. I have ported it to mod_perl2 ( using apache2::compat) and rewriting the cgi file into a mod_perl handler. Strangely, the performance I am obtaining due to the ...
0
votes
1answer
194 views

Running Python cgi-scripts everywhere in var/www/

Hey there! I have a problem, I was not able to solve and I hope that here's someone who can help me. I want to run my python scripts on my apache2-Server via cgi. I know that I can add scripts into ...
0
votes
2answers
531 views

Executing shell scripts from a web browser in linux

Well I've been assigned this task, and I haven't a clue where to start. I'm running Ubuntu, and so far I've only managed to get apache2 working. Now it would be very grateful if anyone could guide ...
0
votes
4answers
1k views

500 internal server error when importing a python module in wsgi

I've got a Python script that is executing functions asynchronously by using PEST wsgi library. However, when I try to import another module it simply results in a 500 error. The way I try to ...
3
votes
3answers
7k views

Execute a .cgi file in Ubuntu

I am running Apache/PHP under Ubuntu When I run the .cgi file, by going at http://localhost/mycgi.cgi, the browser will display the code instead of running it. How do I make the browser execute ...
2
votes
2answers
1k views

CGI not executing python - 500 internal server error

I have a few python scripts that I'd like to execute and the following configuration: Ubuntu 10.04, Apache2, Python 2.6, mod_python and mod_wsgi installed. I've followed the instructions on the ...
2
votes
2answers
3k views

Python urllib.request and utf8 decoding question

I'm writing a simple Python CGI script that grabs a webpage and displays the HTML file in the web browser (acting like a proxy). Here is the script: #!/usr/bin/env python3.0 import urllib.request ...
2
votes
2answers
2k views

How can I run a long background process from a Perl CGI program?

I have a problem with a long running CGI and the timeout error: Timeout waiting for output from CGI script The client side is a form programmed in jQuery. The user input some data and receives ...
5
votes
3answers
560 views

Guile Scheme and CGI?

I recently discovered that CGI scripts can be written in pretty much any language that can print to stdout. I've written a small guile cgi script that works on my local apache install, but not on my ...
0
votes
2answers
331 views

Subrequest for PHP-CGI

virtual() can be used only when running PHP as an apache module. My shared hosting runs it as CGI so it doesn't work. Is there any other method to do it? Note: the subrequest is for static files that ...
4
votes
3answers
1k views

Apache2 and CGI - how to keep Apache from buffering the POST data?

I'm trying to provide live parsing of a file upload in CGI and show the data on screen as it's being uploaded. However, Apache2 seems to want to wait for the full POST to complete before sending the ...
1
vote
1answer
1k views

Passwordless SSH using cgi-perl script

This is my first shot at trying out cgi-perl scripts. I have SSH keys set up between my (root user) local machine and a remote machine. I'm trying to run a command on the remote box and display the ...
0
votes
1answer
436 views

How can I send multiple images in a server push Perl CGI program?

I am a beginner in Perl CGI etc. I was experimenting with server-push concept with a piece of Perl code. It is supposed to send a jpeg image to the client every three seconds. Unfortunately nothing ...
1
vote
0answers
533 views

mod_rewrite with location-based ACL in apache?

There is a CGI-script that provides some API for our customers. Call syntax is: script.cgi?module=<str>&func=<str>[&other-options] The task is to make different authentiction ...
0
votes
2answers
1k views

Cgi not executing python

I'm having a problem getting CGI to work for Python. I've added Options ExecCGI AddHandler cgi-script cgi py pl inside /etc/apache2/sites-available/default within and now Perl works, but Python ...

1 2
15 30 50 per page