Mediawiki

From Bitpost wiki
Revision as of 01:58, 16 April 2023 by M (talk | contribs)
Install on Ubuntu
  • Install by extracting to a web folder (following the ubuntu install)
  • Enable Short Urls

This just means to get rid of the .php on the end. Mediawiki will NOT do this for you, the silly thing. You need to do a few silly things. This horrible mess describes it, in far too much detail. Just add this to your apache virtual host (eg /etc/apache2/sites-enabled/000-default.conf:

   # MDM mediawiki                                                                                                                                                                                             
   RewriteEngine On
   RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
   RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]

Also need to update default of /etc/apache2/apache2.conf

<Directory /var/www/>
  AllowOverride All

Also need to install mod_rewrite:

sudo a2enmod rewrite
Updating mediawiki
cd /var/www/localhost/htdocs/mediawiki
emacs LocalSettings_redirector.php (to hardcode each site)
php maintenance/update.php
(repeat for each site)
emacs LocalSettings_redirector.php (to reset dynamic behavior)

META FTW! Mediawiki how do i love thee, let me count the ways... Here are some tricks to keep things humming.

Stick with flat lists whenever you can

  • TRUST ME you don't want to deal with numbered lists (see below if you have to)
  • Also use === Section Headers === for any page that needs scrolling - after 3 you autoget a table of contents
  • Collapsible sections like the one above are often very useful for pages with lots of small bits of info

Embed comments in a numbered list

  1. one
    some stuff
    some more stuff
  2. two

htmlets extention

These have served me well in the past for all kinds of goodies. Haven't researched the latest lately, though. When checking also check if tree formats are available.

MobileFrontend extention

This is the official one used by wikipedia. See end of LocalSettings_redirector.php for details.


HISTORY

 mediawiki upgrade notes...
 * back up glam
 * download latest mediawiki tar 1.39.3
 * back up last upgrade's history (1.35.1):
 root@glam:/var/www/html# cat mediawiki_history.txt 
     1  systemctl daemon-reload
     2  systemctl restart systemd-networkd
     3  systemctl restart systemd-resolved
     4  ping google.com
     5  ping morosoph
     6  apt install apache
     7  apt install apache2
     8  cd /var/lib
     9  ls mysql-orig/
   10  #cp mysql-orig/debian-10.3.flag mysql-copy/
   11  ls mysql-orig -lad
   12  ls mysql-orig -la
   13  #cp mysql-orig/debian-10.3.flag mysql-copy/
   14  #cp mysql-orig/mysql_upgrade_info mysql-copy/
   15  cp mysql-orig/debian-10.3.flag mysql-copy/
   16  cp mysql-orig/mysql_upgrade_info mysql-copy/
   17  cd mysql-
   18  mv mysql-copy mysql
   19  cd mysql
   20  ls
   21  ls ib*
   22  mv ib_logfile0 ~/Downloads/mysql-bad-logs/ib_logfile0 
   23  mysql_upgrade 
   24  mysql_upgrade  --force
   25  pkill mysql
   26  tail -f /var/log/mysql/error.log 
   27  apt install phpmyadmin 
   28  emacs /etc/dbconfig-common/phpmyadmin.conf 
   29  apt install phpmyadmin 
   30  ls /etc/apache2/conf-enabled/
   31  ls /etc/apache2/conf-available/
   32  phpenmod mbstring
   33  service apache2 restart
   34  cd /etc/apache2/
   35  ls
   36  grep -i phpmyadmin * -R
   37  dpkg-reconfigure phpmyadmin
   38  service apache2 restart
   39  ls
   40  ls -la
   41  ls ~/Downloads/
   42  tar -xvzf ~/Downloads/mediawiki-1.35.1.tar.gz
   43  cd
   44  cd Downloads/
   45  wget https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.1.tar.gz
   46  cd /var/lib/
   47  ls
   48  ls mediawiki/
   49  ls -la
   50  mkdir temp
   51  cd temp
   52  tar -xvzf ~/Downloads/mediawiki-1.35.1.tar.gz
   53  cd ..
   54  ls mediawiki/
   55  ls temp/mediawiki-1.35.1/
   56  rm -rf mediawiki
   57  mv temp/mediawiki-1.35.1 mediawiki
   58  rmdir temp/
   59  ls ~/
   60  ls ~/Downloads/
   61  rm ~/Downloads/mediawiki-1.35.1.zip 
   62  ls
   63  cat /var/www/html/index.html 
   64  mv mediawiki /var/www/html/
   65  emacs /etc/php/7.4/apache2/
   66  cd /etc/php/7.4/apache2/conf.d/
   67  ls
   68  cd ..
   69  grep upload_max * -R
   70  emacs php.ini 
   71  grep max_ch * -R
   72  grep MDM *
   73  grep MDM * -A 2
   74  service apache2 restart
   75  ls
   76  rm php.ini~
   77  ls
   78  service apache2 restart
   79  cd /var/www/html/
   80  mv mediawiki wiki
   81  ls ~m/
   82  ls ~m/ -al
   83  cd wiki/
   84  ls
   85  cp ~m/LocalSettings_redirector.php .
   86  ls -la
   87  ls -lad .*
   88  cat index.php 
   89  ls
   90  ln -s LocalSettings_redirector.php LocalSettings.php 
   91  ls
   92  cp ~m/LocalSettings_dev_wiki.php .
   93  emacs LocalSettings_redirector.php 
   94  emacs LocalSettings_dev_wiki.php 
   95  cp ~m/LocalSettings_common.php .
   96  ls
   97  emacs LocalSettings_dev_wiki.php 
   98  cd extensions/
   99  ls
   100  wget https://extdist.wmflabs.org/dist/extensions/HTMLets-REL1_35-870b632.tar.gz
   101  ls
   102  tar -xzf HTMLets-REL1_35-870b632.tar.gz 
   103  ls
   104  ls HTMLets
   105  ls
   106  cd ..
   107  emacs LocalSettings_dev_wiki.php 
   108  mv ~m/MDM_README.txt .
   109  ls
   110  php maintenance/update.php 
   111  cat LocalSettings.php 
   112  cat LocalSettings_dev_wiki.php
   113  php maintenance/update.php 
   114  service mysql stop
   115  service mysql start
   116  service mysql restart
   117  service mysql stop
   118  service mysql start
   119  service mysql stop
   120  service mysql start
   121  service mysql stop
   122  df
   123  df -H
   124  service mysql stop
   125  service mysql start
   126  tail /var/log/mysql/error.log
   127  service mysql start
   128  tail /var/log/mysql/error.log
   129  journalctl -xe
   130  service mysql start
   131  tail /var/log/mysql/error.log
   132  # 8808
   133  apt install php
   134  apt install mariadb-server
   135  mysql_secure_installation 
   136  apt search mediawiki
   137  apt-get install apache2 mariadb-server php php-mysql libapache2-mod-php php-xml php-mbstring
   138  sudo apt-get install php-apcu php-intl imagemagick inkscape php-gd php-cli php-curl php-bcmath git
   139  sudo apt-get install php-apcu php-intl imagemagick php-cli php-curl
   140  service apache2 reload
   141  php --version
   142  ls
   143  mkdir Downloads
   144  cd Downloads/
   145  wget https://releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.1.zip
   146  unzip mediawiki-1.35.1.zip 
   147  apt install unzip
   148  unzip mediawiki-1.35.1.zip 
   149  ls /var/lib/
   150  mv mediawiki-1.35.1 /var/lib/mediawiki
   151  cd /etc/mysql/
   152  grep -R datadir *
   153  cat /etc/apparmor.d/tunables/alias 
   154  service mysql stop
   155  cd /var/lib
   156  mv mysql mysql-orig
   157  ls mysql-orig/
   158  ls mysql-orig/ -la
   159  ls mysql-orig/ -laR
   160  mkdir temp
   161  cd temo
   162  cd temp/
   163  unzip ~m/Downloads/mysql-gentoo-bitpost.zip 
   164  ls
   165  cd ..
   166  cd temp
   167  cd ..
   168  ls mysql-orig/ -la
   169  cat mysql-orig/debian-10.3.flag 
   170  cat mysql-orig/mysql_upgrade_info 
   171  cp mysql-orig/mysql_upgrade_info temp/mysql-copy/
   172  cp mysql-orig/debian-10.3.flag temp/mysql-copy/
   173  ls temp/mysql-copy/performance_schema/
   174  chown -R mysql:mysql temp/mysql-copy
   175  cp mysql-orig/mysql_upgrade_info temp/mysql-copy/
   176  cp mysql-orig/debian-10.3.flag temp/mysql-copy/
   177  mv temp/mysql-copy mysql
   178  ls mysql
   179  ls
   180  ls temp/
   181  rmdir temp/
   182  service mysql start
   183  journalctl -xe
   184  tail /var/log/mysql/error.log 
   185  tail -n 200 /var/log/mysql/error.log 
   186  mariadb --version
   187  cd mysql
   188  mkdir ~/Downloads/mysql-bad-logs
   189  mv ib_logfile0 ~/Downloads/mysql-bad-logs/
   190  service mysql start
   191  tail -n 200 /var/log/mysql/error.log 
   192  apt install phpmyadmin php-zip php-gd php-json php-curl php-mbstring
   193  apt remove phpmyadmin
   194  apt install phpmyadmin php-zip php-gd php-json php-curl php-mbstring
   195  apt reinstall phpmyadmin
   196  apt install phpmyadmin
   197  apt remove phpmyadmin
   198  apt install phpmyadmin php-zip php-gd php-json php-curl php-mbstring
   199  mysql
   200  sudo mysql
   201  sudo mysql -u root -p
   202  mysql_secure_installation 
   203  apt install phpmyadmin php-zip php-gd php-json php-curl php-mbstring
   204  sudo mysql -u root -p
   205  mysql_upgrade 
   206  sudo mysql -u root -p
   207  sudo mysql
   208  ls
   209  cd ..
   210  ls mysql/
   211  rm mysql -rf
   212  unzip ~m/Downloads/mysql-gentoo-bitpost.zip 
   213  chown -R mysql:mysql mysql-copy
   214  mysql_upgrade 
   215  mysqld --skip-grant-tables
   216  mysql_upgrade 
   217  tail /var/log/mysql/error.log 
   218  mysqld --skip-grant-tables
   219  service mysql start
   220  mysql
 --
   296  ls mysql
   297  ls mysql -;a
   298  ls mysql -la
   299  chown mysql:mysql mysql -R 
   300  mariadb --version
   301  apt update
   302  apt search mariadb
   303  apt search mariadb|grep installed
   304  cd /var/lib/
   305  mkdir mysql-ib-bad
   306  mv mysql/ibdata1 mysql-ib-bad/
   307  mv ibdata1 mysql/
   308  service mysql status
   309  service mysql restart
   310  tail /var/log/mysql/error.log
   311  cd mysql
   312  chown mysql:mysql ibdata1 
   313  ls -la
   314  chmod 660 ibdata1 
   315  ls -la |less
   316  service mysql restart
   317  cd ..
   318  ls mysql* -lad
   319  rm -rf mysql-did-not-work-out
   320  mv mysql-copy mysql
   321  cd /etc/
   322  ls -la resolv.conf 
   323  cd systemd/network/
   324  ls
   325  cd ..
   326  emacs  resolved.conf
   327  cd /var/lib
   328  df
   329  df -h
   330  rm -rf mysql
   331  df
   332  mv mysql-copy mysql
   333  chown mysql:mysql mysql -R
   334  ls mysql/
   335  ls mysql/wordpress -la
   336  service mysql restart
   337  emacs /etc/apache2/apache2.conf 
   338  cd /etc/apache2/sites-enabled/
   339  ls
   340  emacs 000-default.conf 
   341  service apache2 restart
   342  tail /var/log/apache2/error.log
   343  emacs 000-default.conf 
   344  service apache2 restart
   345  emacs 000-default.conf 
   346  service apache2 restart
   347  emacs -nw ../apache2.conf 
   348  service apache2 restart
   349  emacs 000-default.conf 
   350  service apache2 restart
   351  emacs 000-default.conf 
   352  ls ../
   353  ls
   354  mv 000-default.conf ~m/development/config/ubuntu/glam/etc/apache2/sites-enabled/
   355  mkdir ~m/development/config/ubuntu/glam/etc/apache2/sites-enabled/
   356  mkdir -p ~m/development/config/ubuntu/glam/etc/apache2/sites-enabled/
   357  mv 000-default.conf ~m/development/config/ubuntu/glam/etc/apache2/sites-enabled/
   358  chown m:m ~m/development/config/ubuntu/glam/etc/apache2 -R
   359  cd ..
   360  mv apache2.conf ~m/development/config/ubuntu/glam/etc/apache2/
   361  chown m:m ~m/development/config/ubuntu/glam/etc/apache2 -R
   362  cd /var/www/
   363  ls
   364  cd html/
   365  ls
   366  ln -s mediawiki w
   367  ls
   368  ls -la
   369  ls
   370  ls mediawiki/
   371  rm w
   372  mv mediawiki/w .
   373  rmdir mediawiki/
   374  mv w mediawiki
   375  ln -s mediawiki w
   376  ls
   377  ls -la
   378  service apache2 restart
   379  ls /etc
   380  ls
   381  cd /var/lib
   382  ls -lad mysql(
   383  ls -lad mysql*
   384  service mysql stop
   385  service mysql start
   386  ls mysql* -lad
   387  #mv mysql-ib-ba* mysql-orig ~/backup/
   388  mkdir ~/backup
   389  mv mysql-ib-ba* mysql-orig ~/backup/
   390  service mariadb stop
   391  rm mysql-fulldump.sql 
   392  unzip ~m/Downloads/mysql-gentoo-bitpost.zip 
   393  dpkg-reconfigure phpmyadmin
   394  df
   395  cd /var/www/html/wiki/
   396  php maintenance/update.php 
   397  cd ..
   398  ls
   399  ln -s wiki w
   400  ls
   401  ls wiki/
   402  rm w
   403  mv wiki w
   404  cd w/
   405  ls
   406  apachectl configtest
   407  a2enmod rewrite
   408  service apache restart
   409  service apache2 restart
   410  ls /etc/apache2/
   411  ls /etc/apache2/ -la
   412  service apache2 restart
   413  cd /etc/apache2/
   414  cat apache2.conf
   415  cat apache2.conf|grep MDM
   416  cat apache2.conf|grep MDM -C 2
   417  tail /var/log/syslog
   418  tail /var/log/apache2/error.log
   419  tail /var/log/apache2/error.log -f
   420  ls
   421  ls sites-available/
   422  rm sites-available/000-default.conf~
   423  cat sites-available/000-default.conf
   424  service apache2 restart
   425  ls
   426  ls -la
   427  rm apache2.conf~
   428  cat apache2.conf 
   429  ls -la
   430  rm apache2.conf && cp ../../home/m/development/config/ubuntu/glam/etc/apache2/apache2.conf .
   431  cd sites-enabled/
   432  ls
   433  ls -la
   434  ls
   435  cd ..
   436  cd sites-
   437  cd sites-enabled/
   438  ls
   439  ls ../
   440  ls
   441  ls -la
   442  ls ../../../home/m/development/config/ubuntu/glam/etc/apache2/sites-enabled/
   443  ls ../../../home/m/development/config/ubuntu/glam/etc/apache2/sites-enabled/000-default.conf 
   444  ls
   445  ls ..
   446  ls ../sites-available/
   447  emacs ../sites-available/000-default.conf 
   448  cp ../sites-available/000-default.conf ../../../home/m/development/config/ubuntu/glam/etc/apache2/sites-enabled/000-default.conf
   449  ls
   450  ls -la
   451  cd ..
   452  ls
   453  mv apache2.conf ~/backup/
   454  cp sites-enabled/000-default.conf ~/backup/
   455  ls
   456  ls -la
   457  ls sites-enabled/
   458  ls sites-enabled/000-default.conf 
   459  ls sites-enabled/000-default.conf  -la
   460  service apache restart
   461  service apache2 restart
   462  apt search mediawiki
   463  cd /etc/
   464  cd /var/www/html/
   465  ls
   466  ls -la
   467  emacs /etc/apache2/sites-enabled/000-default.conf 
   468  ls
   469  mv w mediawiki
   470  service apache2 restart
   471  mkdir m
   472  mv mediawiki m/w
   473  mv m mediawiki
   474  emacs /etc/apache2/sites-enabled/000-default.conf 
   475  service apache2 restart
   476  emacs /etc/apache2/sites-enabled/000-default.conf 
   477  service apache2 restart
   478  emacs /etc/apache2/sites-enabled/000-default.conf 
   479  service apache2 restart
   480  emacs /etc/apache2/sites-enabled/000-default.conf 
   481  service apache2 restart
   482  emacs /etc/apache2/sites-enabled/000-default.conf 
   483  cd /var/www/html/
   484  ls
   485  mv index.html index-ubuntu-default.html
   486  cd /var/log/apache2/
   487  ls
   488  mkdir sitelogs
   489  cd sitelogs
   490  mkdir willcodeforcoffee.org
   491  mkdir thedigitalmachine.com
   492  mkdir thedigitalage.org
   493  mkdir abettersoftware.org
   494  mkdir abettersoftware.com
   495  mkdir bitpost.com
   496  cd /etc/php/7.4/apache2/conf.d/
   497  grep post_max *
   498  cd ..
   499  ls
   500  grep -Ri post_max *
   501  cd conf.d/
   502  ls
   503  ls -la
   504  cd ../..
   505  ls
   506  cd mods-available/
   507  ls
   508  grep max *
   509  grep size *
   510  grep post *
   511  cat apcu.ini 
   512  cd ..
   513  ls
   514  cd apache2/
   515  ls
   516  cd conf.d/
   517  ls
   518  cd ..
   519  ls
   520  emacs php.ini
   521  service apache2 restart
   522  chown m:m php.ini && mv php.ini ~m/development/config/ubuntu/glam/etc/php/7.4/apache2/
   523  mkdir ~m/development/config/ubuntu/glam/etc/php/7.4/apache2/
   524  mkdir -p ~m/development/config/ubuntu/glam/etc/php/7.4/apache2/
   525  chown m:m php.ini && mv php.ini ~m/development/config/ubuntu/glam/etc/php/7.4/apache2/
   526  chown m:m  ~m/development/config/ubuntu/glam/etc/php/7.4/apache2/
   527  ls
   528  service apache2 restart
   529  emacs /etc/mysql/my.cnf
   530  emacs /etc/mysql/mariadb.conf.d/50-server.cnf
   531  cd /etc/mysql/
   532  grep max_allowed * -Ri
   533  emacs mariadb.conf.d/50-server.cnf
   534  cd mariadb.conf.d/
   535  mkdir -p ~m/development/config/ubuntu/glam/etc/mysql/mariadb.conf.d# && mv 50-server.cnf 
   536  mkdir -p ~m/development/config/ubuntu/glam/etc/mysql/mariadb.conf.d # && mv 50-server.cnf 
   537  rmdir ~m/development/config/ubuntu/glam/etc/mysql/mariadb.conf.d#
   538  mv 50-server.cnf ~m/development/config/ubuntu/glam/etc/mysql/mariadb.conf.d/ # && mv 50-server.cnf 
   539  chown -R m:m ~m/development/config/ubuntu/glam/etc/mysql
   540  ls
   541  mv 50-server.cnf~ ~/backup/
   542  ls
   543  ls -la
   544  mkdir /var/repo
   545  echo "for phab internal use" > /var/repo/mdm_readme.txt
   546  cat 50-server.cnf
   547  service mysql restart
   548  emacs 50-server.cnf
   549  ls
   550  ls -la
   551  grep -i strict *
   552  tail /var/log/syslog
   553  tail /var/log/syslog -n 2000
   554  ls
   555  cp 50-server.cnf 41-server-copy.cnf
   556  ls
   557  rm 41-server-copy.cnf 
   558  emacs /etc/apparmor.d/local/usr.sbin.mysqld
   559  service apparmor restart
   560  emacs /etc/apparmor.d/local/usr.sbin.mysqld
   561  service apparmor restart
   562  emacs /etc/apparmor.d/local/usr.sbin.mysqld
   563  service apparmor restart
   564  emacs /etc/apparmor.d/local/usr.sbin.mysqld
   565  service apparmor restart
   566  cp 50-server.cnf 41-server-copy.cnf
   567  mv 41-server-copy.cnf 41-server-copy-until-i-get-lame-mysql-apparmor-to-work-with-symlinks.cnf 
   568  apt install pygments
   569  apt install python-pygments
   570  apt search python
   571  apt search python|grep installed
   572  which python
   573  cd /var/www/html/
   574  ls
   575  ls -la
   576  cd mediawiki/
   577  ls
   578  ls -la
   579  ls -la images/
   580  ls -la images/README 
   581  cat images/README 
   582  ls
   583  ls -la
   584  mv images ~/backup/
   585  ls
   586  ls -la
   587  ls htmlets
   588  ls htmlets -la
   589  ls htmlets/ -la
   590  ls images/
   591  ls images/dev_wiki/
   592  service apache2 restart
   593  cd htmlets
   594  ls
   595  cd ..
   596  ls
   597  ls -la
   598  cd extensions/HTMLets/
   599  emacs HTMLets.php 
   600  cd ../..
   601  ls
   602  emacs LocalSettings_dev_wiki.php
   603  cat MDM_README.txt 
   604  ls
   605  ls LocalSettings.php 
   606  ls LocalSettings.php  -la
   607  ls
   608  cp LocalSettings_common.php LocalSettings_common.php.new
   609  rm LocalSettings_common.php
   610  mv LocalSettings_common.php.new LocalSettings_common.php
   611  ls
   612  cp LocalSettings_dev_wiki.php LocalSettings_dev_wiki.php.new && rm LocalSettings_dev_wiki.php && mv LocalSettings_dev_wiki.php.net LocalSettings_dev_wiki.php
   613  mv LocalSettings_dev_wiki.php.new LocalSettings_dev_wiki.php
   614  ls
   615  cp LocalSettings_redirector.php LocalSettings.new && rm LocalSettings_redirector.php && mv LocalSettings.new LocalSettings_redirector.php 
   616  ls
   617  service apache2 restart
   618  ls images
   619  ls images/dev_wiki/
   620  ls images/dev_wiki/ -la
   621  chmod +x -R images
   622  cd images/dev_wiki/
   623  ls
   624  cd ../..
   625  ls
   626  ls images -la
   627  service apache2 restart
   628  grep TmpDir *
   629  cat /etc/resolv.conf
   630  rm /etc/resolv.conf
   631  echo "nameserver 192.168.22.1" > /etc/resolv.conf
   632  cd /var/www/html/
   633  ls
   634  ls -la
   635  ls
   636  cd mediawiki/
   637  ls
   638  ls extensions/
   639  ls extensions/HTMLets/HTMLets.php 
   640  ls extensions/HTMLets/HTMLets.php  -la
   641  chown root:root extensions/HTMLets -R
   642  ls extensions/HTMLets/HTMLets.php  -la
   643  ls -la
   644  ls MDM_README.txt 
   645  cat MDM_README.txt 
   646  grep Symlinks * -R
   647  find -iname ".htaccess"
   648  emacs includes/.htaccess 
   649  service apache2 restart
   650  ls -la /home/m/development/config/ubuntu/glam/var/www/html/mediawiki/extensions/HTMLets/HTMLets.php
   651  ls -la /home/m/development/config/ubuntu/glam/var/www
   652  ls -la /home/m/development/config/ubuntu/glam/var/www/html/
   653  cd /home/m/development/config/ubuntu/glam/var/www/html/
   654  ls
   655  cd mediawiki/
   656  ls
   657  mkdir extensions
   658  git mv htmlets extensions/
   659  ls -la /home/m/development/config/ubuntu/glam/var/www/html/mediawiki/extensions/HTMLets/HTMLets.php
   660  cd /home/m/development/config/ubuntu/glam/var/www/html/mediawiki/extensions/
   661  ls
   662  ls /home/m/development/config/ubuntu/glam/var/www/html/mediawiki/extensions/htmlets/
   663  ls -la /home/m/development/config/ubuntu/glam/var/www/html/mediawiki/extensions/HTMLets/HTMLets.php
   664  ls
   665  git mv htmlets HTMLets.php
   666  ls -la /home/m/development/config/ubuntu/glam/var/www/html/mediawiki/extensions/HTMLets/HTMLets.php
   667  cd HTMLets.php/
   668  ls
   669  git diff
   670  cd ..
   671  ls
   672  ls HTMLets.php/
   673  ls HTMLets.php
   674  ls HTMLets.php -la
   675  ls
   676  cd ..
   677  ls
   678  cp LocalSettings_dev_wiki.php /var/www/html/mediawiki/
   679  cp -L LocalSettings_dev_wiki.php /var/www/html/mediawiki/
   680  crontab -l
   681  echo "" > /var/log/apache2/sitelogs/bitpost.com/ssl_error_log 
   682  echo "" > /var/log/apache2/sitelogs/bitpost.com/ssl_access_log 
   683  cd /var/log/apache2/sitelogs/bitpost.com/
   684  cd /var/log/apache2/sitelogs/bitpost.com/ && echo "" > ssl_error_log 
   685  df
   686  tail ssl_access_log 
   687  tail ssl_error_log 
   688  service apache2 restart
   689  df
   690  cd /var
   691  ds
   692  cd log
   693  ~m/scripts/ds 
   694  cd pgadmin/
   695  ~m/scripts/ds 
   696  ls
   697  tail pgadmin4.log 
   698  ls
   699  echo "" > pgadmin4.log 
   700  df
   701  cd ../
   702  ~m/scripts/ds 
   703  cd journal/
   704  ls
   705  cd b6dcc4450a4848b58bb6a7ddabcde35a/
   706  ls
   707  ~m/scripts/ds 
   708  ls -la
   709  rm *
   710  df
   711  cd ../
   712  ls
   713  ~m/scripts/ds 
   714  cd apache2/
   715  ~m/scripts/ds 
   716  cd sitelogs/
   717  ~m/scripts/ds 
   718  cd bitpost.com/
   719  ~m/scripts/ds 
   720  ls
   721  ls -la
   722  tail ssl_error_log 
   723  apt update
   724  apt upgrade
   725  watch -n 1 ls -la
   726  ls -la
   727  tail ssl_access_log 
   728  emacs .bashrc
   729  purge_apache_logs.sh 
   730  df -H
   731  ew purge_apache_logs.sh 
   732  emacs `which purge_apache_logs.sh `
   733  purge_apache_logs.sh 
   734  echo "" > ssl_error_log 
   735  df
   736  ls
   737  ls -la
   738  ls -laH
   739  ls -lah
   740  tail -f ssl_access_log 
   741  ls
   742  echo "" > ssl_access_log 
   743  ls
   744  ls -la
   745  df
   746  ls
   747  ls -la
   748  crontab -l
   749  cd /var/www/html/mediawiki/
   750  ls
   751  ls -la
   752  echo "" >/var/log/syslog
   753  tail /var/log/syslog
   754  tail /var/log/syslog -f
   755  df
   756  echo "" >ssl_error_log 
   757  echo "" >ssl_access_log 
   758  ls
   759  df
   760  echo "" >/var/log/syslog
   761  ls /var/log/apache2/sitelogs/bitpost.com/ssl_error_log 
   762  ls /var/log/apache2/sitelogs/bitpost.com/ssl_error_log  -la
   763  tail /var/log/apache2/sitelogs/bitpost.com/ssl_error_log  
   764  tail /var/log/apache2/sitelogs/bitpost.com/ssl_access_log 
   765  tail /var/log/apache2/sitelogs/bitpost.com/ssl_access_log -f
   766  df
   767  rm /var/log/apache2/sitelogs/bitpost.com/ssl_* /var/log/syslog
   768  crontab -e
   769  sudo rm /var/log/apache2/sitelogs/bitpost.com/ssl_* /var/log/syslog
   770  dmesg
   771  tail /var/log/syslog
   772  tail -f /var/log/syslog
   773  crontab -e
   774  dmesg
   775  tail -f /var/log/syslog
   776  ls /var/opt/gitlab/git-data/repositories/
   777  ls /var/opt/gitlab/git-data/repositories/@hashed/
   778  ls /var/opt/gitlab/git-data/repositories/+gitaly/
   779  ls /var/opt/gitlab/git-data/repositories/+gitaly/tmp/
   780  ls /var/opt/gitlab/git-data/repositories/@hashed/19/
   781  ls /var/opt/gitlab/git-data/repositories/
   782  gitlab-rake cache:clear
   783  ls
   784  ls /var/opt/gitlab/git-data/repositories/
   785  dmesg
   786  cat /var/log/gitlab/gitaly/gitaly_ruby_json.log
   787  cat /var/log/gitlab/gitaly/gitaly_ruby_json.log -f
   788  cat /var/log/gitlab/gitaly/gitaly_ruby_json.log -t
   789  tail /var/log/gitlab/gitaly/gitaly_ruby_json.log 
   790  tail -f /var/log/gitlab/gitaly/gitaly_ruby_json.log 
   791  ls /var/log/gitlab/gitlab-shell/
   792  tail -f /var/log/gitlab/gitlab-rails/git_json.log
   793  tail -f /var/log/gitlab/gitlab-rails/production.log
   794  ls -T /var/log/gitlab/gitlab-rails/ 
   795  ls -t /var/log/gitlab/gitlab-rails/ 
   796  ls -tla /var/log/gitlab/gitlab-rails/ 
   797  tail -f /var/log/gitlab/gitlab-rails/api_json.log
   798  ls -t /var/log/gitlab/gitlab-rails/ 
   799  ls -tla /var/log/gitlab/gitlab-rails/ 
   800  tail -f /var/log/gitlab/gitlab-rails/production_json.log
   801  cd /var/log/gitlab/
   802  ls
   803  cat /var/opt/gitlab/.ssh/authorized_keys
   804  emacs /var/opt/gitlab/.ssh/authorized_keys
   805  cd /var/opt/gitlab/.ssh/
   806  ls
   807  cat authorized_keys.lock 
   808  cat authorized_keys
   809  ls /home/git
   810  cd ..
   811  ls -la
   812  cd .ssh
   813  ls
   814  ls -la
   815  cd ..
   816  ls
   817  ls -la
   818  cat /etc/group
   819  eval $(ssh-agent)
   820  dmesg -w
   821  cat /var/log/syslog -t
   822  df
   823  cat /var/log/syslog -t
   824  mysql_upgrade 
   825  cd /var/log
   826  ls
   827  ds
   828  cd /var/log
   829  du $1 -x -m --max-depth=1 -h | sort -h
   830  ls
   831  rm *.gz
   832  du $1 -x -m --max-depth=1 -h | sort -h
   833  cd journal/
   834  ls
   835  cd ..
   836  cd /var/log/
   837  du $1 -x -m --max-depth=1 -h | sort -h
   838  cd apache2/
   839  ls
   840  du $1 -x -m --max-depth=1 -h | sort -h
   841  cd sitelogs/
   842  du $1 -x -m --max-depth=1 -h | sort -h
   843  cd bitpost.com/
   844  ls
   845  ls -la
   846  tail ssl_error_log 
   847  tail -f ssl_error_log 
   848  reboot
   849  cd /var/log/gitlab/
   850  ls
   851  ls -laT
   852  ls -laD
   853  man ls
   854  ls -lat
   855  tail gitaly/gitaly_ruby_json.log
   856  ls -lat
   857  tail puma/puma_stderr.log
   858  cd puma
   859  ls -lat
   860  tail puma_stdout.log
   861  cd ..
   862  ls
   863  ls -lat
   864  watch -n 1 ls -lat
   865  ls -lat
   866  watch -n 1 ls -lat
   867  tail reconfigure/1650081506.log 
   868  tail reconfigure/1650081506.log -n 100
   869  watch -n 1 ls -lat
   870  tail -f puma/puma_stderr.log
   871  tail -f puma/puma_stdout.log
   872  cd /var/www/
   873  ls
   874  cd html/mediawiki/
   875  ls
   876  cat MDM_README.txt 
   877  df
   878  df -h
   879  ls maintenance/update.php 
   880  ls
   881  ls -la
   882  emacs LocalSettings_redirector.php 
   883  php maintenance/update.php 
   884  ls
   885  ls -la
   886  apt search mediawiki
   887  cd /var/www/html/
   888  ls
   889  untar mediawiki-1.39.3.tar.gz 
   890  tar -xvzf mediawiki-1.39.3.tar.gz 
   891  ls
   892  cd mediawiki
   893  php maintenance/update.php 
   894  ls -la
   895  ls images
   896  ls images/gaming/
   897  ls images/gaming/temp/
   898  ls images/dev_wiki/
   899  ls
   900  ls -la
   901  cd ../mediawiki-1.35.1-needs-upgrade/
   902  ls
   903  ls -la
   904  cd ../mediawiki
   905  l
   906  ls
   907  cat MDM_README.txt 
   908  apt package mediawiki
   909  apt info mediawiki
   910  history|grep media
   911  ls /var/lib/me*
   912  history|grep media -C 4
   913  history|grep media -C 10 > mediawiki_history.txt
   914  mv mediawiki_history.txt ..
   915  cd ..
   916  ls
   917  cat mediawiki_history.txt 
   918  ls
   919  cat mediawiki_history.txt 
   920  history|grep media -C 50 > mediawiki_history.txt
   921  cat mediawiki_history.txt 
   922  history|grep media -C 70 > mediawiki_history.txt
   923  cat mediawiki_history.txt 
   924  ls
   925  #cp -rp mediawiki-1.39.3/* mediawiki/
   926  ls mediawiki-1.39.3 -la
   927  #cp -rp mediawiki-1.39.3/* mediawiki/
   928  service apache2 status
   929  # service apache2 stop
   930  ld
   931  ls
   932  cd mediawiki-1.39.3/
   933  ls
   934  ls -la
   935  ls ../mediawiki -la
   936  cp ../mediawiki/LocalSettings* ../mediawiki/MDM_README.txt ../mediawiki/htmlets ../mediawiki/images .
   937  ls
   938  ln -s ../../../../home/m/development/config/ubuntu/glam/var/www/html/mediawiki/MDM_README.txt .
   939  rm MDM_README.txt 
   940  ln -s ../../../../home/m/development/config/ubuntu/glam/var/www/html/mediawiki/MDM_README.txt .
   941  ls -la
   942  ls ../mediawiki
   943  ls ../mediawiki -la
   944  ls -la
   945  ls ../mediawiki -la
   946  rm LocalSettings.php && ln -s LocalSettings_redirector.php LocalSettings.php 
   947  ls -la
   948  ls images/
   949  ls images/README 
   950  cat images/README 
   951  rm -rf images
   952  ln -s ../../../../home/m/development/config/ubuntu/glam/var/www/html/mediawiki/images .
   953  ln -s ../../../../home/m/development/config/ubuntu/glam/var/www/html/mediawiki/htmlets .
   954  ls ../mediawiki -la
   955  ls -la
   956  ls ../mediawiki -la
   957  ls -la
   958  ls ../mediawiki -la
   959  ls -la
   960  ls ../mediawiki -la
   961  ls -la
   962  cd ..
   963  service apache2 stop
   964  mv mediawiki mediawiki-1.35.1-needs-upgrade-moved
   965  mv mediawiki-1.39.3 mediawiki
   966  ls mediawiki -la
   967  ls mediawiki-1.35.1-needs-upgrade-moved -la
   968  ls mediawiki -la
   969  ls mediawiki-1.35.1-needs-upgrade-moved -la
   970  ls mediawiki -la
   971  cd mediawiki
   972  cd maintenance/
   973  php update.php
   974  cd ..
   975  php maintenance/update.php 
   976  emacs LocalSettings_redirector.php 
   977  php maintenance/update.php 
   978  ls ../mediawiki-1.35.1-needs-upgrade -la
   979  ls ../mediawiki-1.35.1-needs-upgrade/extensions/ -la
   980  ls extensions/ -la
   981  ls ../mediawiki-1.35.1-needs-upgrade/extensions/ -la
   982  ls extensions/ -la
   983  ls ../mediawiki-1.35.1-needs-upgrade/extensions/ -la
   984  ls extensions/ -la
   985  ls ../mediawiki-1.35.1-needs-upgrade/extensions/ -la
   986  ls extensions/ -la
   987  ls ../mediawiki-1.35.1-needs-upgrade/extensions/ -la
   988  cp -rp ../mediawiki-1.35.1-needs-upgrade/extensions/HTMLets extensions/
   989  php maintenance/update.php 
   990  emacs LocalSettings_dev_wiki.php 
   991  php maintenance/update.php 
   992  service apache2 start
   993  cd ..
   994  ls
   995  rm -rf mediawiki-1.35.1-needs-upgrade-moved mediawiki-1.39.3.tar.gz 
   996  ls
   997  ds
   998  ls