Manual:$wgReadOnlyFile/en

Details
If this file is found, the database is locked for the reason given in the contents of the file. The file must be more than 0 bytes long.

The file must be writable by the web server for Help:LockDB to work.