'Django 'attempt to write a readonly database' even if db file has read and write permissions

I am using SQLite3, Ubuntu server. I have checked the read and write permissions of the database file. It is: -rw-r--r-- Doesn't this mean that the file has read and write access? So why is Django error saying attempt to write a readonly database?

Thanks in advance!



Solution 1:[1]

I configured with el user and group that inside of httpd.conf (/opt/lampp/etc/) of following code :

user@server:/opt/lampp$ sudo chown --recursive daemon:daemon htdocs/website/ user@server:/opt/lampp$ sudo ./lampp restart

//PD : the name user daemon is in the archive httpd.conf

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nicky