Score:-1

Installer can't create sqlite database

cn flag

I have a drupal page, hosted with azure webapps, on nginx. However, when i start the site, the installer wants to have a database. I am aware that it's bad, but sqlite is an intentional choice because of company reasons.

However, when i try to use sqlite it says it locked. enter image description here

I have no direct access to the files, once they are deployed. All changes have to be made locally, and then commited and pushed for azure to redeploy it.

Does anybody know how to fix this?

Score:2
id flag

First, ensure PHP meeets the requirements. Then, read more carefully the instructions on the install screen, which read:

The absolute path to the file where Drupal data will be stored. This must be writable by the web server and should exist outside of the web root.

The screenshot you provided does not show an absolute path.

syter avatar
cn flag
I checked my sqlite version, and it was higher then the requirements (3.35.4). I also fixed the filepath to the default. Nothing changed about it.
cn flag
The web server needs to be able to write to the database file, and the folder it’s in, there’s no way to get around that. If your hosting doesn’t allow that you either need different hosting, or a different db backend
syter avatar
cn flag
Is there any way to check if it is able to write to it?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.