skip to Main Content

I’m using NLTK with my Django/Apache application, however when loading a page it returns Permission denied: '/var/www/nltk_data' error. I made my user (not root) the owner of /var/www and gave permissions with sudo chmod -R 770 /var/www/. What else can I do to remove this error?

2

Answers


  1. Chosen as BEST ANSWER

    The apache user trying to write to /var/www/nltk_data folder is www-data. So I made this user the owner of nltk_data folder then it worked.


  2. Try sudo chmod -R o+r /var/www/ This will add read permissions to other.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search