This is just a slight modification of my other post for achieving the same thing on Debian Wheezy.
I have a fresh install of Xubuntu 12.10. (Since it is based on Ubuntu, this should work just fine with Ubuntu 12.10 as well.) 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 zend-framework zend-framework-bin
I’ll also need MySQL support and xdebug.
sudo apt-get install php5-mysql php5-xdebug
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:
The file needs to be enabled in Apache:
sudo a2ensite testproject
I’ll also need to add the
testproject domain to my
Zend will also need mod_rewrite, so I enable it too:
sudo a2enmod rewrite
For xdebug I’ll also 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
And then finally I restart Apache.
sudo service apache2 restart
And while on Debian this worked just fine at this point, on Ubuntu I also have to create a symbolic link for the Zend library to use all my projects that I work on:
sudo ln -s /usr/share/php/libzend-framework-php/Zend/ /usr/share/php/Zend
(I don’t know if this is due to the projects’ settings, or a Zend thing, but I’m not interested in finding it out, because changing the project settings could break things on other team members’ computers.)