BlackThuder
-
Posts
7 -
Joined
-
Last visited
Posts posted by BlackThuder
-
-
Can we please have web.py installed on Johnny
It is pretty simple to install and one of the finest web frameworks available for Python
http://webpy.org/install#install
It is capable of being used with FASTCGI .... which can be done personally (user himself) if needed ...
Thanks & Regards
PK
-
By the way I did what u said ...
Writing cgi.test() seems to make it work but then it also prints a lot of info.
I understand that it prints something that I need to write but I dont know what ... I am doing what is normally required to be done ... any ideas on that
Hey got it working ....
The issue was in Python 3 the braces are important
print ("Content-Type: text/html\n")
Thanks a lot .... sorted everything out ... just the semantic error of braces
-
Since I don't know anything about python all I can do is give you a script to try:
#!/usr/bin/env python3.2 import cgi cgi.test() import sys ver = sys.version_info print("</br>Python Version:") print(str(ver.major)+'.'+str(ver.minor)+"."+str(ver.micro))
I want to use version 2.7 can I ?
-
I have kept a file in cgi-bin with permission set to 755
but it gives an error. Check out the link to find the error
http://urjas.heliohost.org/cgi-bin/Hi.py
The contents of the file are as follows
---------------------------------------------------
#!/usr/bin/python
print "Content-Type: text/html \n"
print("<html>")
print("<body>")
print( "Hi there")
print("</body>")
print("</html>"
---------------------------------------------------
It has been uploaded in ASCII mode via FTP. My local machine is windows. Anything that I did wrong to get that Internal server error
-
Did that ... named it Hi.py
and it has at the beginning
#!/usr/bin/env python print "Content-type: text/plain\n"
Shows a internal server error. Check that out at
http://urjas.heliohost.org/cgi-bin/Hi.py
I think I got it ...
The file should have usr/bin/python at the top ... cnt check nnow ... Johnny seems to be down
-
Hi
I am not able to read anything anything in cgi-bin
When I try to open
http://urjas.heliohost.org/cgi-bin/
It shows
----------------------------------------------------------------------------------------------------------------------------------
Forbidden
You don't have permission to access /cgi-bin/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
----------------------------------------------------------------------------------------------------------------------------------
I have changed the folder permission to 755. Not sure why it does not work. Any idea. I have written some python code and want to start testing.
Regards
PK
- 1
Please install web.py framework
in Customer Service
Posted
Thanks a lot ...
Just a question Was it installed to use mod_WSGI option ?