|
Balises : Contenu remplacé Éditeur de wikicode 2017 |
Ligne 1 : |
Ligne 1 : |
| == capri wiki family ==
| | NO CONTENT |
| === wiki family concept ===
| |
| The wiki family concept is described at:
| |
| * https://www.mediawiki.org/wiki/Manual:Wiki_family/de
| |
| * https://www.mediawiki.org/wiki/Manual:Wiki_family#Scenario_3:_Drupal-style_sites
| |
| | |
| and in {{Link|target=Yaron Koren}}'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 <nowiki>/root/bin/do_name_services</nowiki> script and uses a
| |
| full DNS bind service. For other servers an entry in <nowiki>/etc/hosts</nowiki> might do.
| |
| =====/root/bin/do_name_services=====
| |
| <source lang='bash'>
| |
| 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
| |
| </source>
| |
| | |
| ==== Mediawiki 1.24.1 code unpack ====
| |
| The <nowiki>/source/code/bash/imediawiki</nowiki> script simplifies this. Doing it manually is also feasible.
| |
| <source lang='bash'>
| |
| 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
| |
| </source>
| |
| ==== apache configuration ====
| |
| =====/etc/apache2/sites-available/code=====
| |
| <source lang='apache'>
| |
| #
| |
| # 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>
| |
| </source>
| |
| =====/etc/apache2/code.conf=====
| |
| <source lang='apache'>
| |
| # 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
| |
| </source>
| |
| | |
| | |
| ==== enable code site ====
| |
| <source lang='bash'>
| |
| root@capri:/etc/apache2# a2ensite code
| |
| Site code already enabled
| |
| root@capri:/etc/apache2# service apache2 reload
| |
| * Reloading web server config apache2
| |
| </source>
| |
| | |
| === Wiki configuration ===
| |
| ==== Installation Start ====
| |
| {{Link|target=Datei:MediaWiki1 24InstallationScreen.png|title=Mediawiki Installation Screen}}
| |
| ==== Step 1 ====
| |
| {{Link|target=Datei:MWInstallationStep1.png}}
| |
| ==== Step 2 ====
| |
| {{Link|target=Datei:MWInstallationStep2.png}}
| |
| ==== Step 3 ====
| |
| {{Link|target=Datei:MediawikiInstallationStep3a.png}}
| |
| {{Link|target=Datei:MediawikiInstallationStep3b.png}}
| |
| ==== Step 4 ====
| |
| {{Link|target=Datei:MediaWikiInstallationStep4.png}}
| |
| ==== Step 5 ====
| |
| {{Link|target=Datei:MediaWikiInstallationStep5.png}}
| |
| ==== Step 6 ====
| |
| {{Link|target=Datei:MwInstallationStep6a.png}}
| |
| {{Link|target=Datei:MWInstallationStep6b.png}}
| |
| {{Link|target=Datei:MWInstallationStep6c.png}}
| |
| ==== Step 7 ====
| |
| {{Link|target=Datei:MWinstallationStep7.png}}
| |
| ==== Step 8 ====
| |
| {{Link|target=Datei:MWInstallationStep8.png}}
| |
| ==== Step 9 ====
| |
| {{Link|target=Datei:MWInstallationStep9.png}}
| |