MirrorNest
← すべてのガイド

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.

対象: Ubuntu 22.04 LTS (Apache/Nginx + PHP + MySQL)CMS公式ホームページ ↗公式ドキュメント ↗
このガイドは上記リンク先にあるWordPress公式ドキュメントをもとに作成されています。ディストリビューションやプロジェクトのバージョンは時間とともに変わるため、本番サーバーでこれらのコマンドを実行する前に、必ず公式ドキュメントで正確なパッケージ名・バージョン名を確認してください。
  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