Path

ez projects / doc / forum / article suggestions / workstation environments


Workstation environments

You need to be logged in to post messages in the forums. New users may register here.

Josh Bair

Member since:
06 June 2008

Posts: 7

Wednesday 22 July 2009 10:24:24 pm

There are a lot of articles on server configuration, but we haven't found much on setting up an optimal dev environment.

We're looking for information on IDEs, step debugging, etc. Many are making the jump from IIS/ASP .NET and Visual Studio to Apache/PHP5 and [?]. I think the [?] is the problem -- there are many IDEs and multiple versions of each IDE (ex. Eclipse).

What IDEs/tools does eZ / the community use and how are they configured?
Up

André R

Member since:
20 August 2005

Posts: 171

Thursday 23 July 2009 8:03:53 am

There are generally three camps, the gnu ones that have been on *nix all along and never will give up emac/vim, the mac os users that either came from windows or *nix and use TextMate + mamp mostly, and the Windows users that are used to Visual Studio and tend to migrate to Eclipse.

So I guess this proposed doc will need three routes.

Since I'm a Windows user myself I'll roughly outline the setup routine I go through:
1. Install wampserver* if you need to easily switch php versions between different projects or alternatively use the bitnami based eZ Publish installer** if you don't.
2. Install eclipse + pdt bundle (latest is 3.5 + 2.1) so you get code completion and other visual features in php
3. Install subclipse OR subversive to handle svn inside eclipse
4. [Optionally] Setup xdebug or zend debugger, both can give you php stack traces on errors and can be used for profiling, integrations with eclipse is also possible, search;)
4. [Optionally] If you have iis on the machine as well, then you need to reconfigure apache if you installed wamp, to use different port number, for instance 81(Think it was the 'Listen' directive, the cof file should be fairly good documented, so just open it using wamp tray icon -> apache -> configuration)
5. [Optionally] setup eclipse to use wamp's www folder as working directory, this way, you don't have to create virtual hosts for all new projects, but can browse them by accessing http://localhost[:81]/<projectname>

Alternatively, you could try Zend Studio + Zend Core, witch will result in somewhat the same thing, but already setup for you, and maybe a bit slicker and better integrated, but I haven't tried it so don't really know.

Note: there is one down side to Eclipse, its fairly slow.. Unless you are on Linux, so if you have a slow computer, then setting up the above(expect wamp, use package manager for things like that) on for instance Ubuntu instead would make a big difference for Eclipse and eZ Publish responsiveness!

* http://www.wampserver.com/en/download.php
(note, PHP 5.3 is not fully tested yet, and might contain regressions, so download PHP 5.2.8 from "Addons" if you are going to do serious development)

** http://ez.no/download/ez_publish_installer

(Feel free to move the text to ezpedia and expand it there!)

--
ar

Up

Josh Bair

Member since:
06 June 2008

Posts: 7

Monday 03 August 2009 9:52:25 pm

That's fantastic, André. I use both OS X and XP. On the OS X side, I usually have trouble with the dependencies (ImageMagick, ensuring the correct version of Apache is installed, etc.). I know MAMP can alleviate some of this but I ran into conflicts with the few times I tried it.

I've used XAMPP on the Windows side but never with eZ. Perhaps it's time to give it a try.

Like I said in the OP, I know most of this is possible, it's just organizing the information in a central area.
Up

You need to be logged in to post messages in the forums. New users may register here.