0

I have just installed the Ubuntu 12.10 and I am getting some errors.. I have install the apache2 - ok. But when I am using the .htaccess file in my webfolders I am still getting error 403 forbidden. I rewrite the /etc/apache2/sites-available/default where I edit the AllowOverride None to All and restart the service apache2... But it is still does not work.. I used google, but no solutions found... Is there an error in Ubuntu 12.10 or what? Thanks for replies

1 Answer 1

1

It's not entirely clear what your problem is but 403s are often caused by filesystem permissions. Check the filesystem permissions for the .htaccess file and the path to it and ensure that the www-data user has at least read access to the file and r-x access to the directories at some level.

6
  • Can you tell me how can I do that? How can I check the permissions for thaccess? I add www-data for var/www...many thanks Mar 7, 2013 at 19:18
  • @JonáASabína: ls -l .htaccess ?
    – user9517
    Mar 7, 2013 at 19:29
  • and what are the right permission for this file? Mar 7, 2013 at 20:07
  • When I run following: sudo chown -R www-data:www-data /var/www the htaccess works, and it is not giving me error 403..but now, i have no permissions to add, edit or show the files in /var/www...what to do next? Mar 7, 2013 at 20:46
  • @JonáASabína: Spending some time learning how filesystem permissions and ownership works or getting someone to do it for you would be good at this point.
    – user9517
    Mar 20, 2013 at 10:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .