Hi guys,
currently, I have an empty server(Server A) with apache and php running, and my virtual host is at /var/www/html/index.php...
I'm also running SAMBA(server b) with another server and sharing folder /home/pictures/public_html/* full read/write access to my other server...
However, everytime I try to access the shared folder from my php script, it gives me a permission denied.
PHP Code:
Warning: file_get_contents(/home/pictures/public_html/142470.jpg): failed to open stream: Permission denied in /var/www/html/thumb120.php on line 5
From server A, I can delete and add files to Server B shared folder fine... And all my permissions on the folders are 777 as well. However, if I copy that .jpg into /var/www/html/142470.jpg, and run that php script with that /var/www/httml path and it would be fine...
Any kind of help and remarks would be greatly appreciated.
Thanks all in advance.