I have a fresh install of Debian Wheezy. I use the official repositories. I’m configuring it for Zend Framework development. Other tutorials on the web describe all this a little bit differently but I am trying to set up Zend Framework for my own needs, so if this works to you then fine, if not then just look for another tutorial.
First I install Zend Framework itself.
sudo apt-get install zendframework zendframework-bin
I’ll also need MySQL support, and PHPUnit.
sudo apt-get install php5-mysql phpunit
Let’s see if Zend works, and create a test project.
zf create project ~/workspace/testproject testproject
It also suggest that I should create my VHOST file. Let’s add the suggested lines to the file:
/etc/apache2/sites-available/testproject
The file needs to be enabled in Apache:
sudo a2ensite testproject
I’ll also need to add the testproject
domain to my /etc/hosts
file.
Zend will also need mod_rewrite, so I enable it too:
sudo a2enmod rewrite
I’ll also need xdebug, but it’s already installed so I only need the necessary settings in the php.ini file. I’ll just use the settings from this xdebug tutorial. Except that I didn’t install xdebug through PECL, so I’ll use
zend_extension=/usr/lib/php5/xdebug.so
And then finally I restart Apache.
sudo service apache2 restart