Why do I get a 403 error when accessing my apache server?

I guess that, Your common partition may be an ntfs or fat partition and You just mounted that partition by clicking on the nautilus side bar icon. Doing so, does not mount the partition with executable permission, which is required for firefox to be able to execute the file.

The solution:

The easiest solution without using /etc/fstab file is this:

  • Open a terminal and type sudo blkid, give password.

  • From the output of the command, see the type of the partition by looking at the corresponding label, i.e common.

  • If common partition happen to be /dev/sda2 , mount that partition with the command:

      udisks --mount /dev/sda2 --mount-options umask=022  
    

    replace, /dev/sda2 with the actual partition number.

You should now be able to execute/run the files using "Firefox".

Note: You should unmount the partition before using the command. You can unmount it by right-clicking on the partition icon, and select "unmount" from the options


Well, from what i can tell, chmod won't work on directories the way you use it- you really should try chmod -R 777 /path/to/main/directory/ to make it recursive. Then again, You don't want 777 for most things - but the exact permissions level would depend on your setup - I just hand over ownership to www-data and run things with 755 - which dosen't let non owners write, but gives full read/execute powers.

Amusingly the error messages should have given most of this away. For a better writeup on how to set permissions, see this question on webmasters.se