Mark Kirby – Mobile Developer

How to use Zend Framework on Webfaction

A quick tutorial on setting up the Zend Framework on a Webfaction host. The problem I ran into was that Zend requires the domain point to the public subfolder, but Webfaction requires the domain point to the root of the application, otherwise the error “Not application mounted at the root of this domain” is shown.

Here’s how to avoid the issue.

  1. Create a regular Static/CGI/PHP application called <appname> within the panel
  2. Place the Zend Framework code within the <appname> folder created inside “/home/<username>/webapps/<appname>”
  3. Select the option in Panel for adding a new application
  4. Select the “Symbolic link to static/cgi/php app” as app type
  5. Name the app <appname-symlink>
  6. In the extra info field add an absolute path to the public folder, such as “/home/<username>/webapps/<appname>/public”
  7. Create a new website named <appname-website> (or whatever you like) which uses the application <appnamesymlink>
  8. Create a domain and link it to the website <appname-website>

One Response to “How to use Zend Framework on Webfaction”

  1. On December 7th, 2009 at 1:50 am, Christian said

    Thanks! Very helpful.

Leave a Reply

This site was created with Wordpress, using my own template.