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>

2 Comments

Christian

Thanks! Very helpful.

Matt Gardner

Thanks Mark! Elegant solution.

Leave a comment: