I've searched the forum and noticed that there are already several not very clearly answered problems like mine. Anybody knows how to make python script to run?
I know that I should put it in cgi-bin dir, but that's not all as it doesn't run.
I wrote the simplest script:
print '''content-type: text/html
and made permissions 755 for it
... doesn't work!
I've been receiving email notices of eventual erase of my hosting service and I realize I can't even use it if I'm stuck in this mystery. That's why doesn't a python script, that runs on simplest servers and lowest versions of python, doesn't run here but it turns an error.
Pls answer if anybody have ever ran any python script ever on frih.org, and pls write that script on forum if you know it, or tell me the name and email of somebody else who might know the same.
Maybe it is very simple like in case of perl, and four characters that are necessary on frih.org even though they aren't on possibly any other server. LIke " -wT". I've read all alike in python docs and can't figure out that some option would be very necessary to signal. Is it something like that?
This topic keeps sinking towards the last posted topic in this section of forum and still nobody except me thinks about it. Must I promote python and make it more present in the minds of people who write cgi scripts and would it make me happier when it happens in the future if I succeed? Or would I or the future generations pity my efforts even if I make it true? Or neither of these would affect me but something third would happen. Or nothing would happen at all of it all?
I must quit this thinking a while, I cried a bit and I'll leave it to chances now. If anything tis clear that I should.
I did put .htaccess and index.py too, and put 755 perm, but still I get error 500. And the same with or without #!/usr/bin/python in 1st line. What besides what I did I missed?
this may well be due to the fact that server 3 does not have python. i have come to know after searching through many many posts on the forum.
djclue917: are you using the mod_python settings on Frih.org??
Indeed server 3 doesn't have a working python installation as of yet. It's something I forgot to do while setting up the server and nobody noticed it until now.
I'm currently trying to make it work, but mod_python is still giving an error. I'll try to find a solution to it.
dont you guys have sqlite3 with your python 2.5.1 installation ?
im trying to import it and i get an ImportError ...............
ok well it seems there is no sqlite3, no mysqldb, nothing ...
Funny thing is I always assumed sqlite3 was part of the stdlib in python 2.5. Is there a reason you guys ommited it ? Or is that part of the recent issues you guys had getting python up on Server 3 ?
I know this as been asked about and requested several times in the past, but would you guys mind providing us with either sqlite3 or mysqldb so we could interface with the databases in python scripts ?
And while were at it, a few good WSGI gateways for mod_python exist, maybe you could pick a nice and install that as well ? ... Although thats much easier to install 'locally' on one's own home space..
Anyway, I guess I'll try & perfect my php skills while python is still only half usable on frihost.
My simple Python-based web app was working fine in Server 2. However, I'm still getting an Internal Server Error in Server 3. I don't have the time to debug the issues or possible problem involved right now. Bondings, can you give us more information about the Python installation, e.g., version and the like? Also, is mod_python installed and configured properly? If so, then what version and what are the supported handlers (publisher, etc.)? Thanks in advance. I really want my site to be up and running again...
EDIT: Is mod_python available yet? It's the one I'm using and not CGI. I don't think I'd be able to migrate my script for use with CGI in the near future... Any news or hints on when mod_python will be available in Server 3?