0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【RockyLinux 9.5 で WordPress 環境構築】さくらのVPS設定

Last updated at Posted at 2025-02-21

さくらのVPSでWordPress環境を構築しましたので、構築メモをシェアします。

さくらのVPS採用理由

長年愛用させてもらっています。費用が安いうえ、近年ではさくらインターネットのクラウドサービスが国家基盤に採用されており、長期的に安心して利用し続けられるメリットがあります。

RockyLinux採用理由

もともとCentOS7でWordPressを運用していたのですが、知らぬうちにCentOSが終了となっていました。CentOSを継承するAlmaLinuxとRockyLinuxという2つの派閥があるとのことです。ChatGPT先生的には、AlmaLinuxのほうが企業がバックについているため安心感があるとのことでしたが、さくらのVPSの申し込みページでは、デフォルトでRockyLinuxが選択されていました。特にこだわりがなかったので、こちらを採用することに。

システム構成

  • RockyLinux 9.5

  • 仮想CPU 2Core

  • メモリ1GB

  • SSD 50GB

  • PHP 8.2.27

  • mariaDB 10.5.27

  • WordPress 6.7.2

初期設定

「パケットフィルター設定」でWebとSSHのポートを許可します。

公式マニュアルに従い、セキュリティに関する初期設定を行います。

おまじない

vimのインストール

sudo dnf -y install vim-enhanced

タイムゾーンの設定

sudo timedatectl set-timezone Asia/Tokyo

remi リポジトリのインポート

sudo dnf config-manager --set-enabled crb
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm
sudo dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-9.rpm
sudo dnf repolist 

RockyLinux9.5でWordPress環境構築

  1. さくらのVPS設定
  2. Apacheのインストールと設定
  3. PHPのインストールと設定
  4. mariaDBのインストールと設定
  5. WordPressのインストールと設定
  6. DNS設定とCertbotによるSSL証明書の取得と設定
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?