Unable to write to a chmod 777 database file on SQlite3 via php 5.3.0

前端 未结 3 1089
礼貌的吻别
礼貌的吻别 2020-12-09 08:59

I\'m trying to insert data into my SQlite3 database (this works via the command line). I gave the data1.db file 777 permissions and still it says it\'s unable to open the fi

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-09 09:47

    Try adding the sqlite user to the group which owns the /var/www directories, or manually chown -R user:user /var/www/ , the directory needs to be writable by the sqlite user.

提交回复
热议问题