JavaScript appears to be disabled. We recommend you enable JavaScript while visiting this site.

(All original content on this site is licensed under the Creative Commons License Attribution-Noncommercial-No Derivative Works 3.0.)

Installing Python on a local Windows-based, Apache, server

In this article, we'll be installing Python on our local server via ActiveState's ActivePython. You can download the current version of ActivePython (2.4.3.12), as well as a select number of previous versions, from http://www.activestate.com/Products/ActivePython/

Since we're installing to Windows, download the 18.7 MB Windows (x86) MSI file (ActivePython-2.4.3.12-win32-x86.msi).

Once we've download the file, open it. Read and accept the license, and on the next screen, leave the installed settings along, but change the Install to from C:\Python24\ to C:\usr\bin\python\. Finally, Install.

To test the installation, open Notepad and enter the following lines:

print "Hello world"

Next, save this file at c:\helloworld.py. Now, open the Command Prompt (Start > Run > cmd) and type in the following.

python c:\helloworld.py

You can also just type python to see version information. Press Ctrl + Z to exit python (if you just typed python) and exit to exit the command prompt.

Congrats. With that, you've successfully installed ActivePython to your machine!

View all of the steps to creating a local Web server, for development.

Tags:

Categories: tutorials/guides

(All original content on this site is licensed under the Creative Commons License Attribution-Noncommercial-No Derivative Works 3.0.)

A local, Apache Web server, on a Windows XP computer

My intention is to write a number of guides that will help someone build a functional Web server for testing purposes. Since Windows is fairly popular, I've decided to outline how to install Web server programs on it. Since Apache is both powerful and free, I've opted to use it as the core, instead of IIS, or the like.

I also plan on keeping the various technologies up-to-date, yet continuing to provide the instructions for past versions used, just in case. I do have copies of the versions I've installed below, and would be happy to provide those copies that no longer exist elsewhere; just ask.

Our local Web server uses the following technology.

The following upgrades are planned for addition (in no particular order):

  • MySQL 4.1.21
  • phpMyAdmin 2.9.1.1
  • PostgreSQL 8.1.5
    • pgAdmin III 1.6.0

The following information is planned for expanding the tutorials, in no particular order:

  • World's simplest, but professionally functional, Web page
  • MagpieRSS
  • how to restore WordPress/MySQL using phpMyAdmin
  • how to setup a CMS (Joomla and possibly Mambo)
  • AWStats
  • FusionReactor
  • sending mail
  • FTP?

As new pages are added, I will add additional links and items to the above. If you would like me to cover a particular program, please let me know - any possible additions to this list would be appreciated.