I have two domains DomainA.com , DomainB.com on my Linux Server , each with separate space.
I am using PHP and MySQL for both my websites.
I have a page on DomainA.com from where users upload files. But I need to store the files uploaded from DomainA.com , on DomainB.com/mystorage.
For this what permissions I need to set of the 'mystorage' folder ....0777 or 0755 or else?
Or shall I need to give permissions to a User Account of DomainA.com to 'storage' folder on DomainB.com and simply use PHP for uploading? How do I give permissions on my Linux server of one folder on DomainB to user account of DomainA?
I got suggestions of chmod but don't know how to use it . please help.