Simple HTTP Server on Linux
07-27-2012, 11:38 AM, (This post was last modified: 07-27-2012, 11:38 AM by RichardGv.)
#17
RE: Simple HTTP Server on Linux
(07-27-2012, 09:33 AM)MyDigitalpoint Wrote: No, I have not any Python HTTP server yet, and this is the reason why I have been unable to test those chunks of Python code that I have.

My interest in Python is basically test how good (or bad) is this programming language compared to PHP, but this is not a real need nor intended to use on a server production environment.

However, your input is much appreciated and is helping me to better understanding more what the potential of using Python could be.

If you wish to learn more about how to install Python 3 and its syntax and libraries, I would recommend the official tutorial: http://docs.python.org/py3k/tutorial/index.html

Python is more of a generic scripting language that is not specifically designed for web server or web development -- yet you could create full-fledged websites with Python. (There are not many premade website scripts usable out of box in the Python world, I suppose. You would need to write some code.) Django, for instance, is a famed web design framework in Python, which you could try: https://www.djangoproject.com/
A list of other Python website frameworks: http://wiki.python.org/moin/WebFrameworks/

Python does not integrate to the web server as closely as PHP does. Python's HTTP server module may not be able to reach the performance of a web server written in C/C++, well, or even Java, since Python is an interpreted language. (It could be much more flexible, though.) I heard websites made with Python (and Django?) are usually operating in CGI mode together with a real web server (Apache, IIS, lighttpd, nginx, etc.). Also, Python websites may not work on many shared hosting services. If you have a VPS then it's not a big deal.

As for the syntax and libraries... Well, I like the syntax and libraries of Python (Python 3!) better personally, but you could have different feelings.

(By the way, I don't recommend you to try Python 2. Various weaknesses that could be very annoying at a particular moment.)
Gentoo Linux User (w/ fvwm) / Loyal Firefox User / Owner of a Stupid Old Computer - My PGP Public Key

No man is an island, entire of itself; every man is a piece of the continent, a part of the main; if a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friends or of thine own were; any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee.
-- Devotions Upon Emergent Occasions (1624), John Donn
Reply


Messages In This Thread
Simple HTTP Server on Linux - by Serial Thrilla - 05-30-2011, 01:01 AM
RE: Simple HTTP Server on Linux - by meds - 05-31-2011, 02:55 AM
RE: Simple HTTP Server on Linux - by lxw2005 - 06-11-2011, 04:30 AM
RE: Simple HTTP Server on Linux - by rowebil - 01-30-2012, 12:14 PM
RE: Simple HTTP Server on Linux - by RichardGv - 07-24-2012, 10:03 PM
RE: Simple HTTP Server on Linux - by RichardGv - 07-25-2012, 02:06 PM
RE: Simple HTTP Server on Linux - by RichardGv - 07-27-2012, 11:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [MyBB] Simple Group Legend v2 Serial Thrilla 3 4,036 01-21-2012, 02:18 AM
Last Post: Serial Thrilla
  Create a fully working Counter Strike server with HLDS Serial Thrilla 0 1,232 05-30-2011, 01:03 AM
Last Post: Serial Thrilla
  Counter-Strike Dedicated Server on Debian Squeeze Serial Thrilla 0 1,703 05-30-2011, 01:02 AM
Last Post: Serial Thrilla

Forum Jump: