How do I enable writing via PHP to an alias directory.
I have the following on my VirtualHost
:
<VirtualHost *:80>
ServerName domain.com
ServerAlias m.domain.com
...etc
AliasMatch ^(.*)/user/([a-zA-Z0-9_\-]+)/images/(.*) "C:/Apache/webroot/user/$2/images/$3"
<Directory "C:/Apache/webroot/user">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
So if I tried to view a file or an image from m.domain.com
I can see it being fetched from the alias
directory; however, when I try to write it fails.
for example if i tried something like <?php file_put_contents("user/sam/images/sample.png", $img); ?>
it would fail.
Any suggestions or ideas is really appreciated.