Getting a project going with ZF2 is pretty straightforward, and well documented in a number of places. I code from OSX (10.8 at the time this was writ), which gives you Apache and PHP by default. Getting ZF2 going isn't too tough from there.
Tweaking Apache's Config
I use port 80 for "standard" development that pulls straight from some repos that are associated to client projects. I wanted to give ZF2 its own easy sandbox on port 82. If you're like me, it's an easy few steps to get an http://localhost:82 that's all ZF2.
sudo pico /etc/apache2/httpd.conf
Scroll down to about line 50 where you see "Listen 80" and below it, add "Listen 82". Exit (CTRL+X), answer Yes (Save). Now we edit the vhosts:
sudo pico /etc/apache2/extra/httpd-vhosts.conf
Just need to add a vhost for a ZF2 project on port 82 now. I haven't yet created my ZF2 project, but I know where I'll put it: ~Saeven/Documents/workspace/Minerva. ZF2 hosts the actual site out of a "public" subfolder, so I add this section below:
<Virtualhost *:82>
DocumentRoot /Users/Saeven/Documents/workspace/Minerva/public
Options Indexes MultiViews Includes FollowSymLinks
SetEnv APPLICATION_ENV "development"
php_value include_path ".:/php/includes:/usr/lib/php/pear"
<Directory /Users/Saeven/Documents/workspace/Minerva/public>
DirectoryIndex index.php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
There are a few extra tidbits in there, such as setting an APPLICATION_ENV parameter for later use (you probably want this), and some tweaks to my include path (which you can probably omit) because of some setup intricacies on my machine. Exit and save.
Check your HTTPD config with sudo apachectl -t
Then restart Apache.
Loading in ZF2
So go to that magic folder where you determined your project would exist when you tweaked Apache, (me, I: cd /Users/Saeven/Documents/workspace) and create the folder for your ZF2 workspace. Zend uses composer now, which is absolutely awesome. If you don't know composer, Google it, love it. If you don't love it yet, perhaps consider it to be the best arranged marriage to date! Composer is all bundled with the ZF2 Skeleton Application.
git clone git://github.com/zendframework/ZendSkeletonApplication.git --recursive
mv ZendSkeletonApplication Minerva
cd Minerva
This downloads ZF2 via GIT (super fast RCS). Let it do its thing, when done, composer will be in its folder (remember, Minerva above, you can call whatever you like/chose at step 1). Now, update composer with:
php composer.phar self-update