php-问题集

unable to open database file

sqlite数据库进行写操作时,会先生成缓存文件,对缓存进行操作
生成的缓存文件的读写权限默认和父目录相同

// 修改项目权限
chmod 777 /usr/share/nginx/html
// 修改数据文件权限
chmod 777 /usr/share/nginx/html/database
chmod 666 /usr/share/nginx/html/database/test.db