A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.
I've installed apache with php under Ubuntu 10.10. I need to change the DocumentRoot to a directory other than /var/www/ which is the default, but I get "Forbidden" message.
With /var/www/ everything is ok, I can also copy web directories to it and execute php codes, but it doesn't work at all for the other address, say /media/drive2/.
I even set permissions for /media/drive2/htdocs/ and all of it's children to 777(!) but I still get the same "forbidden" error.