Setting up MongoDb with ZendServer

After searching on google and SO, I couldn’t find a practical tutorial for setting up mongo db with ZendServer. So here it is: My system : Linux {name} 2.6.32-31-generic #61-Ubuntu SMP Fri Apr 8 18:25:51 UTC 2011 x86_64 GNU/Linux Follow the directions found here: http://www.mongodb.org/display/DOCS/PHP+Language+Center Tip: if you get an error message that says something [...]

After searching on google and SO, I couldn’t find a practical tutorial for setting up mongo db with ZendServer. So here it is:

My system : Linux {name} 2.6.32-31-generic #61-Ubuntu SMP Fri Apr 8 18:25:51 UTC 2011 x86_64 GNU/Linux

  1. Follow the directions found here: http://www.mongodb.org/display/DOCS/PHP+Language+Center
    • Tip: if you get an error message that says something about phpize, do
      sudo apt-get install php5-dev
  2. Because ZendServer uses a separate instance of PHP, your not done yet. You must now add the line
    extension=mongo.so

    to the ZendServer’s php.ini. Check your phpinfo if you are not sure where it is located, on mine it was located at /usr/local/zend/etc/php.ini
  3. Now you must copy the so file to Zend Server’s extension directory. I guess you could do a symlink, but I just copied mine:
    sudo cp /usr/lib/php5/20090626+lfs/mongo.so /usr/local/zend/lib/php_extensions/mongo.so
  4. sudo /etc/init.d/apache2 restart

Simple, huh?

 

 

Agile for the solo pragrammer

I did a Google search for Solo Agile Development and found many good resources and ideas. IMO, this is what it comes down to: refactor mercilessly – never say I’ll refactor this later. As soon as you see the need to refactor something, DO IT! With that said, be sure to follow rule #2 Use [...]

I did a Google search for Solo Agile Development and found many good resources and ideas. IMO, this is what it comes down to:

  1. refactor mercilessly – never say I’ll refactor this later. As soon as you see the need to refactor something, DO IT! With that said, be sure to follow rule #2
  2. Use before reuse. Avoid building in features just because you think you’ll need it later.
  3. You must be organized. Use Personal Kanban. I have found Agile Zen to be a very good Kanban tool
  4. Write your user stories the “XP way.” It takes some discipline but defining the Who, the What and the Why goes a long way to keep your stories short, manageable and well defined.

Granted this is good advise whether you are a solo programmer or part of a large team, but when you are by yourself for significant amount of time, these practices become even more important.

Accessing your configuration data that’s stored in application.ini – Rob Allen's DevNotes

Accessing your configuration data that’s stored in application.ini – Rob Allen’s DevNotes                                                                                       [...]

Accessing your configuration data that’s stored in application.ini – Rob Allen’s DevNotes

How to have module specific layouts

Zend Framework: module specific layout | vandenbos.org http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/                                                                                               [...]

Zend Framework: module specific layout | vandenbos.org http://blog.vandenbos.org/2009/07/19/zend-framework-module-specific-layout/

Sequence of how zend handles requests.

                                                                                                              [...]

Sequence Global

Useful front controller 411

Zend – Get everything after base Url (Controller, Action, and any params) – Stack Overflow http://stackoverflow.com/questions/2001204/zend-get-everything-after-base-url-controller-action-and-any-params                                                                               [...]

Zend – Get everything after base Url (Controller, Action, and any params) – Stack Overflow http://stackoverflow.com/questions/2001204/zend-get-everything-after-base-url-controller-action-and-any-params

Modular in Zend App

Setup multi modules in Zend Framework v1.9 with 13 steps http://www.zfforums.com/zend-framework-general-discussions-1/resources-developers-37/setup-multi-modules-zend-framework-v1-9-13-steps-3737.html#post_14812This is a good post about how to setup a modular zend app.                                                                 [...]

Setup multi modules in Zend Framework v1.9 with 13 steps http://www.zfforums.com/zend-framework-general-discussions-1/resources-developers-37/setup-multi-modules-zend-framework-v1-9-13-steps-3737.html#post_14812This is a good post about how to setup a modular zend app.