« Mediawiki and Ubuntu » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
Ligne 24 : Ligne 24 :
extension=mysqli
extension=mysqli
</filebox>
</filebox>
== Folder rights ==
Folders {{boxx|cache}} and {{boxx|images}} must be writable by the nginx user {{boxx|www-data}}.
<kode lang=bash>
sudo chown -R www-data:www-data images/
sudo chown -R www-data:www-data cache/
</kode>

Version du 9 août 2023 à 21:14

Installation

Get Mediawiki

Bash.svg
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

Mariadb.svg
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

/etc/php/8.2/fpm/php.ini
extension=mysqli

Folder rights

Folders cache and images must be writable by the nginx user www-data.

Bash.svg
sudo chown -R www-data:www-data images/
sudo chown -R www-data:www-data cache/