How can I tell if my host supports Python?

C

Charles Stricklin

I'd like to use Planet (http://planetplanet.org/) to aggregate my members
blogs into one big blog, and my host (http://www.bodhost.com) says they
support Python, but I see nothing anywhere on their web site including my
control panel that leads me to believe they do.

Is there any way to determine if they do?
 
J

Jeff Epler

If you have a shell, it's as simple as typing "python" and seeing if the
interactive interpreter appears:
$ python
Python 2.3.3 (#1, May 7 2004, 10:31:40)
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.If you've done this, you can find out the path to this Python
interpreter: /usr/bin/python

Otherwise, the documentation for the 'cgi' module has a buried
suggestion with the simplest Python CGI program.
http://docs.python.org/lib/node462.html
that program would look something like
#!/usr/bin/python
import cgi; cgi.test()
though you must know the correct path to the Python interpreter for this
to work.

Your best bet may be to ask your webhost for help---only they know how
they've (mis)configured your system.

Jeff

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFCEURyJd01MZaTXX0RArLtAJsHV/aSXIfxpeJ/iHn8w1BOebG7mgCgrh71
Su8k36B9mpU0GgKEpoKJ2HA=
=Iv5G
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,188
Latest member
Crypto TaxSoftware

Latest Threads

Top