I have Zend Framework working with AMPPS on OS X Lion 10.7, but I want to switch over to the preinstalled PHP/Apache. However, it appears that I have a problem with my permissions. I have the following in my httpd-vhosts.conf:
<VirtualHost *:80>
ServerName zend.local
SetEnv APPLICATION_ENV development
DocumentRoot "/Users/Andy/Dropbox/My own folder/dev/quickstart/public"
<Directory "/Users/Andy/Dropbox/My own folder/dev/quickstart/public">
DirectoryIndex index.php
#Options FollowSymLinks Indexes # Didn't need it with AMPPS; doesn't help when uncommented
AllowOverride All
Order deny,allow
allow from All
</Directory>
</VirtualHost>
This exact configuration worked for me on my AMPPS setup. I tried to change the directory and DocumentRoot to a different folder (/Users/Andy/zendtest/public) and it worked. However, when I try to use my Dropbox folder, I get a 403 Forbidden – even if I used the same folder with my AMPPS setup. I am using an admin account in OS X. I have tried the suggestions from similar topics that I could find but without luck.
Figured it out by using a symbolic link (symlink). I set my
DocumentRootandDirectoryto/Users/Andy/Sites/quickstart/public. Then I added a symlink from the Terminal (the folder/Users/Andy/Sitesdid not exist before adding the symlink):Then I changed the permission of my Dropbox folder, like so:
chmod 755 /Users/Andy/DropboxIf this doesn’t work for you, then try searching for “dropbox apache” on Google and try following some of the tutorials about the subject.