Mac の /Users/myusername/Sites で localhost サーバーを実行しています
サイト フォルダに外部ドロップボックス ディレクトリへのシンボリック リンクがあります。opendir を実行して、シンボリック リンクであるディレクトリにイメージをロードしようとすると、
Warning: opendir(dir/symlinkDir/) [function.opendir]: failed to open dir: Permission denied
symlinkDir は、画像を含むディレクトリへのシンボリック リンクです。これは、symlinkDir がソフト リンクではなく、実際のディレクトリである場合に正常に機能します。
ディレクトリのパーミッションを 755、777、+x に変更してみました。また、 /etc/apache2/users/myusername.conf を次のように変更しようとしました
<Directory "/Users/myusername/Sites/">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>