Difference between revisions of "Sysadmin:Sysadmin Info"
From JFA Wiki
Greg.Fuller (talk | contribs) (→To Do) |
Greg.Fuller (talk | contribs) (→To Do) |
||
Line 4: | Line 4: | ||
* Write instructions for backing up database via ssh into [root]/jfa/backups/db with date suffix "-yyyy-mm-dd". | * Write instructions for backing up database via ssh into [root]/jfa/backups/db with date suffix "-yyyy-mm-dd". | ||
* Write and install cron job to backup database daily into [root]/jfa/backups/db with date suffix "-yyyy-mm-dd". | * Write and install cron job to backup database daily into [root]/jfa/backups/db with date suffix "-yyyy-mm-dd". | ||
+ | * Setup cache, use memcache? $wgMainCacheType = | ||
* Setup email on jfawiki (wiki.justiceforanimals.org). | * Setup email on jfawiki (wiki.justiceforanimals.org). | ||
* Setup mediawiki instance at dev.justiceforanimals.org/wiki. | * Setup mediawiki instance at dev.justiceforanimals.org/wiki. |
Revision as of 08:55, 18 February 2019
Contents
To Do
- Write instructions for backing up database via ssh into [root]/jfa/backups/db with date suffix "-yyyy-mm-dd".
- Write and install cron job to backup database daily into [root]/jfa/backups/db with date suffix "-yyyy-mm-dd".
- Setup cache, use memcache? $wgMainCacheType =
- Setup email on jfawiki (wiki.justiceforanimals.org).
- Setup mediawiki instance at dev.justiceforanimals.org/wiki.
- Why in subdirectory wiki?
- There may be problems if we don't: https://www.mediawiki.org/wiki/Manual:Wiki_in_site_root_directory
- Future flexibility to install other other apps under domain
- Keep the WP site at dev. for now
- Dev.justiceforanimals.org will have it's own .htaccess
- Staging and Production will come later
- Why in subdirectory wiki?
Links
- Webfaction Failover https://blog.gingerlime.com/2012/webfaction-fail-over/
How To
SSH
>ssh username@web542.webfaction.com >cd /home/gregfuller/webapps/jfawiki/ (for wiki.justiceforanimals.org)
Dump XML pages
>cd /home/gregfuller/webapps/jfawiki/maintenance >php72 dumpBackup.php --current >/home/gregfuller/webapps/jfawiki/jfa/backups/xml/jfawikidump-yyyy-mm-dd.xml FTP the file down to localhost
Backup Dababase into [root]/jfa/backups/db
ToDo
Move [root]/jfa/backups offsite
ToDo
Include js and css files in a MediaWiki App
- done because login page on Refreshed theme doesn't load common.css and common.js