One of the problems that I’ve been having with using Zend Server CE and Zend Studio 7 is understanding and managing where the files are located.
Since I’m developing on Mac, I naturally started with trying to use the ‘Sites’ directory. This meant that I had to switch the ZS7 workspace, which for some reason is a bit flakey. I would then need to reroute Apache’s documentroot or better create a vhost to point to the project in Sites.
It appears that ZS7 can automatically detect ZSCE and will create projects in its documentroot directly if ‘Create project on a local server’ is selected during the project creation process. This results in the new project appearing in the ZSCE documentroot directory, by default /usr/local/zend/apache2/htdocs.
It will probably be a lot less confusing to leave the ZS7 workspace and ZSCE documentroot in their default location and simply create a link in ~ (‘ln /usr/local/zend/apache2/htdocs DocumentRoot’) to the ZSCE documentroot folder instead of using the Sites directory.
Another confusing thing is the relationship between the Workspace, ZS Projects, and actual file locations. The Workspace is where ZS will create Project folders. Projects can reference files located elsewhere as implied by the above note. So files can be located in the Apache documentroot (wherever that is) and projects created in a separate Workspace. They don’t have to, and probably shouldn’t be the same location.