It is currently Tue Sep 26, 2017 10:57 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Python
PostPosted: Sun Jan 07, 2007 2:37 pm 
Newbie
Newbie

Joined: Sun Jan 07, 2007 1:39 pm
Posts: 5
Does Freehostia support Python scripting? I've heard you can use CGI for it and Freehostia supports CGI.

Thanks,
Macmatt.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 07, 2007 3:12 pm 
Support Tech
Support Tech

Joined: Tue May 09, 2006 2:27 am
Posts: 933
I'm terribly sorry but we don't support Python here.

_________________
Andy
ModeratorsTeam
Freehostia.com


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jan 07, 2007 7:56 pm 
Newbie
Newbie

Joined: Sun Jan 07, 2007 1:39 pm
Posts: 5
Does anybody know a free host that does?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 08, 2007 1:33 am 
Support Tech
Support Tech

Joined: Fri Mar 24, 2006 7:21 pm
Posts: 842
I am sorry but I am not able to provide you with such information.

_________________
Best Regards,
Burton
ModeratorsTeam
Freehostia.com


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 12, 2009 5:24 am 
Newbie
Newbie

Joined: Sun Apr 12, 2009 5:18 am
Posts: 1
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 12, 2009 11:13 pm 
Site Admin

Joined: Sat May 31, 2008 1:56 am
Posts: 424
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.

_________________
Best Regards,
Miles
ModeratorsTeam
Freehostia.com


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 08, 2009 11:27 am 
Newbie
Newbie

Joined: Sat Aug 08, 2009 11:19 am
Posts: 3
Location: United Kingdom
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>'


Top
 Profile  
 
 Post subject: Help!!
PostPosted: Thu Sep 24, 2009 8:10 pm 
Newbie
Newbie

Joined: Thu Sep 24, 2009 8:06 pm
Posts: 1
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 24, 2009 8:26 pm 
Newbie
Newbie

Joined: Sat Aug 08, 2009 11:19 am
Posts: 3
Location: United Kingdom
Sam

The example program still works, just checked it.

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

Keith


Top
 Profile  
 
 Post subject: mysql
PostPosted: Thu Sep 24, 2009 8:40 pm 
Newbie
Newbie

Joined: Wed Dec 12, 2007 5:44 pm
Posts: 4
Is there a way to work with mysql?
I tried

Code:
#!/usr/bin/env python

import MySQLdb


But it gives a server error


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 24, 2009 8:54 pm 
Newbie
Newbie

Joined: Sat Aug 08, 2009 11:19 am
Posts: 3
Location: United Kingdom
elasolova

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


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 28, 2010 11:03 pm 
Newbie
Newbie

Joined: Tue Sep 28, 2010 10:53 pm
Posts: 1
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!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 30, 2011 1:15 pm 
Newbie
Newbie

Joined: Sat Jul 30, 2011 1:02 pm
Posts: 2
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Moderators: Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011