Capri wiki family

De Semantic MediaWiki - Sandbox

Révision datée du 4 décembre 2020 à 19:20 par Kba (discussion | contributions) (pushed from partner by wikipush)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

capri wiki family

wiki family concept

The wiki family concept is described at:

and in Modèle:Link's book Chapter 15 page 154.

install master

First we need a master installation. We'll use this master installation for the sites:

  • master
  • test
  • demo

and other sites. Later the same installation approach will be done on tol.bitplan.com for the playgrounds:

  • mr
  • rb

...

DNS configuration

This configuration is server dependend. capri.bitplan.com has traditionally used the /root/bin/do_name_services script and uses a full DNS bind service. For other servers an entry in /etc/hosts might do.

/root/bin/do_name_services
root@capri:/root/bin# egrep "master|test|demo" do_name_services 
#   2015-02-01 added master.bitplan.com 
#   2015-02-01 added test.bitplan.com 
#   2015-02-01 added demo.bitplan.com 
printf("%-12s\tCNAME\t%s\n","master","capri");
printf("%-12s\tCNAME\t%s\n","demo","capri");
printf("%-12s\tCNAME\t%s\n","test","capri");
printf("%-12s\tCNAME\t%s\n","demo","capri");

root@capri:/root/bin# ./do_name_services 
updating lmhost file
updating db.bitplan.com zone file
updating reverse lookup file for zone 2.0.0
restarting nameservice:bind9, samba:nmbd,smbd and dhcp:isc-dhcp-server
 * Stopping domain name service... bind9                                        waiting for pid 14572 to die
                                                                         [ OK ]
 * Starting domain name service... bind9                                 [ OK ] 
isc-dhcp-server stop/waiting
isc-dhcp-server start/running, process 7375
smbd start/running, process 7383

root@capri:/root/bin# ping -c1 master
PING capri.bitplan.com (2.0.0.6) 56(84) bytes of data.
64 bytes from capri.bitplan.com (2.0.0.6): icmp_req=1 ttl=64 time=0.015 ms

--- capri.bitplan.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.015/0.015/0.015/0.000 ms

root@capri:/root/bin# ping -c1 demo
PING capri.bitplan.com (2.0.0.6) 56(84) bytes of data.
64 bytes from capri.bitplan.com (2.0.0.6): icmp_req=1 ttl=64 time=0.014 ms

--- capri.bitplan.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.014/0.014/0.014/0.000 ms

root@capri:/root/bin# ping -c1 test
PING capri.bitplan.com (2.0.0.6) 56(84) bytes of data.
64 bytes from capri.bitplan.com (2.0.0.6): icmp_req=1 ttl=64 time=0.014 ms

Mediawiki 1.24.1 code unpack

The /source/code/bash/imediawiki script simplifies this. Doing it manually is also feasible.

wf@capri:~/source/bash/mp$ tail -2 imediawiki 
initial_install master
#check_extensions master
wf@capri:~/source/bash/mp$ sudo ./imediawiki 
mediawiki-1.19.23.tar.gz already downloaded
mediawiki-1.23.8.tar.gz already downloaded
mediawiki-1.24.1.tar.gz already downloaded
unpacking Mediawiki for master
cd /srv/www/master
git init
git add *
git commit -a

apache configuration

/etc/apache2/sites-available/code
# 
# Apache configuration for capri.bitplan.com
# Virtualhost code 
# WF 2015-01-28
<VirtualHost *:80>
  ServerAdmin webmaster@bitplan.com
  ServerName master.bitplan.com
  include code.conf
</VirtualHost>
/etc/apache2/code.conf
# code Apache2 configuration
# master wiki
# WF 2015-02-01
DocumentRoot /var/www/mediawiki/code
include bitplan_aliases.conf
ErrorLog ${APACHE_LOG_DIR}/master_error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
#LogLevel debug 

CustomLog ${APACHE_LOG_DIR}/master_access.log combined


enable code site

root@capri:/etc/apache2# a2ensite code
Site code already enabled
root@capri:/etc/apache2# service apache2 reload
 * Reloading web server config apache2

Wiki configuration

Installation Start

Modèle:Link

Step 1

Modèle:Link

Step 2

Modèle:Link

Step 3

Modèle:Link Modèle:Link ‎ ‎==== Step 4 ==== Modèle:Link

Step 5

Modèle:Link

Step 6

Modèle:LinkModèle:LinkModèle:Link

Step 7

Modèle:Link

Step 8

Modèle:Link

Step 9

Modèle:Link

Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.