SEARCH:

Running On Windows

As of April 2007 we established the task of getting Andromeda running on Windows.

Perl is Now Required

As of July 25, 2007, Andromeda now requires Perl to be installed.

If you have already installed Andromeda, and you need to add perl, follow these quick instructions:
  • Download perl from this site: ActiveState Download Site, follow the prompts. After downloading, unzip and run the install batch program. Answer YES to all questions.
  • On the Windows START menu, find "PostgreSQL" and click "Stop Service"
  • On the Windows START menu, find "PostgreSQL" and click "Start Service"

Current Status

As of April 12, 2007, Features that are known to work are:

  • Basic install and use
  • Node Manager self-upgrade

Version control does not work yet, as we need to make changes to:

  • application/a_codexfer.php handles version control server-side. It uses GNU tools diff and patch.
  • application/a_scontrol.php handles version control on the client side. It uses GNU tools diff and patch.
  • These two programs also both use the *nix CLI programs tar and the command rm.

What this means is that you can install and use Andromeda, but if you finish an app and want to move it to a production server you have to copy the files yourself.

A final issue is that Windows will flash a "cmd.exe" box on the screen whenever Andromeda executes a PHP exec command on some installations but not on others. This has yet to be explained or resolved.

Installation

To run on Windows, you need a webserver, PHP, Postgres and perl. These directions have been refined over time by several people and should work in most situations. You might be prompted to reboot your machine, especially if you are upgrading components. Hold off until you install the prerequesists.

Installing Postgres and Perl

  • Install Postgres right from the postgres site. There is a zip file that contains the msi installer for postgres. This included language bindings for several languages including plperl which andromeda requires. Right now the latest stable version is 8.2. The plperl.dll in the MSI package requires activeperl 5.8.x to run. Versions 5.6 and 5.10 will not work. Future releases of postgresql might require different versions of perl.
  • Install perl version 5.8.x (or the version required by your copy of plperl.dll) from the ActiveState Download Site. The windows perl distribution comes in either an MSI or ActiveState (.as) package. It is recommended that you use the MSI unless you would like to have the Active State package management system installed.

You should reboot your machine at this point if you were prompted to at any of the proveious steps and elected not to.

Install php and a web server

For this step please see running with XAMP or running with IIS depending on your webserver of choice. Then return to this page.

Configuration

Once the packages are installed, make these configuration changes.

PHP

PHP Step 1 of 3

There are a couple of php.ini settings that should be changed. If you installed with XAMPP this file will be at X:\program files\xampp\apache\bin\php.ini

  • max_execution_time must be expanded. Building a database will often exceed 30 seconds, and can run as much as 3-4 minutes.
  • memory_limit must be expanded beyond 8M, otherwise a database build will simply stop with a maddening lack of any kind of error or notice.
  • Uncomment the line "extension = php_pgsql.dll".
  • Make sure the line "short_open_tag=on" says "on" and is not commented.
  • Look for the line 'variables_order=...' and make sure it says 'variables_order="EGPCS"', if it only says "GPCS", then Andromeda won't be able to figure out that it is on Windows.

PHP Step 2 of 3

Install PEAR package Net_SMTP with any dependencies.

PHP Step 3 of 3

Install PEAR package Archive_Tar, along with dependencies.

Apache

Apache Step 1 of 1

Apache mod_rewrite must be on to make use of friendly URLs.

Postgres

Postgres Step 1 of 3

Make the following changes to postgresql.conf to make sure that it is listening on TCP/IP. Each of the lines below should already be in the config file, make sure they are uncommented and set as shown:

listen_addresses='localhost'
port = 5432
max_connections = 100

Postgres Step 2 of 3

Your pg_hba.conf file should look like the file below. It is important to keep the lines in the same order.

#  DEV SERVER ONLY, do not put this line in on a
#  production server.
host  all         postgres    127.0.0.1/32     trust 

# Users in pg group "root" can connect to anything
host   all         +root      127.0.0.1/32     password

# Members of the anonymous role can login
host   samename    all        127.0.0.1/32     password
host   samegroup   all        127.0.0.1/32     password

After changing these files, restart the PostgreSQL service. The Windows START menu should have an entry for "PostgreSQL", and entries for "Stop Service" and "Start Service".

Postgres Step 3 of 3

Enter the following commands in a pgadmin3 command window. Do this by launching pgadmin3, making a connection to localhost, and then:

create role root nologin;
create user USER_NAME superuser password 'PASSWORD';
grant root to USER_NAME;
create database andro;

Run Andromeda Install

You are now ready to download and install Andromeda.