httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 57400] New: apache cgi-bin python script
Date Mon, 29 Dec 2014 07:13:59 GMT

            Bug ID: 57400
           Summary: apache cgi-bin python script
           Product: Apache httpd-2
           Version: 2.0.32
          Hardware: PC
                OS: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All

I am trying to execute python script by using Javascript http 'get' method.
python script is hosted in apache2(/var/www/cgi-bin/) (on Raspberry Pi - Noobs
OS) .

but it returns content of the .py script. I want to execute(run) this script.
please support.

**************My python script***************************

import time
from time import strftime
import datetime

def main():
print 'Content-type: text-plain\n\n'
today = str(
print today


>>>>>>>>>>>>>>>>Apache config>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

ServerAdmin webmaster@localhost

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

ScriptAlias /cgi-bin/ /var/www/cgi-bin/
<Directory "/var/www/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script .cgi .py .pl
Order allow,deny
Allow from all

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message