View Full Version : Does Python work okay for Bluehost?
johnnyWebpages
06-07-2008, 04:40 PM
I know that it is supposed to work (it comes with the hosting.) What I mean is how is it working for you? I know PHP is the language of many, but wanted to know if Python was working well with Bluehost or of any problems. Is there special setups for it? No framework, just Python webpage from scratch.
Thanks.
I have run quite a few Python applications under FastCGI without complaints. Depending on your needs, you may need to ask Bluehost to install any required modules since Python utilization is pretty low. As for frameworks, you can generally install them within your account with little to no complication.
stardir
07-06-2008, 01:29 AM
I've got some problems running s test python script - i.e. hello world...but get the internal server erros still...
#!/usr/local/lib/python
# Required header that tells the browser how to render the text.
print "Content-type: text/html\r\n\r\n";
# Print a simple message to the display window.
print "Hello, World!\n"
here is my code, any flaws found are appreciated ... I change the file permissions using php chmod on that file..
You would be better to use "/usr/bin/python" at the shebang-- as far as I know /usr/local/lib/python doesn't exist. Additionally, are you executing your script from within the CGI-BIN? If not, you will need to add a couple lines to your .htaccess file:
Options +ExecCGI
AddHandler cgi-script .cgi .py # etc, I am not sure the extension you are using.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.