SixServe - Free No Ads cPanel Web Hosting: How do i use python? - SixServe - Free No Ads cPanel Web Hosting

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How do i use python? Python web programming

#1
User is offline   lab_rat 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 04-March 12
  • LocationDurban, South Africa
Good mornin guys,

I seen on your webhosting features list that you do offer python web programming. I want to know if you do, what is the path to the python interpreter to use in the shebang(#!/usr/bin/python)? And what extension should i use for it..because i have been searching the mime types in the cpanel, but i could not find any for python specifically.

Thank you for assistance.
0

#2
User is offline   Patryk Moura 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 67
  • Joined: 14-February 12
  • LocationRio de Janeiro
prolly is /usr/local/bin/python
as far as i know, php is under /usr/local/bin... guess python too...
Cheers,
Patryk Moura.
0

#3
User is offline   lab_rat 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 04-March 12
  • LocationDurban, South Africa

View PostPatryk Moura, on 05 March 2012 - 04:11 AM, said:

prolly is /usr/local/bin/python
as far as i know, php is under /usr/local/bin... guess python too...


Thanks Patryk, I did try that, but i get an 500 internal server error. the same for any cgi and perl scripts. Is there anything i need to setup first before I use python and perl?
0

#4
User is offline   FlightPilot 

  • SixServe Team (Support)
  • Group: Staff
  • Posts: 2,554
  • Joined: 28-December 11
  • LocationSomewhere in the Sky.

View Postlab_rat, on 04 March 2012 - 06:27 AM, said:

Good mornin guys,

I seen on your webhosting features list that you do offer python web programming. I want to know if you do, what is the path to the python interpreter to use in the shebang(#!/usr/bin/python)? And what extension should i use for it..because i have been searching the mime types in the cpanel, but i could not find any for python specifically.

Thank you for assistance.


The Basic Path to Python in cPanel
is /usr/bin/python

Make sure you've got the "shebang" line and file permissions are set to 755. And make sure you have print headers.
FlightPilot
Si6 Staff
Personal Message (PM) Staff/Admin is not the right way to seek help. Just post it in the Forum and our crew will take care of it.

Posted Image Go Unlimited ! Premium Hosting with Unlimited domains and 99.9% up-time for Just USD $4.99. Grab it!
0

#5
User is offline   Kevin Russell 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 86
  • Joined: 18-February 12
  • LocationSan Francisco , C.A
talking about the snake or .. the one in cPanel yeah ? go to cpanel > python .. :D
Kind Smiles & Hugs.
Kevin R.

Concentrated power has always been the enemy of liberty.

A huge fan of Mr. Sam Barrow.

www.sixserve.com or kevinrussell.co.cc

Proud SixServe Member.
0

#6
User is offline   lab_rat 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 04-March 12
  • LocationDurban, South Africa
Thank you guys, I have changed my file permission to 0755 and use da correct path, but it still doesnt want to work. All my cgi files keep giving me a 500 Internal Error...Cgi, Perl, Python...
0

#7
User is offline   Kevin Russell 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 86
  • Joined: 18-February 12
  • LocationSan Francisco , C.A
maybe u shld check cpanel for error logs and report that to staff
Kind Smiles & Hugs.
Kevin R.

Concentrated power has always been the enemy of liberty.

A huge fan of Mr. Sam Barrow.

www.sixserve.com or kevinrussell.co.cc

Proud SixServe Member.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

Squidix Web Hosting