Running a cli installation, I got the following error:
$ php maintenance/install.php --dbtype=sqlite --dbpath=~/work/code/mediawiki/data wiki admin
...
You can install MediaWiki.
Setting up database
Cannot create the data directory ~/work/code/mediawiki/data, because the parent
directory ~/work/code/mediawiki is not writable by the webserver.
The installer has determined the user your webserver is running as.
Make the data directory writable by it to continue.
On a Unix/Linux system do:
cd ~/work/code/mediawiki
mkdir data
chgrp mah data
chmod g+w data
I followed the above directions, but they didn't help. Thinking it was a permissions problem of some kind I just erased the data subdirectory, but that didn't work. Evidently it doesn't expand the ~ properly. When I wrote out "/home/mah", I got:
$ php maintenance/install.php --dbtype=sqlite --dbpath=/home/mah/work/code/mediawiki/data wiki admin
...
You can install MediaWiki.
Setting up database
Unable to write to the directory "/home/mah/work/code/mediawiki/data".
Change its permissions so that the webserver can write to it, and try again.
In this case it was unable to write because I had removed the directory. The previous message implied that it was going to create the directory, but evidently it lied.
When I created the directory and used the full path instead of ~, it worked.
Version: 1.18.x
Severity: normal