Using Apache2/PHP in Debian jessie, when I want to make a new subsection in document folder of Apache (/var/www) I simply create a link to an external folder where my php files exist and simply change the owner and permissions of the folder as follow and it works perfect.

ln -s /home/myname/mynewcode /var/www/test1
chown -R www-data:www-data /home/myname/mynewcode
chmod -R 755 /home/myname/mynewcode


Then I could access http://localhost/test1

But when the real folder that I want to link it, is on a NTFS partition since chown and chmod do not work, I do modify the /etc/fstab by adding the following code, therefore my NTFS partitions will mount with the required permissions and owner.

UUID=XXDDXDDXDDDXDDDD /media/myname/lable ntfs user,exec,uid=www-data,gid=www-data 0 2

ln -s /media/myname/lable/mynewcode2 /var/www/test2


But still I do get the permission error from Apache2 and I don't know what to do!!


  Forbidden
  You don't have permission to access /test2 on this server.
  Apache/2.4.10 (Debian) Server at localhost Port 80



Question: Oracle: function only returning null
Answer: PL/SQL Function works fine. It returns the desired result, but your select returns as much datasets, as are present in MEETING. You should select from dual instead.