Simon Holywell

Text Post

Agavi 1.0 Beta on XAMPP 1.7.0

To install the new XAMPP ensure you firstly uninstall and remove your current XAMPP folder. Upgrades are not supported with this version due to the differences one of which is the removal of PHP4 support from the XAMPP package.

I like to install agavi via the pear package that is available:

  1. Open a command prompt and navigate to your XAMPP directory eg. D:\xampp\php
  2. Execute:
    1. pear channel-discover pear.agavi.org
    2. pear config-set auto_discover 1
    3. pear config-set preferred_state beta
    4. pear install -a agavi/agavi
  3. Wait for a bit as it installs
  4. Execute the command agavi and you will get a phing error

To rectify the error we must complete a little bit of a hack to trick the agavi batch file into recognising our phings version is greater than 2.3.1. Navigate into your XAMPP PEAR folder (D:\xampp\php\PEAR\phing) and create a new directory called ‘etc’. Inside your ‘etc’ directory create a new text file called ‘VERSION.TXT’ containing the following text ‘Phing 2.3.3 BRANCH (2.3dev)’.

Try executing the agavi command on the command line again and you should have a successful response like:

D:\xampp\php>agavi

Agavi > status:

[echo] PHP:
[echo] Version: 5.2.8
[echo] Include path: .;D:xamppphppear
[echo]
[echo] Phing:
[echo] Version: Phing 2.3.3 BRANCH (2.3dev)
[echo]
[echo] Agavi:
[echo] Installation directory: D:xamppphppearagavi
[echo] Version: 1.0.0-beta6
[echo] URL: http://www.agavi.org
[echo]
[echo] Project:
[echo] (not found)
[echo]
[echo] For a list of possible build targets, call this script with the -l a
rgument.

D:\xampp\php>

Hope that helps you out and you can continue to follow the official tutorial.

View Comments
Posted on Friday, January 2, 2009. Tagged with: agavixamppComputingInternetPHP

Comments powered by Disqus

Simon Holywell

My name is Simon Holywell and I am a Zend Certified PHP Developer with experience working for Web agencies, marketing companies and corporate IT in Australia and the United Kingdom. When I am not developing I can be found riding my motorbike, skateboarding or snowboarding. More information about my work history can be found on my online CV.

Facebook
LinkedIn
Flickr
Twitter
del.icio.us

Previous Next