Reputation: 10599
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.
Upvotes: 0
Views: 1390
Reputation: 10599
Figured it out by using a symbolic link (symlink). I set my DocumentRoot
and Directory
to /Users/Andy/Sites/quickstart/public
. Then I added a symlink from the Terminal (the folder /Users/Andy/Sites
did not exist before adding the symlink):
cd /Users/Andy/
ln -s /Users/Andy/Dropbox/My\ own\ folder/dev/quickstart /Users/Andy/Sites/quickstart
Then I changed the permission of my Dropbox folder, like so:
chmod 755 /Users/Andy/Dropbox
If this doesn't work for you, then try searching for "dropbox apache" on Google and try following some of the tutorials about the subject.
Upvotes: 0
Reputation: 4763
As I said earlier if Dropbox allowed additional protocol execution other than TCP, it would be a MAJOR I mean SUPER MAJOR vulnerability. But, again that is just an assumption. But, I just asked one of the expert working with me. He said, the same from security perspective (collars up) but, he also mentioned that dropbox does not like (dot files). .htaccess, .git, .gitignore, etc... a prefixed dot usually refers to hidden or system file.. Also, the mime-checking would make sure nothing is being remotely been done to hamper dropbox servers.
Over the argument I did say that all dropbox does is create a folder or a shortcut. How is that relevant? To which another expert hearing our conversation intervened and said that it concept of dropbox folder
is same as concept of a file called /dev/null
. You move files to dev null or you move files to dropbox, it may be on your system and/or it may just sync over! Dropbox works on a different protocol rather the one which our system understands.
Hope this explains well :)
PS: If you wish to have a application deployed in the cloud so that you do not have to worry about it's backup and downloadable from all. Then, you can try GitHub (which you can connect to your IDE , if it supports) or PHPCloud.
Upvotes: 1