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
The apache user trying to write to
/var/www/nltk_data
folder iswww-data
. So I made this user the owner of nltk_data folder then it worked.Try
sudo chmod -R o+r /var/www/
This will add read permissions to other.