You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2014/12/29 08:13:59 UTC
[Bug 57400] New: apache cgi-bin python script
https://issues.apache.org/bugzilla/show_bug.cgi?id=57400
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
Assignee: bugs@httpd.apache.org
Reporter: simeon@wysine.com
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***************************
#!/usr/bin/python
import time
from time import strftime
import datetime
def main():
print 'Content-type: text-plain\n\n'
today = str(datetime.datetime.today().date())
print today
main()
**********************************************************************
>>>>>>>>>>>>>>>>Apache config>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<VirtualHost 192.168.1.13:8001>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
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
</Directory>
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
</VirtualHost>
..........................>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 57400] apache cgi-bin python script
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57400
Eric Covener <co...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Eric Covener <co...@gmail.com> ---
Bugzilla is for reporting bugs, not for support. I suggest
users@httpd.apache.org or serverfault. Perhaps you're not hitting your
configured virtualhost.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org