Si vous avez besoin de votre propre wiki mais ne savez pas par oĂč commencer, bienvenue. Je suis nouveau sur Linux, cela m'aidera pas Ă pas en particulier. Pris en considĂ©ration:
- installer Debian
- Pile LAMP
- lancer sur cette base Wiki sur le moteur Mediawiki populaire
Choix des distributions
- OS - choisissez Debian. Je ne sais pas pourquoi. Plus précisément, debian-10.2.0-amd64-netinst.iso. La distribution, bien sûr, vaut toujours la peine de prendre le dernier de l'écurie, regardez debian.org .
- Mediawiki - car ce projet est bien soutenu à ce jour. J'ai regardé attentivement DokuWiki, mais la derniÚre distribution remonte à 2018, et les manuels ne sont clairement pas conçus pour les débutants.
- Apache, MariaDB et php73 - comme recommandé par Mediawiki .
Un mémo pour ceux qui ne connaissent pas trÚs bien Linux- Linux et tout ce qui fonctionne dessus sont trÚs sensibles à la casse.
- root, â , , su. (, ), exit.
- , , , ssh su .
- ssh PuTTY. .
Ăquipement
- cela n'a pas d'importance du tout. Ăa peut ĂȘtre une machine virtuelle, ça peut ĂȘtre un morceau de fer.
Si vous avez trĂšs peu de ressources, consultez les exigences d'installation .
Installer Debian OS
â Linux, , , . , «»-«», SSH, . , , .. " Mediawiki" .
.
. Language, Location, Keymap, Network.
![](https://habrastorage.org/webt/i1/jf/ye/i1jfyeqxzmrkxjsu_xzdsbdalwq.png)
â English
![](https://habrastorage.org/webt/qs/yn/yf/qsynyfq1tf4103bj5xlxoy9tqlw.png)
Location â Russian Federation (other â Europe â Russian Federation)
![](https://habrastorage.org/webt/et/68/vd/et68vdhd6bntqpbgeekovsbh5u4.png)
![](https://habrastorage.org/webt/oc/67/mp/oc67mphdjhaqy5ihhvltd_4tpwc.png)
![](https://habrastorage.org/webt/jv/zc/cp/jvzccpbgj5dazn9lldvf9spsnve.png)
Locales â United States
![](https://habrastorage.org/webt/xq/zr/zj/xqzrzjmvee7eq7ogdpvihqkvxgq.png)
Keymap to use â American English
![](https://habrastorage.org/webt/gm/b1/mz/gmb1mzbklxil9tlglleqbw7dpwg.png)
, , DHCP-, .
Hostname for this system.
, wiki02. : , wiki mediawiki â . , .
![](https://habrastorage.org/webt/wp/d-/xh/wpd-xhnpmrwiv7iqqkmzuize40y.png)
Domain name
DNS-.
![](https://habrastorage.org/webt/kb/8o/wx/kb8owxexrs4r3sagxkmxjdaimny.png)
Package manager, HTTP Proxy, Usage Survey, Software Selection LAMP Stack
, SSH su. , , mysql Debian âbusterâ (10.3):
apt-get install apache2 mariadb-server php php-mysql libapache2-mod-php php-xml php-mbstring
apt-get install php-apcu php-intl imagemagick inkscape php-gd php-cli php-curl git -y
systemctl restart apache2
MySQL
mysql -u root -p
CREATE USER 'new_mysql_user'@'localhost' IDENTIFIED BY 'THISpasswordSHOULDbeCHANGED';
CREATE DATABASE my_wiki;
use my_wiki;
GRANT ALL ON my_wiki.* TO 'new_mysql_user'@'localhost';
quit;
PHP
, , :
- /etc/php/7.3/apache2/php.ini ( nano /etc/php/7.3/apache2/php.ini), , - ( su, )
- upload_max_fileseze = 2M # 50. , â , , - , .
- memory_limit = 128M # 128, â
- Ctrl+O, Ctrl+X nano
- :wq vi
« LAMP»
, ( Hyper-V) , .
â .
, :
cd /tmp/
wget https://releases.wikimedia.org/mediawiki/1.34/mediawiki-1.34.0.tar.gz
tar -xvzf /tmp/mediawiki-*.tar.gz
mkdir /var/lib/mediawiki
mv mediawiki-*/* /var/lib/mediawiki
â .
. .
apt-get install mediawiki -y
(1.34 vs 1.31), apt-get update . , , .
- , . , (. ), , .
http:// /mediawiki . , , . #, wiki02.aslan.local, . , FQDN. , , .
: ru â . , : ru â
![](https://habrastorage.org/webt/ms/ox/kx/msoxkxmjomvyrv4xh48xn4pgvvw.png)
,
![](https://habrastorage.org/webt/cy/8_/2t/cy8_2tgepqykg7wcxkpeugjrllo.png)
- MySQL , . , â , , .
![](https://habrastorage.org/webt/hc/hz/wu/hchzwusxqyrbcrshrkdr7fq9r70.png)
- - .
![](https://habrastorage.org/webt/of/kj/uk/ofkjukgyrl-7vxcngwms8hso2xq.png)
- â , .
- : , .
- â «», , . , portal02admin
- . , .
- .
- .
![](https://habrastorage.org/webt/fj/kf/iw/fjkfiwoav4gfu6hh18oz_wc6vji.png)
LocalSettings.php
, MediaWiki ( ). , .. , â âLocalSettings (3).phpâ. , «3» . , ( LocalSettings.php, ).
![](https://habrastorage.org/webt/fy/vh/ik/fyvhikpcd04gykkbpdb5fx2pcs8.png)
- .
. Windows, pscp. Windows, . , , , /etc/mediawiki/LocalSettings.php, mv .
, pscp.exe . Downloads . powershell (Shift+ «» , , powershell, cd)
powershell:
.\pscp.exe '.\LocalSettings (wiki02_20200225).php' aslan@wiki02.aslan.local:/home/aslan/LocalSettings.php
- « »
mv /home/aslan/LocalSettings.php /etc/mediawiki/LocalSettings.php
.