Jump to content

User:Kaldari/Notes

From Wikitech

To run SQL on the cluster, for example, to create a new table...

mwscript sql.php --wiki=... file.sql

To password protect a direcory create a .lighttpd.conf file like:

server.modules += ( "mod_auth" )
auth.backend = "plain"
auth.backend.plain.userfile = "/data/project/mytool/.lighttpdpassword"
auth.require = ( "/protected_dir/" =>
  (
    "method" => "basic",
    "realm" => "Authorized users only",
    "require" => "user=kaldari"
  ),
)