Jump to content

User:Kaldari/Notes

From Wikitech
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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"
  ),
)