FreeHostia Forums
http://forum.freehostia.com/

Python
http://forum.freehostia.com/viewtopic.php?f=7&t=1125
Page 1 of 1

Author:  Macmatt [ Sun Jan 07, 2007 2:37 pm ]
Post subject:  Python

Does Freehostia support Python scripting? I've heard you can use CGI for it and Freehostia supports CGI.

Thanks,
Macmatt.

Author:  Macmatt [ Sun Jan 07, 2007 7:56 pm ]
Post subject: 

Does anybody know a free host that does?

Author:  ChuckBaggett [ Sun Apr 12, 2009 5:24 am ]
Post subject: 

The features list for the free accounts shows a big green checkmark for Python, which I would take it to mean that Freehostia does claim to support Python on its free acounts.

Does Freehostia support Python on its free accounts or not? If not, the features list in the ads needs to be corrected to reflect what the features really are.

Author:  Miles [ Sun Apr 12, 2009 11:13 pm ]
Post subject: 

Please excuse us for the misunderstanding. Yes, the Python programming language is supported on our servers as it is stated via the Hosting plans features lists. There should be no problem for you to use this programming language with your accounts with us.
If you have any other questions, do not hesitate to contact us again. I would advise you to open a trouble ticket from your account with us and provide us with more detailed information regarding the problem that you experience so we will be able to investigate this issue for you. You will be able to do this via the Open New Ticket menu of your account control panel Help Center section.

Author:  keithf [ Sat Aug 08, 2009 11:27 am ]
Post subject: 

Python does work with Freehostia on their free accounts

This has just worked for me

Create (or add to) .htaccess with this line
AddHandler cgi-script .py

A program that works

#!/usr/bin/python

print "Content-type:text/html\r\n\r\n"
print '<html>'
print '<head>'
print '<title>Hello World - First CGI Program</title>'
print '</head>'
print '<body>'
print '<h2>Hello World! This is my first CGI program</h2>'
print '</body>'
print '</html>'

Author:  thepeanut [ Thu Sep 24, 2009 8:10 pm ]
Post subject:  Help!!

Hi

I have created the .htaccess file, and tried files with both .py and .cgi but with no success! The page just displays the entire program content with no formatting...

What's going wrong!

Cheers, Sam

Author:  keithf [ Thu Sep 24, 2009 8:26 pm ]
Post subject: 

Sam

The example program still works, just checked it.

Make sure that the first line is
#!/usr/bin/python

Keith

Author:  elasolova [ Thu Sep 24, 2009 8:40 pm ]
Post subject:  mysql

Is there a way to work with mysql?
I tried

Code:
#!/usr/bin/env python

import MySQLdb


But it gives a server error

Author:  keithf [ Thu Sep 24, 2009 8:54 pm ]
Post subject: 

elasolova

The import statement should work, if MySQLdb is there.
The first line in your example is different to the one I used.

Author:  DremLIN [ Tue Sep 28, 2010 11:03 pm ]
Post subject: 

keithf wrote:
Python does work with Freehostia on their free accounts

This has just worked for me

Create (or add to) .htaccess with this line
AddHandler cgi-script .py

A program that works

#!/usr/bin/python

print "Content-type:text/html\r\n\r\n"
print '<html>'
print '<head>'
print '<title>Hello World - First CGI Program</title>'
print '</head>'
print '<body>'
print '<h2>Hello World! This is my first CGI program</h2>'
print '</body>'
print '</html>'


This way does not work. Please, give me Step by Step instructions for use python scripts.

Thanx.

UPD
Technical Support Department wrote:
The only server requirement is that the script files must be set with permissions to 755.


Yes!!! It's work!

Author:  karatos [ Sat Jul 30, 2011 1:15 pm ]
Post subject: 

keithf wrote:
Python does work with Freehostia on their free accounts

This has just worked for me

Create (or add to) .htaccess with this line
AddHandler cgi-script .py

A program that works

#!/usr/bin/python

print "Content-type:text/html\r\n\r\n"
print '<html>'
print '<head>'
print '<title>Hello World - First CGI Program</title>'
print '</head>'
print '<body>'
print '<h2>Hello World! This is my first CGI program</h2>'
print '</body>'
print '</html>'

Please, show Step by Step instructions for use python scripts.

Author:  berfur2 [ Fri Nov 16, 2018 6:25 pm ]
Post subject:  Re: Python

It didn't work for me!

Author:  Jace Cohen [ Sat Nov 17, 2018 6:19 am ]
Post subject:  Re: Python

Hello,

There is a tutorial on the Help section in the control panel on installing a python-based CMS and on the Python section of the control panel the path, pip, bin and virtual environment paths are all listed.

If you have any further questions or are experiencing any issues I would recommend opening a ticket from the control panel of your hosting account and providing a bit more details on the issue you are experiencing. You can do so by hovering the mouse button over the Help Section button and selecting My Tickets.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/