MirrorNest
← Tous les guides

WordPress

WordPress is the world's most widely used self-hosted CMS, installed via its long-standing 'Famous Five-Minute Install': download the package, point it at a database, and finish setup through a browser wizard.

Système : Ubuntu 22.04 LTS (Apache/Nginx + PHP + MySQL)CMSSite officiel ↗Documentation officielle ↗
Ce guide est élaboré à partir de la documentation officielle de WordPress, dont le lien figure ci-dessus — vérifiez toujours les noms exacts des paquets/versions avant d'exécuter ces commandes sur un serveur de production, car les versions de la distribution et du projet évoluent avec le temps.
  1. 1Download and extract WordPress

    wget https://wordpress.org/latest.tar.gz
    tar -xzvf latest.tar.gz
  2. 2Create a database and user

    Create a dedicated MySQL/MariaDB database and user with full privileges on it, and note the hostname (usually localhost).

  3. 3Configure wp-config.php

    Rename wp-config-sample.php to wp-config.php and fill in DB_NAME, DB_USER, DB_PASSWORD and DB_HOST, plus unique authentication keys.

  4. 4Upload files to the web server

    Copy the wordpress directory's contents to your domain root (or a subdirectory) via FTP or shell access.

  5. 5Run the install script

    Visit the install script in a browser and fill in the site title and admin credentials to finish setup.

    Root install: https://example.com/wp-admin/install.php — subdirectory install: https://example.com/blog/wp-admin/install.php