Pragmatism in the real world

Preparing for the ZF2 Tutorial at PHPNW12

If you are coming to the ZF2 tutorial at PHPNW12, then you will get the best out of it if you do a little preparation before you arrive.

Laptop

You should bring a laptop with the following working on it:

  • A web server (preferably Apache) running PHP 5.3.3 or higher
  • A working MySQL server along with an administration tool such as phpMyAdmin
  • A text editor or IDE that you’re comfortable coding with

Vhost set up

You should set up the following directory structure somewhere that Apache can access:

	phpnw12/
          albums/
          ex1/
          ex2/
          ex3/
          ex4/
          skeleton/

Set up 6 virtual-hosts so that you can access the public folder within each directory like this:

URL DocumentRoot
http://albums.localhost /path/to/phpnw12/albums/public
http://ex1.localhost /path/to/phpnw12/ex1/public
http://ex2.localhost /path/to/phpnw12/ex2/public
http://ex3.localhost /path/to/phpnw12/ex3/public
http://ex4.localhost /path/to/phpnw12/ex4/public
http://skeleton.localhost /path/to/phpnw12/skeleton/public

Place a working copy of the ZendSkeletonApplication in /path/to/phpnw12/skeleton.

Place a working copy of the ZF2 albums tutorial in /path/to/phpnw12/albums. Follow the tutorial in order to get it working.

Once you have both the skeleton and the albums application working, then you are ready for the tutorial and we’ll see you on Friday!

3 thoughts on “Preparing for the ZF2 Tutorial at PHPNW12

  1. Hello Rob,

    If you don't mind me asking this but it's something I've been facing with zf2 and Apache. Why does the skeleton app takes longer to load an http request than any other app with zf1. I started to get the error: "The connection to VirtualHostName was interrupted." I sometimes have to hit refresh to make the same http request. This only happens with zf2 apps. If you have any thoughts on what I could do with this, I'd really appreciate it.

  2. Hello :)

    Looking forward to the tutorial!

    I am setting it up, but I got a problem. I

    When I test http://albums.localhost/ I got errormessages on the webpage about the table zf2tutorial.album.
    How do I set up this table correctly?

    Regards
    Jim

Comments are closed.