« Mediawiki and Ubuntu » : différence entre les versions
Apparence
Ligne 4 : | Ligne 4 : | ||
== Dependencies == | == Dependencies == | ||
<kode lang='bash'> | <kode lang='bash'> | ||
ai nginx php-fpm php-intl php-mbstring php-xml php-mysql mariadb-server | ai nginx php-fpm php-intl php-mbstring php-xml php-mysql php-apcu mariadb-server | ||
</kode> | </kode> | ||
Version du 9 août 2023 à 21:32
Installation
Dependencies
ai nginx php-fpm php-intl php-mbstring php-xml php-mysql php-apcu mariadb-server |
Get Mediawiki
wget https://releases.wikimedia.org/mediawiki/1.40/mediawiki-1.40.0.tar.gz
tar xf mediawiki-*.tar.gz
sudo mv -T mediawiki-* /var/www/mediawiki
|
Configuring MariaDB
create database mediawiki;
-- create a new user and grant him access rights
grant index, create, select, insert, update, delete, alter, lock tables
on mediawiki.* TO 'mediawiki'@'localhost' identified by 'password';
commit;
|
Configuring PHP
phpenmod -s fpm mysqli |
Folder rights
Folders cache and images must be writable by the nginx user www-data.
sudo chown -R www-data:www-data images/
sudo chown -R www-data:www-data cache/
|